diff options
| author | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2020-08-20 13:37:38 +0000 |
|---|---|---|
| committer | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2020-08-24 12:31:03 +0000 |
| commit | 970335d4bb4cd470e488ce5cc6dff042e56c7cb8 (patch) | |
| tree | d61c5c54baed6e909e1ba01c9085a662f58fc437 | |
| parent | 11d676b464d739d10b61bc666fef65698ebc03a6 (diff) | |
[FIX] account: avoid traceback when reversing archived values
Create an invoice I with a tax T on an invoice line. Validate
Archive T
Create the credit note from I
Traceback will occur because the archived value is not copied on the
reversal, causing issue when matching data
opw-2320472
closes odoo/odoo#56402
X-original-commit: d949cb88abbf8f64b383bceba07105df578a4a14
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
| -rw-r--r-- | addons/account/models/account_move.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 72a82fbca27..45d38446567 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -2087,7 +2087,7 @@ class AccountMove(models.Model): mapping[inv_rep_line] = ref_rep_line return mapping - move_vals = self.with_context(include_business_fields=True).copy_data(default=default_values)[0] + move_vals = self.with_context(include_business_fields=True,active_test=False).copy_data(default=default_values)[0] tax_repartition_lines_mapping = compute_tax_repartition_lines_mapping(move_vals) |
