From 1bbb97bf558936e9fcaa7c9fa0ee5b69179f554b Mon Sep 17 00:00:00 2001 From: Laurent Smet Date: Tue, 9 Mar 2021 11:29:15 +0000 Subject: [PATCH] [FIX] account: Always display inactive taxes on journal items closes odoo/odoo#67657 X-original-commit: f7dc4a4c8c6700cfecebffa1ef516e29a46aef61 Signed-off-by: oco-odoo Signed-off-by: Laurent Smet --- addons/account/models/account_move.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index a2851cc4698..93a107b57ca 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -3057,7 +3057,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',