From 82b12cd58c788691df6d92c1211e89b64e2e5edd Mon Sep 17 00:00:00 2001 From: Atchuthan Ubendran Date: Tue, 2 Aug 2022 19:02:16 +0530 Subject: [PATCH] [FIX] Tax rounding not applied in Invoice --- account_avatax_oca/models/account_move.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/account_avatax_oca/models/account_move.py b/account_avatax_oca/models/account_move.py index edfcdee14..2dd6a4117 100644 --- a/account_avatax_oca/models/account_move.py +++ b/account_avatax_oca/models/account_move.py @@ -260,7 +260,9 @@ def _avatax_compute_tax(self, commit=False): # Set Taxes on lines in a way that properly triggers onchanges # This same approach is also used by the official account_taxcloud connector - with Form(self) as move_form: + with Form( + self.with_context(avatax_invoice=self, check_move_validity=False) + ) as move_form: for index, taxes in taxes_to_set: with move_form.invoice_line_ids.edit(index) as line_form: line_form.tax_ids.clear()