Skip to content
Snippets Groups Projects
Unverified Commit 5d0d80af authored by Stefan Rijnhart's avatar Stefan Rijnhart Committed by Richard Mathot
Browse files

[FIX] l10n_br: wrong & pointless field redefinition

Fields `amount_type` on `account.tax` and `account.tax.template` are
already defined in the `account` module.
Redefining them here (with the same parameters) breaks every other
module that would have used `selection_add=` on those fields.

Actually, it is the case in `account_tax_python`, and thus, all the
localizations/customizations that depend on it were broken by this one.

(issue spotted by 11.0-nightly)

Closes #19812 #20596
parent dcce040a
No related branches found
No related tags found
No related merge requests found
......@@ -14,11 +14,6 @@ class AccountTaxTemplate(models.Model):
help="Um percentual decimal em % entre 0-1.", default=0)
amount_mva = fields.Float(string='MVA Percent', digits=0, required=True,
help="Um percentual decimal em % entre 0-1.", default=0)
amount_type = fields.Selection([('group', 'Group of Taxes'),
('fixed', 'Fixed'),
('percent', 'Percentage of Price'),
('division', 'Percentage of Price Tax Included')],
string='Tax Computation', required=True, default='percent')
class AccountTax(models.Model):
......@@ -31,8 +26,3 @@ class AccountTax(models.Model):
help="Um percentual decimal em % entre 0-1.", default=0)
amount_mva = fields.Float(string='MVA Percent', digits=0, required=True,
help="Um percentual decimal em % entre 0-1.", default=0)
amount_type = fields.Selection([('group', 'Group of Taxes'),
('fixed', 'Fixed'),
('percent', 'Percentage of Price'),
('division', 'Percentage of Price Tax Included')],
string='Tax Computation', required=True, default='percent')
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