From 4c46615e6a768cfeef3a02c84f3c91017acc3709 Mon Sep 17 00:00:00 2001 From: "Andrea Grazioso (agr-odoo)" Date: Mon, 31 Aug 2020 13:57:05 +0000 Subject: [PATCH] [FIX] account: revert "avoid traceback when reversing archived values" This reverts commit d949cb88abbf8f64b383bceba07105df578a4a14 in favor of https://github.com/odoo/odoo/commit/f4162a75bdc47cd94610ee7626cc68e078313329 To avoid misleading users into thinking that "everything is allright" while actually there are missing tax_id on the credit note lines closes odoo/odoo#56845 X-original-commit: 96b5ccb4fa8bafd536f880ba7ff03218c1fe1e1b Signed-off-by: agr-odoo --- addons/account/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index fc4d9fcd547..5723a6792ae 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -2141,7 +2141,7 @@ class AccountMove(models.Model): mapping[inv_rep_line] = ref_rep_line return mapping - move_vals = self.with_context(include_business_fields=True,active_test=False).copy_data(default=default_values)[0] + move_vals = self.with_context(include_business_fields=True).copy_data(default=default_values)[0] tax_repartition_lines_mapping = compute_tax_repartition_lines_mapping(move_vals)