Skip to content
Snippets Groups Projects
Commit 8e64645b authored by Laurent Smet's avatar Laurent Smet
Browse files

[FIX] purchase: Fix unknown field '_invoice_payment_ref'


closes odoo/odoo#48008

X-original-commit: 3f7da29c
Signed-off-by: default avataroco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
parent 7e148135
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment