Skip to content
Snippets Groups Projects
Commit 05ea6bf3 authored by moerradi's avatar moerradi
Browse files

[IMP] account: Exclude Off Balance Accounts from tax repartition lines


This commit excludes off-balance accounts from appearing in tax
repartition lines.
Previously, off-balance accounts were included in the selection, which
was causing confusion and unnecessary clutter in the interface.

The need for this change was raised due to the observation
that off-balance accounts are never actually used in tax repartition
scenarios.
Including them only complicates the account selection process without
adding any functional value

closes odoo/odoo#135763

Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
parent 7e87cfb0
No related branches found
No related tags found
No related merge requests found
...@@ -1279,7 +1279,7 @@ class AccountTaxRepartitionLine(models.Model): ...@@ -1279,7 +1279,7 @@ class AccountTaxRepartitionLine(models.Model):
repartition_type = fields.Selection(string="Based On", selection=[('base', 'Base'), ('tax', 'of tax')], required=True, default='tax', help="Base on which the factor will be applied.") repartition_type = fields.Selection(string="Based On", selection=[('base', 'Base'), ('tax', 'of tax')], required=True, default='tax', help="Base on which the factor will be applied.")
account_id = fields.Many2one(string="Account", account_id = fields.Many2one(string="Account",
comodel_name='account.account', comodel_name='account.account',
domain="[('deprecated', '=', False), ('company_id', '=', company_id), ('account_type', 'not in', ('asset_receivable', 'liability_payable'))]", domain="[('deprecated', '=', False), ('company_id', '=', company_id), ('account_type', 'not in', ('asset_receivable', 'liability_payable', 'off_balance'))]",
check_company=True, check_company=True,
help="Account on which to post the tax amount") help="Account on which to post the tax amount")
tag_ids = fields.Many2many(string="Tax Grids", comodel_name='account.account.tag', domain=[('applicability', '=', 'taxes')], copy=True, ondelete='restrict') tag_ids = fields.Many2many(string="Tax Grids", comodel_name='account.account.tag', domain=[('applicability', '=', 'taxes')], copy=True, ondelete='restrict')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment