Skip to content

Commit e8e3b7f

Browse files
paulius-sladkeviciuskv1612
authored andcommitted
[FIX] sale_automatic_workflow: correct field for an invoice residual amount
1 parent 665ebba commit e8e3b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sale_automatic_workflow/models/automatic_workflow_job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def _prepare_dict_account_payment(self, invoice):
160160
)
161161
return {
162162
"reconciled_invoice_ids": [(6, 0, invoice.ids)],
163-
"amount": invoice.residual,
163+
"amount": invoice.amount_residual,
164164
"partner_id": invoice.partner_id.id,
165165
"partner_type": partner_type,
166166
"date": fields.Date.context_today(self),

0 commit comments

Comments
 (0)