fix: typeerror on invoice creation from SO/PO
(cherry picked from commit 9bd56b0f79)
This commit is contained in:
committed by
mergify-bot
parent
dddfab1310
commit
e5112e16a8
@@ -1319,6 +1319,9 @@ class AccountsController(TransactionBase):
|
|||||||
payment_schedule['discount_type'] = schedule.discount_type
|
payment_schedule['discount_type'] = schedule.discount_type
|
||||||
payment_schedule['discount'] = schedule.discount
|
payment_schedule['discount'] = schedule.discount
|
||||||
|
|
||||||
|
if not schedule.invoice_portion:
|
||||||
|
payment_schedule['payment_amount'] = schedule.payment_amount
|
||||||
|
|
||||||
self.append("payment_schedule", payment_schedule)
|
self.append("payment_schedule", payment_schedule)
|
||||||
|
|
||||||
def set_due_date(self):
|
def set_due_date(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user