diff options
| author | Laurent Smet <las@odoo.com> | 2021-03-09 11:29:15 +0000 |
|---|---|---|
| committer | Laurent Smet <las@odoo.com> | 2021-03-11 08:03:17 +0000 |
| commit | f7dc4a4c8c6700cfecebffa1ef516e29a46aef61 (patch) | |
| tree | cdf2cb9b6d4f7c342658a470531663bb91dfdacf /addons/account | |
| parent | c72994ea297d755919a35011c2626ffad2a2dea8 (diff) | |
[FIX] account: Always display inactive taxes on journal items
closes odoo/odoo#67596
X-original-commit: 98436eecd2ca9319cdfeab82060c37150ce19ad0
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'addons/account')
| -rw-r--r-- | addons/account/models/account_move.py | 7 |
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', |
