[FIX] account: Always display inactive taxes on journal items
closes odoo/odoo#67657 X-original-commit: f7dc4a4c8c6700cfecebffa1ef516e29a46aef61 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com> Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user