summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/purchase/models/account_invoice.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/purchase/models/account_invoice.py b/addons/purchase/models/account_invoice.py
index 12369be733a..231d37b9b3d 100644
--- a/addons/purchase/models/account_invoice.py
+++ b/addons/purchase/models/account_invoice.py
@@ -61,9 +61,9 @@ class AccountMove(models.Model):
refs = [ref for ref in refs if ref]
self.ref = ','.join(refs)
- # Compute _invoice_payment_ref.
+ # Compute invoice_payment_ref.
if len(refs) == 1:
- self._invoice_payment_ref = refs[0]
+ self.invoice_payment_ref = refs[0]
self.purchase_id = False
self._onchange_currency()