diff options
| author | Laurent Smet <las@odoo.com> | 2020-03-19 09:50:43 +0000 |
|---|---|---|
| committer | Laurent Smet <las@odoo.com> | 2020-03-19 11:34:56 +0000 |
| commit | 8e64645b5a0f3864698052d2a2b828c19c5c2b5a (patch) | |
| tree | 565f4c930ecb6fbae223b9458d2a1aef909b73ca | |
| parent | 7e1481355f39db4ef2d16ce2417f954337be0897 (diff) | |
[FIX] purchase: Fix unknown field '_invoice_payment_ref'
closes odoo/odoo#48008
X-original-commit: 3f7da29c850740d7b45dda5210d9fa612b4405cb
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
| -rw-r--r-- | addons/purchase/models/account_invoice.py | 4 |
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() |
