2018-01-16 06:58:15 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2018-01-16 11:34:37 +01:00
|
|
|
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
|
2018-01-16 06:58:15 +01:00
|
|
|
|
2018-01-16 11:34:37 +01:00
|
|
|
from flectra import fields, models
|
2018-01-16 06:58:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
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)
|