mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-27 11:52:05 +02:00
Initial commit: L10N_Americas packages
This commit is contained in:
commit
12b27ce151
714 changed files with 79328 additions and 0 deletions
38
odoo-bringout-oca-ocb-l10n_mx/l10n_mx/models/account_tax.py
Normal file
38
odoo-bringout-oca-ocb-l10n_mx/l10n_mx/models/account_tax.py
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# coding: utf-8
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class AccountTaxTemplate(models.Model):
|
||||
_inherit = 'account.tax.template'
|
||||
|
||||
l10n_mx_tax_type = fields.Selection(
|
||||
selection=[
|
||||
('Tasa', "Tasa"),
|
||||
('Cuota', "Cuota"),
|
||||
('Exento', "Exento"),
|
||||
],
|
||||
string="Factor Type",
|
||||
default='Tasa',
|
||||
help="The CFDI version 3.3 have the attribute 'TipoFactor' in the tax lines. In it is indicated the factor "
|
||||
"type that is applied to the base of the tax.")
|
||||
|
||||
def _get_tax_vals(self, company, tax_template_to_tax):
|
||||
# OVERRIDE
|
||||
res = super()._get_tax_vals(company, tax_template_to_tax)
|
||||
res['l10n_mx_tax_type'] = self.l10n_mx_tax_type
|
||||
return res
|
||||
|
||||
|
||||
class AccountTax(models.Model):
|
||||
_inherit = 'account.tax'
|
||||
|
||||
l10n_mx_tax_type = fields.Selection(
|
||||
selection=[
|
||||
('Tasa', "Tasa"),
|
||||
('Cuota', "Cuota"),
|
||||
('Exento', "Exento"),
|
||||
],
|
||||
string="Factor Type",
|
||||
default='Tasa',
|
||||
help="The CFDI version 3.3 have the attribute 'TipoFactor' in the tax lines. In it is indicated the factor "
|
||||
"type that is applied to the base of the tax.")
|
||||
Loading…
Add table
Add a link
Reference in a new issue