From ea42f6c176af57d085df25a18fb7e0654a95b2f4 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 6 Apr 2018 08:20:48 +0200 Subject: [PATCH] [FIX] account: missing decorator --- addons/account/models/account_invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py index 7939d463a3c..5531a188202 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -1411,6 +1411,7 @@ class AccountInvoiceTax(models.Model): base = fields.Monetary(string='Base', compute='_compute_base_amount') # DO NOT FORWARD-PORT!!! ONLY FOR v10 + @api.model def create(self, vals): inv_tax = super(AccountInvoiceTax, self).create(vals) # Workaround to make sure the tax amount is rounded to the currency precision since the ORM