mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-28 02:32:07 +02:00
19.0 vanilla
This commit is contained in:
parent
89c6e82fe7
commit
1b82c20a58
572 changed files with 43570 additions and 53303 deletions
|
|
@ -5,26 +5,33 @@ from odoo import fields, models
|
|||
class AccountTax(models.Model):
|
||||
_inherit = "account.tax"
|
||||
|
||||
l10n_pe_edi_tax_code = fields.Selection([
|
||||
('1000', 'IGV - General Sales Tax'),
|
||||
('1016', 'IVAP - Tax on Sale Paddy Rice'),
|
||||
('2000', 'ISC - Selective Excise Tax'),
|
||||
('7152', 'ICBPER - Plastic bag tax'),
|
||||
('9995', 'EXP - Exportation'),
|
||||
('9996', 'GRA - Free'),
|
||||
('9997', 'EXO - Exonerated'),
|
||||
('9998', 'INA - Unaffected'),
|
||||
('9999', 'OTROS - Other taxes')
|
||||
], 'EDI peruvian code')
|
||||
l10n_pe_edi_tax_code = fields.Selection(
|
||||
[
|
||||
('1000', 'IGV - General Sales Tax'),
|
||||
('1016', 'IVAP - Tax on Sale Paddy Rice'),
|
||||
('2000', 'ISC - Selective Excise Tax'),
|
||||
('7152', 'ICBPER - Plastic bag tax'),
|
||||
('9995', 'EXP - Exportation'),
|
||||
('9996', 'GRA - Free'),
|
||||
('9997', 'EXO - Exonerated'),
|
||||
('9998', 'INA - Unaffected'),
|
||||
('9999', 'OTHERS - Other taxes')
|
||||
],
|
||||
string='Code',
|
||||
help="Peru: SUNAT tax code",
|
||||
)
|
||||
|
||||
l10n_pe_edi_unece_category = fields.Selection([
|
||||
('E', 'Exempt from tax'),
|
||||
('G', 'Free export item, tax not charged'),
|
||||
('O', 'Services outside scope of tax'),
|
||||
('S', 'Standard rate'),
|
||||
('Z', 'Zero rated goods')], 'EDI UNECE code',
|
||||
help="Follow the UN/ECE 5305 standard from the United Nations Economic Commission for Europe for more "
|
||||
"information http://www.unece.org/trade/untdid/d08a/tred/tred5305.htm"
|
||||
l10n_pe_edi_unece_category = fields.Selection(
|
||||
[
|
||||
('E', 'Exempt from tax'),
|
||||
('G', 'Free export item, tax not charged'),
|
||||
('O', 'Services outside scope of tax'),
|
||||
('S', 'Standard rate'),
|
||||
('Z', 'Zero rated goods')
|
||||
],
|
||||
string='UNECE Code',
|
||||
help="Peru: Follow the UN/ECE 5305 standard from the United Nations Economic Commission for Europe for more "
|
||||
"information http://www.unece.org/trade/untdid/d08a/tred/tred5305.html"
|
||||
)
|
||||
l10n_pe_edi_isc_type = fields.Selection([
|
||||
('01', 'System to value'),
|
||||
|
|
@ -32,44 +39,3 @@ class AccountTax(models.Model):
|
|||
('03', 'Retail Price System'),
|
||||
], 'ISC Type',
|
||||
help='Used in Selective Consumption Tax to indicate the type of calculation for the ISC.')
|
||||
|
||||
|
||||
class AccountTaxTemplate(models.Model):
|
||||
_inherit = "account.tax.template"
|
||||
|
||||
l10n_pe_edi_tax_code = fields.Selection([
|
||||
('1000', 'IGV - General Sales Tax'),
|
||||
('1016', 'IVAP - Tax on Sale Paddy Rice'),
|
||||
('2000', 'ISC - Selective Excise Tax'),
|
||||
('7152', 'ICBPER - Plastic bag tax'),
|
||||
('9995', 'EXP - Exportation'),
|
||||
('9996', 'GRA - Free'),
|
||||
('9997', 'EXO - Exonerated'),
|
||||
('9998', 'INA - Unaffected'),
|
||||
('9999', 'OTROS - Other taxes')
|
||||
], 'EDI peruvian code')
|
||||
|
||||
l10n_pe_edi_unece_category = fields.Selection([
|
||||
('E', 'Exempt from tax'),
|
||||
('G', 'Free export item, tax not charged'),
|
||||
('O', 'Services outside scope of tax'),
|
||||
('S', 'Standard rate'),
|
||||
('Z', 'Zero rated goods')], 'EDI UNECE code',
|
||||
help="Follow the UN/ECE 5305 standard from the United Nations Economic Commission for Europe for more "
|
||||
"information http://www.unece.org/trade/untdid/d08a/tred/tred5305.htm"
|
||||
)
|
||||
l10n_pe_edi_isc_type = fields.Selection([
|
||||
('01', 'System to value'),
|
||||
('02', 'Application of the Fixed Amount'),
|
||||
('03', 'Retail Price System'),
|
||||
], 'ISC Type',
|
||||
help='Used in Selective Consumption Tax to indicate the type of calculation for the ISC.')
|
||||
|
||||
def _get_tax_vals(self, company, tax_template_to_tax):
|
||||
val = super()._get_tax_vals(company, tax_template_to_tax)
|
||||
val.update({
|
||||
'l10n_pe_edi_tax_code': self.l10n_pe_edi_tax_code,
|
||||
'l10n_pe_edi_unece_category': self.l10n_pe_edi_unece_category,
|
||||
'l10n_pe_edi_isc_type': self.l10n_pe_edi_isc_type,
|
||||
})
|
||||
return val
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue