diff --git a/hr_expense_invoice/models/account_move.py b/hr_expense_invoice/models/account_move.py index ad6ddc215..08f6b523b 100644 --- a/hr_expense_invoice/models/account_move.py +++ b/hr_expense_invoice/models/account_move.py @@ -23,8 +23,10 @@ def write(self, vals): # Check if the amount of the invoice linked to an invoice is different # Done here in the write instead of a Python constraint as the computed field # amount_total is not yet updated on that moment + # Only need to check expenses amount when the invoice amount changes + check_expenses = "tax_totals" in vals res = super().write(vals) - if self.env.context.get("skip_account_move_synchronization"): + if not check_expenses: return res DecimalPrecision = self.env["decimal.precision"] precision = DecimalPrecision.precision_get("Product Price")