FIX variable name.

This commit is contained in:
Juanjo Garcia 2021-06-15 09:43:22 +02:00
parent 35366c645a
commit 5e1bf3cc3b
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class Invoice(metaclass=PoolMeta):
# If the payment lines dont have a reconciliation, then the field
# invoice_payment will be fill up, and when we try to draft an
# invoice it will give us an error
if lines:
if payment_lines:
MoveLine.write(payment_lines, {'invoice_payment':None})
cls.write(invoices, {
'invoice_report_format': None,