diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/l10n_br/models | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/l10n_br/models')
| -rw-r--r-- | addons/l10n_br/models/__init__.py | 6 | ||||
| -rw-r--r-- | addons/l10n_br/models/account.py | 28 |
2 files changed, 34 insertions, 0 deletions
diff --git a/addons/l10n_br/models/__init__.py b/addons/l10n_br/models/__init__.py new file mode 100644 index 00000000..11cb8819 --- /dev/null +++ b/addons/l10n_br/models/__init__.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +# Copyright (C) 2009 Renato Lima - Akretion + +from . import account diff --git a/addons/l10n_br/models/account.py b/addons/l10n_br/models/account.py new file mode 100644 index 00000000..e7ce0dc7 --- /dev/null +++ b/addons/l10n_br/models/account.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import fields, models + + +class AccountTaxTemplate(models.Model): + """ Add fields used to define some brazilian taxes """ + _inherit = 'account.tax.template' + + tax_discount = fields.Boolean(string='Discount this Tax in Prince', + help="Mark it for (ICMS, PIS e etc.).") + base_reduction = fields.Float(string='Redution', digits=0, required=True, + 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) + + +class AccountTax(models.Model): + """ Add fields used to define some brazilian taxes """ + _inherit = 'account.tax' + + tax_discount = fields.Boolean(string='Discount this Tax in Prince', + help="Mark it for (ICMS, PIS e etc.).") + base_reduction = fields.Float(string='Redution', digits=0, required=True, + 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) |
