mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-27 09:12:05 +02:00
Initial commit: L10N_Americas packages
This commit is contained in:
commit
12b27ce151
714 changed files with 79328 additions and 0 deletions
53
odoo-bringout-oca-ocb-l10n_ec/l10n_ec/models/account_tax.py
Normal file
53
odoo-bringout-oca-ocb-l10n_ec/l10n_ec/models/account_tax.py
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
# -*- 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",
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue