From 1edaf4fce98a9b64f09523331bbdb064b1b3d76b Mon Sep 17 00:00:00 2001 From: "Andrea Grazioso (agr-odoo)" Date: Tue, 28 Mar 2023 08:24:17 +0000 Subject: [PATCH] [FIX] account: skip tax recomputation during post MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Activate avatax. Create a contact [1], and validate it with avatax. Create a product A, priced 11.70, add avatax code [P0000000] Create a product B, priced 9.85, add avatax code [FR000000] Create an invoice, add the two products, set avatax fiscal position Compute taxes with avalara, taxes will be 0.73 Confirm invoice Taxes will update to 1.35. This occurs during `_post`: when invoice date is set, invoice sync will recompute taxes for all lines. [1] Client Avatax-test 133 Route 20 North Oxford MA 01537-1210 United States opw-3174739 closes odoo/odoo#116872 X-original-commit: 7e399b0eb4daa5151eba59a65bc649d453ca6883 Related: odoo/enterprise#38908 Signed-off-by: William André (wan) Co-authored-by: william-andre --- addons/account/models/account_move_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_move_line.py b/addons/account/models/account_move_line.py index 94dcf305cc5..a118e37946f 100644 --- a/addons/account/models/account_move_line.py +++ b/addons/account/models/account_move_line.py @@ -444,7 +444,7 @@ class AccountMoveLine(models.Model): for line in self: line.partner_id = line.move_id.partner_id.commercial_partner_id - @api.depends('move_id.date', 'move_id.currency_id') + @api.depends('move_id.currency_id') def _compute_currency_id(self): for line in self: if line.display_type == 'cogs':