summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/account/models/account_move.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py
index 7240732ad1d..0273aefc19e 100644
--- a/addons/account/models/account_move.py
+++ b/addons/account/models/account_move.py
@@ -2975,7 +2975,12 @@ class AccountMoveLine(models.Model):
help="The bank statement used for bank reconciliation")
# ==== Tax fields ====
- tax_ids = fields.Many2many('account.tax', string='Taxes', help="Taxes that apply on the base amount", check_company=True)
+ tax_ids = fields.Many2many(
+ comodel_name='account.tax',
+ string="Taxes",
+ context={'active_test': False},
+ check_company=True,
+ help="Taxes that apply on the base amount")
tax_line_id = fields.Many2one('account.tax', string='Originator Tax', ondelete='restrict', store=True,
compute='_compute_tax_line_id', help="Indicates that this journal item is a tax line")
tax_group_id = fields.Many2one(related='tax_line_id.tax_group_id', string='Originator tax group',