[FIX] account: missing decorator

This commit is contained in:
Nicolas Martinelli
2018-04-06 09:44:47 +02:00
committed by Nicolas Martinelli
parent c41f7297d3
commit ea42f6c176
+1
View File
@@ -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