diff options
| author | Stefan Rijnhart <stefan@opener.am> | 2017-10-31 12:20:54 +0100 |
|---|---|---|
| committer | Richard Mathot <rim@odoo.com> | 2017-10-31 13:13:16 +0100 |
| commit | 5d0d80afa5bce8780305173c93e291466a133f7f (patch) | |
| tree | 04ef7c0fccdb6793d8ffe02a0372d066cb21f9eb | |
| parent | dcce040a637cafb6129ae483d4e31b64dd2070b3 (diff) | |
[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
| -rw-r--r-- | addons/l10n_br/models/account.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/addons/l10n_br/models/account.py b/addons/l10n_br/models/account.py index b88cd4465e0..e7ce0dc75e5 100644 --- a/addons/l10n_br/models/account.py +++ b/addons/l10n_br/models/account.py @@ -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') |
