mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-28 00:52:06 +02:00
19.0 vanilla
This commit is contained in:
parent
89c6e82fe7
commit
1b82c20a58
572 changed files with 43570 additions and 53303 deletions
|
|
@ -1,53 +1,21 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class AccountTax(models.Model):
|
||||
|
||||
_inherit = "account.tax"
|
||||
|
||||
l10n_ec_code_base = fields.Char(
|
||||
string="Code base",
|
||||
help="Tax declaration code of the base amount prior to the calculation of the tax",
|
||||
)
|
||||
l10n_ec_code_applied = fields.Char(
|
||||
string="Code applied",
|
||||
help="Tax declaration code of the resulting amount after the calculation of the tax",
|
||||
)
|
||||
l10n_ec_code_ats = fields.Char(
|
||||
string="Code ATS",
|
||||
help="Tax Identification Code for the Simplified Transactional Annex",
|
||||
)
|
||||
|
||||
|
||||
class AccountTaxTemplate(models.Model):
|
||||
|
||||
_inherit = "account.tax.template"
|
||||
|
||||
def _get_tax_vals(self, company, tax_template_to_tax):
|
||||
vals = super(AccountTaxTemplate, self)._get_tax_vals(
|
||||
company, tax_template_to_tax
|
||||
)
|
||||
vals.update(
|
||||
{
|
||||
"l10n_ec_code_base": self.l10n_ec_code_base,
|
||||
"l10n_ec_code_applied": self.l10n_ec_code_applied,
|
||||
"l10n_ec_code_ats": self.l10n_ec_code_ats,
|
||||
}
|
||||
)
|
||||
return vals
|
||||
|
||||
l10n_ec_code_base = fields.Char(
|
||||
string="Code base",
|
||||
help="Tax declaration code of the base amount prior to the calculation of the tax",
|
||||
)
|
||||
l10n_ec_code_applied = fields.Char(
|
||||
string="Code applied",
|
||||
help="Tax declaration code of the resulting amount after the calculation of the tax",
|
||||
)
|
||||
l10n_ec_code_ats = fields.Char(
|
||||
string="Code ATS",
|
||||
help="Tax Identification Code for the Simplified Transactional Annex",
|
||||
)
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class AccountTax(models.Model):
|
||||
_inherit = "account.tax"
|
||||
|
||||
l10n_ec_code_base = fields.Char(
|
||||
string="Code base",
|
||||
help="Ecuador: Tax declaration code of the base amount prior to the calculation of the tax.",
|
||||
)
|
||||
l10n_ec_code_applied = fields.Char(
|
||||
string="Code applied",
|
||||
help="Ecuador: Tax declaration code of the resulting amount after the calculation of the tax.",
|
||||
)
|
||||
l10n_ec_code_ats = fields.Char(
|
||||
string="Code ATS",
|
||||
help="Ecuador: Indicates if the purchase invoice supports tax credit or cost or expenses, conforming table 5 of ATS.",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue