[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 <agr-odoo@users.noreply.github.com>
This commit is contained in:
Andrea Grazioso (agr-odoo)
2020-09-01 08:53:27 +00:00
parent 467208f6e4
commit 4c46615e6a
+1 -1
View File
@@ -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)