Use objects instead of IDs when creating Statement Line.
This commit is contained in:
parent
ed68b538f1
commit
67de139019
6
sale.py
6
sale.py
|
@ -249,13 +249,13 @@ class WizardSalePayment(Wizard):
|
||||||
|
|
||||||
if form.payment_amount:
|
if form.payment_amount:
|
||||||
return StatementLine(
|
return StatementLine(
|
||||||
statement=statements[0].id,
|
statement=statements[0],
|
||||||
date=Date.today(),
|
date=Date.today(),
|
||||||
amount=form.payment_amount,
|
amount=form.payment_amount,
|
||||||
party=sale.party.id,
|
party=sale.party,
|
||||||
account=account,
|
account=account,
|
||||||
description=sale.number,
|
description=sale.number,
|
||||||
sale=sale.id,
|
sale=sale,
|
||||||
)
|
)
|
||||||
|
|
||||||
def transition_pay_(self):
|
def transition_pay_(self):
|
||||||
|
|
Loading…
Reference in New Issue