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