mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-26 22:51:59 +02:00
19.0 vanilla
This commit is contained in:
parent
89c6e82fe7
commit
1b82c20a58
572 changed files with 43570 additions and 53303 deletions
|
|
@ -4,7 +4,27 @@
|
|||
General Chart of Accounts.
|
||||
==========================
|
||||
|
||||
Provide Templates for Chart of Accounts, Taxes for Uruguay.
|
||||
This module adds accounting functionalities for the Uruguayan localization, representing the minimum required configuration for a company to operate in Uruguay under the regulations and guidelines provided by the DGI (Dirección General Impositiva).
|
||||
|
||||
Among the functionalities are:
|
||||
|
||||
* Uruguayan Generic Chart of Account
|
||||
* Pre-configured VAT Taxes and Tax Groups.
|
||||
* Legal document types in Uruguay.
|
||||
* Valid contact identification types in Uruguay.
|
||||
* Configuration and activation of Uruguayan Currencies (UYU, UYI - Unidad Indexada Uruguaya).
|
||||
* Frequently used default contacts already configured: DGI, Consumidor Final Uruguayo.
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
||||
Demo data for testing:
|
||||
|
||||
* Uruguayan company named "UY Company" with the Uruguayan chart of accounts already installed, pre configured taxes, document types and identification types.
|
||||
* Uruguayan contacts for testing:
|
||||
|
||||
* IEB Internacional
|
||||
* Consumidor Final Anónimo Uruguayo.
|
||||
|
||||
|
||||
|
||||
|
|
@ -16,37 +36,16 @@ pip install odoo-bringout-oca-ocb-l10n_uy
|
|||
|
||||
## Dependencies
|
||||
|
||||
This addon depends on:
|
||||
- account
|
||||
|
||||
## Manifest Information
|
||||
|
||||
- **Name**: Uruguay - Accounting
|
||||
- **Version**: 0.1
|
||||
- **Category**: Accounting/Localizations/Account Charts
|
||||
- **License**: LGPL-3
|
||||
- **Installable**: False
|
||||
- l10n_latam_invoice_document
|
||||
- l10n_latam_base
|
||||
|
||||
## Source
|
||||
|
||||
Based on [OCA/OCB](https://github.com/OCA/OCB) branch 16.0, addon `l10n_uy`.
|
||||
- Repository: https://github.com/OCA/OCB
|
||||
- Branch: 19.0
|
||||
- Path: addons/l10n_uy
|
||||
|
||||
## License
|
||||
|
||||
This package maintains the original LGPL-3 license from the upstream Odoo project.
|
||||
|
||||
## Documentation
|
||||
|
||||
- Overview: doc/OVERVIEW.md
|
||||
- Architecture: doc/ARCHITECTURE.md
|
||||
- Models: doc/MODELS.md
|
||||
- Controllers: doc/CONTROLLERS.md
|
||||
- Wizards: doc/WIZARDS.md
|
||||
- Reports: doc/REPORTS.md
|
||||
- Security: doc/SECURITY.md
|
||||
- Install: doc/INSTALL.md
|
||||
- Usage: doc/USAGE.md
|
||||
- Configuration: doc/CONFIGURATION.md
|
||||
- Dependencies: doc/DEPENDENCIES.md
|
||||
- Troubleshooting: doc/TROUBLESHOOTING.md
|
||||
- FAQ: doc/FAQ.md
|
||||
This package preserves the original LGPL-3 license.
|
||||
|
|
|
|||
|
|
@ -1,2 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import controllers
|
||||
from . import models
|
||||
from . import demo
|
||||
|
|
|
|||
|
|
@ -1,30 +1,56 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
{
|
||||
'name': 'Uruguay - Accounting',
|
||||
'website': 'https://www.odoo.com/documentation/latest/applications/finance/fiscal_localizations/uruguay.html',
|
||||
'icon': '/account/static/description/l10n.png',
|
||||
'countries': ['uy'],
|
||||
'version': '0.1',
|
||||
'author': 'Uruguay l10n Team, Guillem Barba',
|
||||
'author': 'Uruguay l10n Team, Guillem Barba, ADHOC',
|
||||
'category': 'Accounting/Localizations/Account Charts',
|
||||
'description': """
|
||||
General Chart of Accounts.
|
||||
==========================
|
||||
|
||||
Provide Templates for Chart of Accounts, Taxes for Uruguay.
|
||||
This module adds accounting functionalities for the Uruguayan localization, representing the minimum required configuration for a company to operate in Uruguay under the regulations and guidelines provided by the DGI (Dirección General Impositiva).
|
||||
|
||||
Among the functionalities are:
|
||||
|
||||
* Uruguayan Generic Chart of Account
|
||||
* Pre-configured VAT Taxes and Tax Groups.
|
||||
* Legal document types in Uruguay.
|
||||
* Valid contact identification types in Uruguay.
|
||||
* Configuration and activation of Uruguayan Currencies (UYU, UYI - Unidad Indexada Uruguaya).
|
||||
* Frequently used default contacts already configured: DGI, Consumidor Final Uruguayo.
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
||||
Demo data for testing:
|
||||
|
||||
* Uruguayan company named "UY Company" with the Uruguayan chart of accounts already installed, pre configured taxes, document types and identification types.
|
||||
* Uruguayan contacts for testing:
|
||||
|
||||
* IEB Internacional
|
||||
* Consumidor Final Anónimo Uruguayo.
|
||||
|
||||
""",
|
||||
'depends': ['account'],
|
||||
'depends': [
|
||||
'account',
|
||||
'l10n_latam_invoice_document',
|
||||
'l10n_latam_base',
|
||||
],
|
||||
'auto_install': ['account'],
|
||||
'data': [
|
||||
'data/l10n_uy_chart_data.xml',
|
||||
'data/account.account.template.csv',
|
||||
'data/l10n_uy_chart_post_data.xml',
|
||||
'data/account_tax_group_data.xml',
|
||||
'data/account_tax_report_data.xml',
|
||||
'data/account_tax_data.xml',
|
||||
'data/account_chart_template_data.xml',
|
||||
'data/l10n_latam.document.type.csv',
|
||||
'data/l10n_latam_identification_type_data.xml',
|
||||
'data/res_partner_data.xml',
|
||||
'data/res_currency_data.xml',
|
||||
'views/account_tax_views.xml',
|
||||
],
|
||||
'demo': [
|
||||
'demo/demo_company.xml',
|
||||
'demo/res_currency_rate_demo.xml',
|
||||
],
|
||||
'license': 'LGPL-3',
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import portal
|
||||
14
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/controllers/portal.py
Normal file
14
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/controllers/portal.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo.http import request
|
||||
|
||||
from odoo.addons.l10n_latam_base.controllers.portal import L10nLatamBasePortalAccount
|
||||
|
||||
|
||||
class L10nUYPortalAccount(L10nLatamBasePortalAccount):
|
||||
|
||||
def _l10n_get_default_identification_type_id(self):
|
||||
return (
|
||||
(self.env.company.country_code == 'UY' and request.env.ref('l10n_uy.it_ci'))
|
||||
or super()._l10n_get_default_identification_type_id()
|
||||
)
|
||||
|
|
@ -1,152 +0,0 @@
|
|||
"id","name","code","account_type","chart_template_id/id","reconcile"
|
||||
"uy_code_11201","Depósitos Bancarios","11201","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11202","Valores Públicos","11202","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11211","Previsión para desvalorizaciones","11211","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11212","Intereses percibidos por adelantado","11212","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11300","Deudores Varios (def)","11300","asset_receivable","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11301","Deudores Simples Plaza","11301","asset_receivable","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11302","Deudores por Exportaciones","11302","asset_receivable","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11303","Documentos a Cobrar MN","11303","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11304","Documentos a Cobrar ME","11304","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11305","Cheques en Cartera MN","11305","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11306","Cheques en Cartera ME","11306","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11307","Deudores Varios (PoS)","11307","asset_receivable","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11311","Prevision para Deudores Incobrables","11311","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11312","Prevision p/dtos y Bonificaciones","11312","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11313","Intereses percibidos por adelantado","11313","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11314","Ingresos diferidos","11314","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11401","Anticipos a Proveedores","11401","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11402","Casa Matriz, Empresas Controlantes","11402","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11403","Controladas / Vinculadas","11403","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11404","Depositos en Garantia","11404","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11405","Pagos adelantados","11405","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11406","Saldos Deudor de ctas de Directores","11406","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11501","Iva Compras Mínima","11501","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11502","Iva Compras Básica","11502","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11505","Iva Pagos","11505","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11506","Iva Retenciones","11506","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11507","Iva Importación","11507","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11508","Iva Anticipo Importación","11508","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11601","Irae Anticipo","11601","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11602","Patrimonio Anticipo","11602","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11603","Icosa Anticipo","11603","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11621","Diversos","11621","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11631","Prevision para Deudores Incobrables","11631","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11632","Ingresos percibidos por adelantado","11632","income","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11633","Ingresos diferidos","11633","income","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11701","Mercaderia de Reventa","11701","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11702","Productos Terminados","11702","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11703","Productos en Proceso","11703","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11704","Materias Primas","11704","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11705","Materiales y Suministros","11705","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11706","Importaciones en tramite","11706","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_11711","Prevision p/desvalorizaciones","11711","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12101","Créditos a Largo Plazo","12101","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12201","Bienes de cambio no corrientes","12201","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12301","Depositos Bancarios","12301","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12302","Inmuebles","12302","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12303","Valores orig. y revaluados s/anexo","12303","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12304","Menos: Amort. Acum.","12304","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12305","Titulos y Acciones","12305","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12311","Prevision para Desvalorizaciones","12311","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12312","Intereses percibidos por adelantado","12312","income","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12401","Muebles y Útiles","12401","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12402","Inmuebles","12402","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12403","Maquinas y Herramientas","12403","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12404","Vehículos","12404","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12420","Amort.Ac.Mueb.y Utiles","12420","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12421","Amort.Ac.Inmuebles","12421","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12422","Amort.Ac.Maq.y Herram.","12422","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12423","Amort.Ac.Vehiculos","12423","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12501","Patentes, marcas y licencias","12501","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12502","Gastos de investigacion","12502","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_12520","Amortizaciones Acumuladas","12520","asset_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21100","Acreedores Varios (def)","21100","liability_payable","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21101","Proveedores por Importaciones","21101","liability_payable","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21102","Deuds. Contratos de Cambio Import.","21102","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21103","Proveedores de Plaza","21103","liability_payable","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21104","Documentos a Pagar ds/Comerciales","21104","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21120","Intereses a vencer ds/Comerciales","21120","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21201","Prestamos Bancarios","21201","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21202","Obligaciones","21202","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21203","Documentos a pagar MN a pagar ds/Financieras","21203","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21204","Documentos a pagar ME a pagar ds/Financieras","21204","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21220","Ints. a vencer ds/Financieras","21220","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21301","Cobros Anticipados","21301","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21302","Dividendos a Pagar","21302","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21303","Casa Matriz, Empresas Controlantes,","21303","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21304","Controladas/Vinculadas","21304","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21305","Sueldos y Jornales a pagar","21305","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21306","Acreedores por Cargas Sociales","21306","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21307","Acreedores fiscales","21307","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21308","Saldos Acreedores Cuentas Directores","21308","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21320","Otras deudas","21320","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21401","Iva Ventas Mínima","21401","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21402","Iva Ventas Básica","21402","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21403","Iva a Pagar","21403","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21404","Iva Retenido","21404","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21411","Irpf Retenido","21411","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21421","Bps","21421","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21501","Irae del Ejercicio","21501","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21502","Irae a Pagar","21502","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21503","Irae Anticipo a Pagar","21503","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21601","Patrimonio del Ejercicio","21601","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21602","Patrimonio a Pagar","21602","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21603","Patrimonio Anticipo a Pagar","21603","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21701","Icosa del Ejercicio","21701","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21702","Icosa a Pagar","21702","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21703","Icosa Anticipo a Pagar","21703","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_21801","Responsabilidad frente a terceros","21801","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_22101","Deudas Comerciales","22101","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_22201","Deudas Financieras","22201","liability_payable","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_22301","Deudas Diversas","22301","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_22401","Previsiones No Corrientes","22401","liability_current","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_3111","Capital Integrado","3111","equity","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_3221","Revaluaciones fiscales","3221","equity","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_3222","Revaluaciones voluntarias","3222","equity","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_3311","Reservas Legales","3311","equity","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_3312","Reservas Voluntarias","3312","equity","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_3313","Pérdidas y Ganancias","3313","equity","l10n_uy.uy_chart_template","False"
|
||||
"uy_code_33201","Resultados del ejercicio","33201","equity","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_33220","Dividendos provisorios","33220","equity","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_4100","Ingresos Operativos (def)","4100","income","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_4101","Ventas Exentas","4101","income","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_4102","Ventas Tasa Básica","4102","income","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_4103","Ventas Tasa Mínima","4103","income","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_4104","Ventas por Exportaciones","4104","income","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_4201","Ventas extraordinarias","4201","income","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_4301","Intereses ganados","4301","income","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_4302","Diferencias de Cambio ganadas","4302","income","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_4303","Descuentos Obtenidos","4303","income","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5100","Gastos Varios (def)","5100","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5101","Sueldos y Jornales","5101","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5102","Cargas Sociales","5102","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5103","Seguros","5103","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5104","Papelería","5104","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5105","Combustible","5105","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5106","Fletes","5106","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5107","Mantenimiento Vehículos","5107","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5108","Honorarios Profesionales","5108","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5109","Servicios Contratados","5109","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5110","Energía Eléctrica y Aguas Corrientes","5110","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5111","Comunicaciones y Servicios Telefónicos","5111","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5112","Alquileres","5112","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5114","Publicidad","5114","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5115","Representación","5115","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5201","IVA ventas 10%","5201","liability_current","l10n_uy.uy_chart_template","False"
|
||||
"uy_code_5202","IVA ventas 22%","5202","liability_current","l10n_uy.uy_chart_template","False"
|
||||
"uy_code_5203","Contribuciones","5203","asset_current","l10n_uy.uy_chart_template","False"
|
||||
"uy_code_5204","Retenciones","5204","asset_current","l10n_uy.uy_chart_template","False"
|
||||
"uy_code_5205","Otros","5205","asset_current","l10n_uy.uy_chart_template","False"
|
||||
"uy_code_5301","Intereses y Gastos Bancarios","5301","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5302","Diferencias de Cambio perdidas","5302","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5303","Descuentos Concedidos","5303","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5304","Multas y Recargos Fiscales","5304","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5400","Costos de lo vendido","5400","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5401","Costo de Mercaderías","5401","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5402","Costo de Venta de Bienes de Uso","5402","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_5500","Amortizaciones","5500","expense","l10n_uy.uy_chart_template","True"
|
||||
"uy_code_61","Acciones a Emitir","61","equity","l10n_uy.uy_chart_template","False"
|
||||
"uy_code_62","Suscriptores de acciones","62","equity","l10n_uy.uy_chart_template","False"
|
||||
"uy_code_71","Capital Autorizado a Suscribir","71","equity","l10n_uy.uy_chart_template","False"
|
||||
"uy_code_72","Capital suscripto","72","equity","l10n_uy.uy_chart_template","False"
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<function model="account.chart.template" name="try_loading">
|
||||
<value eval="[ref('l10n_uy.uy_chart_template')]"/>
|
||||
</function>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -1,178 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<!-- Account Tax Template -->
|
||||
<record id="vat1" model="account.tax.template">
|
||||
<field name="chart_template_id" ref="uy_chart_template"/>
|
||||
<field name="name">IVA Ventas (22%)</field>
|
||||
<field name="description">IVA Ventas (22%)</field>
|
||||
<field name="amount">22</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="type_tax_use">sale</field>
|
||||
<field name="tax_group_id" ref="tax_group_iva_22"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5,0,0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('account_tax_report_base_impb_vnts_22_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('uy_code_5202'),
|
||||
'plus_report_expression_ids': [ref('account_tax_report_iva_vnts_22_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5,0,0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('account_tax_report_impb_vnts_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('uy_code_5202'),
|
||||
'minus_report_expression_ids': [ref('account_tax_report_vnts_prcbdo_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="vat2" model="account.tax.template">
|
||||
<field name="chart_template_id" ref="uy_chart_template"/>
|
||||
<field name="name">IVA Ventas (10%)</field>
|
||||
<field name="description">IVA Ventas (10%)</field>
|
||||
<field name="amount">10</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="type_tax_use">sale</field>
|
||||
<field name="tax_group_id" ref="tax_group_iva_10"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5,0,0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('account_tax_report_base_impb_vnts_10_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('uy_code_5201'),
|
||||
'plus_report_expression_ids': [ref('account_tax_report_iva_vnts_10_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5,0,0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('account_tax_report_impb_vnts_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('uy_code_5201'),
|
||||
'minus_report_expression_ids': [ref('account_tax_report_vnts_prcbdo_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="vat3" model="account.tax.template">
|
||||
<field name="chart_template_id" ref="uy_chart_template"/>
|
||||
<field name="name">Ventas Exentos IVA</field>
|
||||
<field name="description">Ventas Exentos IVA</field>
|
||||
<field name="amount">0</field>
|
||||
<field name="amount_type">fixed</field>
|
||||
<field name="type_tax_use">sale</field>
|
||||
<field name="tax_group_id" ref="tax_group_exenton"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5,0,0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('account_tax_report_base_impb_vnts_0_tag')],
|
||||
}),
|
||||
(0,0, {'repartition_type': 'tax'}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5,0,0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('account_tax_report_impb_vnts_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="vat4" model="account.tax.template">
|
||||
<field name="chart_template_id" ref="uy_chart_template"/>
|
||||
<field name="name">IVA Compras (22%)</field>
|
||||
<field name="description">IVA Compras (22%)</field>
|
||||
<field name="amount">22</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="tax_group_id" ref="tax_group_iva_22"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5,0,0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('account_tax_report_base_impb_cmprs_22_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('uy_code_11502'),
|
||||
'plus_report_expression_ids': [ref('account_tax_report_iva_cmprs_22_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5,0,0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('account_tax_report_impb_cmprs_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('uy_code_11502'),
|
||||
'minus_report_expression_ids': [ref('account_tax_report_cmprs_pagdo_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="vat5" model="account.tax.template">
|
||||
<field name="chart_template_id" ref="uy_chart_template"/>
|
||||
<field name="name">IVA Compras (10%)</field>
|
||||
<field name="description">IVA Compras (10%)</field>
|
||||
<field name="amount">10</field>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="tax_group_id" ref="tax_group_iva_10"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5,0,0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('account_tax_report_base_impb_cmprs_10_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('uy_code_11501'),
|
||||
'plus_report_expression_ids': [ref('account_tax_report_iva_cmprs_10_tag')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5,0,0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('account_tax_report_impb_cmprs_tag')],
|
||||
}),
|
||||
(0,0, {
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('uy_code_11501'),
|
||||
'minus_report_expression_ids': [ref('account_tax_report_cmprs_pagdo_tag')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
<record id="vat6" model="account.tax.template">
|
||||
<field name="chart_template_id" ref="uy_chart_template"/>
|
||||
<field name="name">Compras Exentos IVA</field>
|
||||
<field name="description">Compras Exentos IVA</field>
|
||||
<field name="amount">0</field>
|
||||
<field name="amount_type">fixed</field>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="tax_group_id" ref="tax_group_exenton"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5,0,0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'plus_report_expression_ids': [ref('account_tax_report_base_impb_cmprs_0_tag')],
|
||||
}),
|
||||
(0,0, {'repartition_type': 'tax'}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5,0,0),
|
||||
(0,0, {
|
||||
'repartition_type': 'base',
|
||||
'minus_report_expression_ids': [ref('account_tax_report_impb_cmprs_tag')],
|
||||
}),
|
||||
(0,0, {'repartition_type': 'tax'}),
|
||||
]"/>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<record id="tax_group_iva_10" model="account.tax.group">
|
||||
<field name="name">IVA 10%</field>
|
||||
<field name="country_id" ref="base.uy"/>
|
||||
</record>
|
||||
<record id="tax_group_iva_22" model="account.tax.group">
|
||||
<field name="name">IVA 22%</field>
|
||||
<field name="country_id" ref="base.uy"/>
|
||||
</record>
|
||||
<record id="tax_group_exenton" model="account.tax.group">
|
||||
<field name="name">EXENTOS</field>
|
||||
<field name="country_id" ref="base.uy"/>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -1,10 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<odoo auto_sequence="1">
|
||||
<record id="tax_report" model="account.report">
|
||||
<field name="name">Tax Report</field>
|
||||
<field name="name@es_419">Reporte de Impuestos</field>
|
||||
<field name="root_report_id" ref="account.generic_tax_report"/>
|
||||
<field name="country_id" ref="base.uy"/>
|
||||
<field name="filter_fiscal_position" eval="True"/>
|
||||
<field name="allow_foreign_vat" eval="True"/>
|
||||
<field name="availability_condition">country</field>
|
||||
<field name="column_ids">
|
||||
<record id="tax_report_balance" model="account.report.column">
|
||||
|
|
@ -14,106 +15,140 @@
|
|||
</field>
|
||||
<field name="line_ids">
|
||||
<record id="account_tax_report_base_impb" model="account.report.line">
|
||||
<field name="name">Base Imponible</field>
|
||||
<field name="name">Taxable income</field>
|
||||
<field name="name@es_419">Ingreso Imponible</field>
|
||||
<field name="aggregation_formula">BASE_IMPONIBLE_COMPRAS.balance + BASE_IMPONIBLE_VENTAS.balance</field>
|
||||
<field name="hierarchy_level">0</field>
|
||||
<field name="children_ids">
|
||||
<record id="account_tax_report_base_impb_cmprs" model="account.report.line">
|
||||
<field name="name">Base Imponible Compras</field>
|
||||
<field name="name">Tax Base Purchases</field>
|
||||
<field name="name@es_419">Compras de base imponible</field>
|
||||
<field name="code">BASE_IMPONIBLE_COMPRAS</field>
|
||||
<field name="aggregation_formula">UYTAX_010101.balance + UYTAX_020101.balance + UYTAX_030101.balance + UYTAX_040101.balance</field>
|
||||
<field name="aggregation_formula">UYTAX_010101.balance + UYTAX_020101.balance + UYTAX_030101.balance + UYTAX_040101.balance + UYTAX_050101.balance</field>
|
||||
<field name="children_ids">
|
||||
<record id="account_tax_report_base_impb_cmprs_22" model="account.report.line">
|
||||
<field name="name">Base Compras 22%</field>
|
||||
<field name="name">Base Purchases 22%</field>
|
||||
<field name="name@es_419">Base 22% Compras</field>
|
||||
<field name="code">UYTAX_010101</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_base_impb_cmprs_22_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Base Compras 22%</field>
|
||||
<field name="formula">Base Purchases 22%</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_base_impb_cmprs_10" model="account.report.line">
|
||||
<field name="name">Base Compras 10%</field>
|
||||
<field name="name">Base Purchases 10%</field>
|
||||
<field name="name@es_419">Base 10% Compras</field>
|
||||
<field name="code">UYTAX_020101</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_base_impb_cmprs_10_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Base Compras 10%</field>
|
||||
<field name="formula">Base Purchases 10%</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_base_impb_cmprs_0" model="account.report.line">
|
||||
<field name="name">Base Compras 0%</field>
|
||||
<field name="name">Base Purchases 0%</field>
|
||||
<field name="name@es_419">Base 0% Compras</field>
|
||||
<field name="code">UYTAX_030101</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_base_impb_cmprs_0_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Base Compras 0%</field>
|
||||
<field name="formula">Base Purchases 0%</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_impb_cmprs" model="account.report.line">
|
||||
<field name="name">Base Imponible Compras</field>
|
||||
<field name="name">Tax Base Purchases</field>
|
||||
<field name="name@es_419">Compras de base imponible</field>
|
||||
<field name="code">UYTAX_040101</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_impb_cmprs_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Base Imponible Compras</field>
|
||||
<field name="formula">Tax Base Purchases</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_base_impb_cmprs_reduced" model="account.report.line">
|
||||
<field name="name">Base Purchases Reduced VAT</field>
|
||||
<field name="code">UYTAX_050101</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_base_impb_cmprs_reduced_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Base Purchases Reduced VAT</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_base_impb_vnts" model="account.report.line">
|
||||
<field name="name">Base Imponible Ventas</field>
|
||||
<field name="name">Taxable Sales Base</field>
|
||||
<field name="name@es_419">Base imponible de ventas</field>
|
||||
<field name="code">BASE_IMPONIBLE_VENTAS</field>
|
||||
<field name="aggregation_formula">UYTAX_010201.balance + UYTAX_020201.balance + UYTAX_030201.balance + UYTAX_040201.balance</field>
|
||||
<field name="aggregation_formula">UYTAX_010201.balance + UYTAX_020201.balance + UYTAX_030201.balance + UYTAX_040201.balance + UYTAX_050201.balance</field>
|
||||
<field name="children_ids">
|
||||
<record id="account_tax_report_base_impb_vnts_22" model="account.report.line">
|
||||
<field name="name">Base Ventas 22%</field>
|
||||
<field name="name">Base Sales 22%</field>
|
||||
<field name="name@es_419">Base 22% Ventas</field>
|
||||
<field name="code">UYTAX_010201</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_base_impb_vnts_22_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Base Ventas 22%</field>
|
||||
<field name="formula">-Base Sales 22%</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_base_impb_vnts_10" model="account.report.line">
|
||||
<field name="name">Base Ventas 10%</field>
|
||||
<field name="name">Base Sales 10%</field>
|
||||
<field name="name@es_419">Base 10% Ventas</field>
|
||||
<field name="code">UYTAX_020201</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_base_impb_vnts_10_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Base Ventas 10%</field>
|
||||
<field name="formula">-Base Sales 10%</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_base_impb_vnts_0" model="account.report.line">
|
||||
<field name="name">Base Ventas 0%</field>
|
||||
<field name="name">Base Sales 0%</field>
|
||||
<field name="name@es_419">Base 0% Ventas</field>
|
||||
<field name="code">UYTAX_030201</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_base_impb_vnts_0_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Base Ventas 0%</field>
|
||||
<field name="formula">-Base Sales 0%</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_impb_vnts" model="account.report.line">
|
||||
<field name="name">Base Imponible Ventas</field>
|
||||
<field name="name">Taxable Sales Base</field>
|
||||
<field name="name@es_419">Base imponible de ventas</field>
|
||||
<field name="code">UYTAX_040201</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_impb_vnts_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Base Imponible Ventas</field>
|
||||
<field name="formula">-Taxable Sales Base</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_base_impb_vnts_reduced" model="account.report.line">
|
||||
<field name="name">Base Sales Reduced VAT</field>
|
||||
<field name="code">UYTAX_050201</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_base_impb_vnts_reduced_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Base Sales Reduced VAT</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -122,38 +157,44 @@
|
|||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_sldo_iva" model="account.report.line">
|
||||
<field name="name">Saldo de IVA</field>
|
||||
<field name="name">VAT balance</field>
|
||||
<field name="name@es_419">Balance IVA</field>
|
||||
<field name="aggregation_formula">IVA_COMPRAS__PAGADO.balance + UYTAX_040102.balance + IVA_VENTAS__PERCIBIDO.balance</field>
|
||||
<field name="hierarchy_level">0</field>
|
||||
<field name="children_ids">
|
||||
<record id="account_tax_report_iva_cmprs_pagdo" model="account.report.line">
|
||||
<field name="name">IVA Compras - pagado</field>
|
||||
<field name="name">VAT Purchases - paid</field>
|
||||
<field name="name@es_419">IVA Compras - pagado</field>
|
||||
<field name="code">IVA_COMPRAS__PAGADO</field>
|
||||
<field name="aggregation_formula">UYTAX_010102.balance + UYTAX_020102.balance + COMPRAS_EXENTO_IVA.balance</field>
|
||||
<field name="aggregation_formula">UYTAX_010102.balance + UYTAX_020102.balance + COMPRAS_EXENTO_IVA.balance + UYTAX_030102.balance</field>
|
||||
<field name="children_ids">
|
||||
<record id="account_tax_report_iva_cmprs_22" model="account.report.line">
|
||||
<field name="name">IVA Compras 22%</field>
|
||||
<field name="name">VAT Purchases 22%</field>
|
||||
<field name="name@es_419">IVA Compras 22%</field>
|
||||
<field name="code">UYTAX_010102</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_iva_cmprs_22_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">IVA Compras 22%</field>
|
||||
<field name="formula">VAT Purchases 22%</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_iva_cmprs_10" model="account.report.line">
|
||||
<field name="name">IVA Compras 10%</field>
|
||||
<field name="name">VAT Purchases 10%</field>
|
||||
<field name="name@es_419">IVA Compras 10%</field>
|
||||
<field name="code">UYTAX_020102</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_iva_cmprs_10_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">IVA Compras 10%</field>
|
||||
<field name="formula">VAT Purchases 10%</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_cmprs_exnto_iva" model="account.report.line">
|
||||
<field name="name">Compras Exento IVA</field>
|
||||
<field name="name">Purchases Exempt from VAT</field>
|
||||
<field name="name@es_419">Compras IVA Exentas</field>
|
||||
<field name="code">COMPRAS_EXENTO_IVA</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_cmprs_exnto_iva_formula" model="account.report.expression">
|
||||
|
|
@ -164,48 +205,64 @@
|
|||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_cmprs_iva_reduced" model="account.report.line">
|
||||
<field name="name">Purchases Reduced VAT</field>
|
||||
<field name="code">UYTAX_030102</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_cmprs_iva_formula_reduced" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Purchases Reduced VAT</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_cmprs_pagdo" model="account.report.line">
|
||||
<field name="name">IVA Compras - pagado</field>
|
||||
<field name="name">VAT Purchases - paid</field>
|
||||
<field name="name@es_419">IVA Compras - pagado</field>
|
||||
<field name="code">UYTAX_040102</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_cmprs_pagdo_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">IVA Compras - pagado</field>
|
||||
<field name="formula">VAT Purchases - paid</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_iva_vnts_prcbdo" model="account.report.line">
|
||||
<field name="name">IVA Ventas - percibido</field>
|
||||
<field name="name">VAT Sales - received</field>
|
||||
<field name="name@es_419">IVA Venas - recibido</field>
|
||||
<field name="code">IVA_VENTAS__PERCIBIDO</field>
|
||||
<field name="aggregation_formula">UYTAX_010202.balance + UYTAX_020202.balance + VENTAS_EXENTO_IVA.balance + UYTAX_040202.balance</field>
|
||||
<field name="aggregation_formula">UYTAX_010202.balance + UYTAX_020202.balance + VENTAS_EXENTO_IVA.balance + UYTAX_030202.balance + UYTAX_040202.balance</field>
|
||||
<field name="children_ids">
|
||||
<record id="account_tax_report_iva_vnts_22" model="account.report.line">
|
||||
<field name="name">IVA Ventas 22%</field>
|
||||
<field name="name">Sales VAT 22%</field>
|
||||
<field name="name@es_419">IVA Ventas 22%</field>
|
||||
<field name="code">UYTAX_010202</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_iva_vnts_22_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">IVA Ventas 22%</field>
|
||||
<field name="formula">-Sales VAT 22%</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_iva_vnts_10" model="account.report.line">
|
||||
<field name="name">IVA Ventas 10%</field>
|
||||
<field name="name">Sales VAT 10%</field>
|
||||
<field name="name@es_419">IVA Ventas 10%</field>
|
||||
<field name="code">UYTAX_020202</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_iva_vnts_10_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">IVA Ventas 10%</field>
|
||||
<field name="formula">-Sales VAT 10%</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_vnts_iva" model="account.report.line">
|
||||
<field name="name">Ventas Exento IVA</field>
|
||||
<field name="name">Sales VAT exempt</field>
|
||||
<field name="name@es_419">Ventas exentas de IVA</field>
|
||||
<field name="code">VENTAS_EXENTO_IVA</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_vnts_iva_formula" model="account.report.expression">
|
||||
|
|
@ -216,14 +273,26 @@
|
|||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_vnts_iva_reduced" model="account.report.line">
|
||||
<field name="name">Sales Reduced VAT</field>
|
||||
<field name="code">UYTAX_030202</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_vnts_iva_formula_reduced" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">Sales Reduced VAT</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_tax_report_vnts_prcbdo" model="account.report.line">
|
||||
<field name="name">IVA Ventas - percibido</field>
|
||||
<field name="name">VAT Sales - received</field>
|
||||
<field name="name@es_419">IVA Venas - recibido</field>
|
||||
<field name="code">UYTAX_040202</field>
|
||||
<field name="expression_ids">
|
||||
<record id="account_tax_report_vnts_prcbdo_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">IVA Ventas - percibido</field>
|
||||
<field name="formula">-VAT Sales - received</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,52 @@
|
|||
"id","code","name","internal_type","doc_code_prefix","country_id/id","name@es_419"
|
||||
"dc_inv","0","Invoice","invoice","FC","base.uy","Factura"
|
||||
"dc_boleta_venta_contado","0","Boleta","invoice","BO","base.uy",""
|
||||
"dc_cn_inv","0","Credit Note","credit_note","NC","base.uy","Nota de Crédito"
|
||||
"dc_dn_inv","0","Debit Note","debit_note","ND","base.uy","Nota de Débito"
|
||||
"dc_recibo_cobranza","0","Collection Receipt","invoice","RC","base.uy","Recibo Cobranza"
|
||||
"dc_inv_expo","0","Export Invoice","invoice","FCE","base.uy","Factura Exportación"
|
||||
"dc_nc_expo","0","Export Credit Note","credit_note","NCE","base.uy","Nota de Crédito Exportación"
|
||||
"dc_nd_expo","0","Export Debit Note","debit_note","NDE","base.uy","Nota de Débito Exportación"
|
||||
"dc_remito","0","Delivery Guide","","REM","base.uy","Remito"
|
||||
"dc_e_ticket","101","e-Ticket","invoice","e-TK","base.uy",""
|
||||
"dc_cn_e_ticket","102","e-Ticket Credit Note","credit_note","e-NCTK","base.uy","Nota de Crédito de e-Ticket"
|
||||
"dc_dn_e_ticket","103","e-Ticket Debit Note","debit_note","e-NDTK","base.uy","Nota de Débito de e-Ticket"
|
||||
"dc_e_inv","111","e-Invoice","invoice","e-FC","base.uy","e-Factura"
|
||||
"dc_cn_e_inv","112","e-Invoice Credit Note","credit_note","e-NC","base.uy","Nota de Crédito de e-Factura"
|
||||
"dc_dn_e_inv","113","e-Invoice Debit Note","debit_note","e-ND","base.uy","Nota de Débito de e-Factura"
|
||||
"dc_e_inv_exp","121","Export e-Invoice","invoice","e-FCE","base.uy","e-Factura Exportación"
|
||||
"dc_cn_e_inv_exp","122","Export e-Invoice Credit Note","credit_note","e-NCE","base.uy","Nota de Crédito de e-Factura Exportación"
|
||||
"dc_dn_e_inv_exp","123","Export e-Invoice Debit Note","debit_note","e-NDE","base.uy","Nota de Débito de e-Factura Exportación"
|
||||
"dc_e_remito_expo","124","Export e-Delivery Guide","","e-REME","base.uy","e-Remito Exportación"
|
||||
"dc_e_ticket_venta_por_cuenta_ajena","131","e-Ticket Sale By Third Party","invoice","e-TK-CA","base.uy","e-Ticket Venta por Cuenta Ajena"
|
||||
"dc_nota_de_credito_e_ticket_venta_por_cuenta_ajena","132","e-Ticket Sale By Third Party Credit Note","credit_note","e-NCTK-CA","base.uy","Nota de Crédito e-Ticket Venta por Cuenta Ajena"
|
||||
"dc_nota_de_debito_e_ticket_venta_por_cuenta_ajena","133","e-Ticket Sale By Third Party Debit Note","debit_note","e-NDTK-CA","base.uy","Nota de Débito e-Ticket Venta por Cuenta Ajena"
|
||||
"dc_e_factura_venta_por_cuenta_ajena","141","e-Invoice Sale By Third Party","invoice","e-FC-CA","base.uy","e-Factura Venta por Cuenta Ajena"
|
||||
"dc_nota_de_credito_e_factura_venta_por_cuenta_ajena","142","e-Invoice Sale By Third Party Credit Note","credit_note","e-NC-CA","base.uy","Nota de Crédito e-Factura Venta por Cuenta Ajena"
|
||||
"dc_nota_de_debito_e_factura_venta_por_cuenta_ajena","143","e-Invoice Sale By Third Party Debit Note","debit_note","e-ND-CA","base.uy","Nota de Débito e-Factura Venta por Cuenta Ajena"
|
||||
"dc_e_boleta","151","e-Boleta","invoice","e-BO","base.uy",""
|
||||
"dc_nota_de_credito_e_boleta","152","Credit Note e-Boleta","credit_note","e-BO-NC","base.uy","Nota de Crédito e-Boleta"
|
||||
"dc_nota_de_debito_e_boleta","153","Debit Note e-Boleta","debit_note","e-BO-ND","base.uy","Nota de Dédito e-Boleta"
|
||||
"dc_e_remito","181","e-Delivery Guide","","e-REM","base.uy","e-Remito"
|
||||
"dc_e_resguardo","182","e-Resguardo","","e-RES","base.uy",""
|
||||
"dc_e_ticket_cont","201","Contingency e-Ticket","invoice","e-TK-C","base.uy","e-Ticket Contingencia"
|
||||
"dc_cn_e_ticket_cont","202","Contingency e-Ticket Credit Note","credit_note","e-NCTK-C","base.uy","Nota de Credito de e-Ticket Contingencia"
|
||||
"dc_dn_e_ticket_cont","203","Contingency e-Ticket Debit Note","debit_note","e-NDTK-C","base.uy","Nota de Debito de e-Ticket Contingencia"
|
||||
"dc_e_factura_contingencia","211","Contingency e-Invoice","invoice","e-FC-C","base.uy","e-Factura Contingencia"
|
||||
"dc_nota_de_crédito_de_e_factura_contingencia","212","Contingency e-Invoice Credit Note","credit_note","e-NC-C","base.uy","Nota de Crédito de e-Factura Contingencia"
|
||||
"dc_nota_de_débito_de_e_factura_contingencia","213","Contingency e-Invoice Debit Note","debit_note","e-ND-C","base.uy","Nota de Débito de e-Factura Contingencia"
|
||||
"dc_e_factura_exportación_contingencia","221","Contingency Export e-Invoice","invoice","e-FCE-C","base.uy","e-Factura Exportación Contingencia"
|
||||
"dc_nota_de_crédito_de_e_factura_exportación_contingencia","222","Contingency Export e-Invoice Credit Note","credit_note","e-NCE-C","base.uy","Nota de Crédito de e-Factura Exportación Contingencia"
|
||||
"dc_nota_de_débito_de_e_factura_exportación_contingencia","223","Contingency Export e-Invoice Debit Note","debit_note","e-NDE-C","base.uy","Nota de Débito de e-Factura Exportación Contingencia"
|
||||
"dc_e_remito_de_exportación_contingencia","224","Contingency Export e-Delivery Guide","","e-REME-C","base.uy","e-Remito de Exportación Contingencia"
|
||||
"dc_e_ticket_venta_por_cuenta_ajena_contingencia","231","Contingency e-Ticket Sale By Third Party","invoice","e-TK-CAC","base.uy","e-Ticket Venta por Cuenta Ajena Contingencia"
|
||||
"dc_nota_de_crédito_de_e_ticket_venta_por_cuenta_ajena_contingencia","232","Contingency e-Ticket Sale By Third Party Credit Note","credit_note","e-NCTK-CAC","base.uy","Nota de Crédito de e-Ticket Venta por Cuenta Ajena Contingencia"
|
||||
"dc_nota_de_débito_de_e_ticket_venta_por_cuenta_ajena_contingencia","233","Contingency e-Ticket Sale By Third Party Debit Note","debit_note","e-NDTK-CAC","base.uy","Nota de Débito de e-Ticket Venta por Cuenta Ajena Contingencia"
|
||||
"dc_e_factura_venta_por_cuenta_ajena_contingencia","241","Contingency e-Invoice Sale By Third Party","invoice","e-FC-CAC","base.uy","e-Factura Venta por Cuenta Ajena Contingencia"
|
||||
"dc_nota_de_crédito_de_e_factura_venta_por_cuenta_ajena_contingencia","242","Contingency e-Invoice Sale By Third Party Credit Note","credit_note","e-NC-CAC","base.uy","Nota de Crédito de e-Factura Venta por Cuenta Ajena Contingencia"
|
||||
"dc_nota_de_débito_de_e_factura_venta_por_cuenta_ajena_contingencia","243","Contingency e-Invoice Sale By Third Party Debit Note","debit_note","e-ND-CAC","base.uy","Nota de Débito de e-Factura Venta por Cuenta Ajena Contingencia"
|
||||
"dc_e_boleta_contingencia","251","Contingency e-Boleta","invoice","e-BO-C","base.uy","e-Boleta Contingencia"
|
||||
"dc_nota_de_credito_e_boleta_contingencia","252","Contingency e-Boleta Credit Note","credit_note","e-BO-NC-C","base.uy","Nota de Crédito e-Boleta Contingencia"
|
||||
"dc_nota_de_debito_e_boleta_contingencia","253","Contingency e-Boleta Debit Note","debit_note","e-BO-ND-C","base.uy","Nota de Dédito e-Boleta Contingencia"
|
||||
"dc_e_remito_contingencia","281","Contingency e-Delivery Guide","","e-REM-C","base.uy","e-Remito Contingencia"
|
||||
"dc_e_resguardo_contingencia","282","Contingency e-Resguardo","","e-RES-C","base.uy","e-Resguardo Contingencia"
|
||||
|
|
|
@ -0,0 +1,76 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<odoo>
|
||||
|
||||
<record model="l10n_latam.identification.type" id="it_nie">
|
||||
<field name="name">NIE</field>
|
||||
<field name="description">Foreigner Identity Number</field>
|
||||
<field name='country_id' ref='base.uy'/>
|
||||
<field name="sequence">10</field>
|
||||
<field name="l10n_uy_dgi_code">1</field>
|
||||
</record>
|
||||
|
||||
<record model="l10n_latam.identification.type" id="it_rut">
|
||||
<field name="name">RUT / RUC</field>
|
||||
<field name="name@es">Registro Único Tributario / Registro Único de Contribuyente</field>
|
||||
<field name="description">Unique Tax Registry / Unique Taxpayer Registry</field>
|
||||
<field name='country_id' ref='base.uy'/>
|
||||
<field name='is_vat' eval='True'/>
|
||||
<field name="sequence">30</field>
|
||||
<field name="l10n_uy_dgi_code">2</field>
|
||||
</record>
|
||||
|
||||
<record model="l10n_latam.identification.type" id="it_ci">
|
||||
<field name="name">CI</field>
|
||||
<field name="name@es">Cédula de Identidad</field>
|
||||
<field name="description">Identification Card</field>
|
||||
<field name='country_id' ref='base.uy'/>
|
||||
<field name="sequence">40</field>
|
||||
<field name="l10n_uy_dgi_code">3</field>
|
||||
</record>
|
||||
|
||||
<record model="l10n_latam.identification.type" id="it_other">
|
||||
<field name="name">OTR</field>
|
||||
<field name="name@es">Otros</field>
|
||||
<field name="description">Others</field>
|
||||
<field name='country_id' ref='base.uy'/>
|
||||
<field name="sequence">50</field>
|
||||
<field name="l10n_uy_dgi_code">4</field>
|
||||
</record>
|
||||
|
||||
<record model="l10n_latam.identification.type" id="it_pass">
|
||||
<field name="name">PAS</field>
|
||||
<field name="name@es">Pasaporte (todos los paises)</field>
|
||||
<field name="description">Passport (all countries)</field>
|
||||
<field name='country_id' ref='base.uy'/>
|
||||
<field name="sequence">60</field>
|
||||
<field name="l10n_uy_dgi_code">5</field>
|
||||
</record>
|
||||
|
||||
<record model="l10n_latam.identification.type" id="it_dni">
|
||||
<field name="name">DNI</field>
|
||||
<field name="name@es">Documento Nacional de identidad de Argentina, Brasil, Chile o Paraguay</field>
|
||||
<field name="description">National identity document of Argentina, Brazil, Chile or Paraguay</field>
|
||||
<field name='country_id' ref='base.uy'/>
|
||||
<field name="sequence">70</field>
|
||||
<field name="l10n_uy_dgi_code">6</field>
|
||||
</record>
|
||||
|
||||
<record model="l10n_latam.identification.type" id="it_nife">
|
||||
<field name="name">NIFE</field>
|
||||
<field name="description">Foreign tax identification number</field>
|
||||
<field name='country_id' ref='base.uy'/>
|
||||
<field name="sequence">80</field>
|
||||
<field name="l10n_uy_dgi_code">7</field>
|
||||
</record>
|
||||
|
||||
<record model="l10n_latam.identification.type" id="l10n_latam_base.it_vat">
|
||||
<field name="l10n_uy_dgi_code">7</field>
|
||||
</record>
|
||||
<record model="l10n_latam.identification.type" id="l10n_latam_base.it_pass">
|
||||
<field name="l10n_uy_dgi_code">5</field>
|
||||
</record>
|
||||
<record model="l10n_latam.identification.type" id="l10n_latam_base.it_fid">
|
||||
<field name="l10n_uy_dgi_code">4</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="uy_chart_template" model="account.chart.template">
|
||||
<field name="name">Plan de Cuentas Uruguay - Template</field>
|
||||
<field name="code_digits">6</field>
|
||||
<field name="bank_account_code_prefix">1111</field>
|
||||
<field name="cash_account_code_prefix">1112</field>
|
||||
<field name="transfer_account_code_prefix">11120</field>
|
||||
<field name="currency_id" ref="base.UYU"/>
|
||||
<field name="country_id" ref="base.uy"/>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="uy_chart_template" model="account.chart.template">
|
||||
<field name="property_account_receivable_id" ref="uy_code_11300"/>
|
||||
<field name="property_account_payable_id" ref="uy_code_21100"/>
|
||||
<field name="property_account_income_categ_id" ref="uy_code_4100"/>
|
||||
<field name="property_account_expense_categ_id" ref="uy_code_5100"/>
|
||||
<field name="income_currency_exchange_account_id" ref="uy_code_4302"/>
|
||||
<field name="expense_currency_exchange_account_id" ref="uy_code_5302"/>
|
||||
<field name="default_pos_receivable_account_id" ref="uy_code_11307"/>
|
||||
<field name="account_journal_early_pay_discount_loss_account_id" ref="uy_code_5303"/>
|
||||
<field name="account_journal_early_pay_discount_gain_account_id" ref="uy_code_4303"/>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<odoo noupdate="1">
|
||||
|
||||
<record id="base.UYI" model="res.currency">
|
||||
<field name="active" eval="True"/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<odoo>
|
||||
|
||||
<!-- DGI Is the Fiscal office on UY: Direccion General Impositiva -->
|
||||
<record id="partner_dgi" model="res.partner">
|
||||
<field name="name">DGI</field>
|
||||
<field name="is_company" eval="True"/>
|
||||
<field name='l10n_latam_identification_type_id' ref='it_rut'/>
|
||||
<field name='website'>https://www.dgi.gub.uy</field>
|
||||
<field name='country_id' ref='base.uy'/>
|
||||
</record>
|
||||
|
||||
<record model='res.partner' id='partner_cfu'>
|
||||
<field name='name'>Consumidor Final Anónimo</field>
|
||||
<field name='l10n_latam_identification_type_id' ref='it_dni'/>
|
||||
<field name='country_id' ref='base.uy'/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,167 @@
|
|||
"id","name","code","description","account_type","tax_ids","reconcile","name@es","description@es","asset_model_ids"
|
||||
"uy_code_11300","Sale Debtors","11300","","asset_receivable","","True","Deudores por Ventas","",""
|
||||
"uy_code_11303","Notes Receivable MN","11303","","asset_current","","False","Documentos a Cobrar MN","",""
|
||||
"uy_code_11304","Notes Receivable ME","11304","","asset_current","","False","Documentos a Cobrar ME","",""
|
||||
"uy_code_11305","Checks in portfolio MN","11305","","asset_current","","False","Cheques en Cartera MN","",""
|
||||
"uy_code_11306","Checks in ME Portfolio","11306","","asset_current","","False","Cheques en Cartera ME","",""
|
||||
"uy_code_11307","Sundry Debtors (PoS)","11307","","asset_receivable","","True","Deudores Varios (PoS)","",""
|
||||
"uy_code_11311","Allowance for Uncollectible Accounts Receivable","11311","","asset_current","","False","Prevision para Deudores Incobrables","",""
|
||||
"uy_code_11312","Provisions for expenses and bonuses","11312","","asset_current","","False","Prevision p/dtos y Bonificaciones","",""
|
||||
"uy_code_11313","Interest received in advance","11313","","asset_current","","False","Intereses percibidos por adelantado","",""
|
||||
"uy_code_11401","Advances to Suppliers","11401","","liability_current","","False","Anticipos a Proveedores","",""
|
||||
"uy_code_11404","Security Deposits","11404","","asset_current","","False","Depositos en Garantia","",""
|
||||
"uy_code_11405","Advance payments","11405","","liability_current","","False","Pagos adelantados","",""
|
||||
"uy_code_11406","Debit balances of Directors' accounts receivable","11406","","asset_current","","False","Saldos Deudor de ctas de Directores","",""
|
||||
"uy_code_11501","VAT Minimum Purchases","11501","","asset_current","","False","Iva Compras Mínima","",""
|
||||
"uy_code_11502","VAT Basic Purchases","11502","","asset_current","","False","Iva Compras Básica","",""
|
||||
"uy_code_11503","VAT Exempt Purchases","11503","","asset_current","","False","Iva Compras Exento","",""
|
||||
"uy_code_11504","VAT Reduced Purchases","11504","","asset_current","","False","Iva Compras Tasas Reducidas","",""
|
||||
"uy_code_11505","VAT to be credited on purchases","11505","","asset_receivable","","True","IVA acreditable en compras","",""
|
||||
"uy_code_11506","VAT Withholdings","11506","","asset_current","","False","Iva Retenciones","",""
|
||||
"uy_code_11507","Import VAT","11507","","asset_current","","False","Iva Importación","",""
|
||||
"uy_code_11508","Advance Import Tax","11508","","asset_current","","False","Iva Anticipo Importación","",""
|
||||
"uy_code_11601","Tax on Income from Economic Activities - Advance","11601","","asset_current","","False","Irae Anticipo","",""
|
||||
"uy_code_11602","Equity Advances","11602","","asset_current","","False","Patrimonio Anticipo","",""
|
||||
"uy_code_11603","Icosa Advance","11603","","asset_current","","False","Icosa Anticipo","",""
|
||||
"uy_code_11621","Various","11621","","asset_current","","False","Diversos","",""
|
||||
"uy_code_11632","Income received in advance","4110","","income","","False","Ingresos percibidos por adelantado","",""
|
||||
"uy_code_21321","Deferred Revenue","21321","","liability_current","","False","Ingreso diferidos","",""
|
||||
"uy_code_11701","Resale Merchandise","11701","","asset_current","","False","Mercaderia de Reventa","",""
|
||||
"uy_code_11702","Finished Products","11702","","asset_current","","False","Productos Terminados","",""
|
||||
"uy_code_11703","Products in Process","11703","","asset_current","","False","Productos en Proceso","",""
|
||||
"uy_code_11704","Raw Materials","11704","","asset_current","","False","Materias Primas","",""
|
||||
"uy_code_11705","Materials and Supplies","11705","","asset_current","","False","Materiales y Suministros","",""
|
||||
"uy_code_11706","Imports in process","11706","","asset_current","","False","Importaciones en tramite","",""
|
||||
"uy_code_11711","Allowance for impairment","11711","","asset_current","","False","Previsión para desvalorizaciones","",""
|
||||
"uy_code_12101","Long-term loans","12101","","asset_current","","False","Créditos a Largo Plazo","",""
|
||||
"uy_code_12201","Non-current assets","12201","","asset_fixed","","False","Activos fijos","",""
|
||||
"uy_code_12302","Real Estate","12302","","asset_current","","False","Inmuebles","",""
|
||||
"uy_code_12303","Original and revaluated values as per appendix","12303","","asset_current","","False","Valores orig. y revaluados s/anexo","",""
|
||||
"uy_code_12304","Less: Amort. Accum.","12304","","asset_current","","False","Menos: Amort. Acum.","",""
|
||||
"uy_code_12305","Securities and Shares","12305","","asset_current","","False","Titulos y Acciones","",""
|
||||
"uy_code_12311","Allowance for Impairment","12311","","expense","","False","Prevision para Desvalorizaciones","",""
|
||||
"uy_code_12312","Interest received in advance","12312","","income","","False","Intereses percibidos por adelantado","",""
|
||||
"uy_code_12401","Furniture & material","12401","Large expenses related to workplaces","asset_fixed","vat4","False","Mobiliario y enseres","Gastos importantes relacionados con los espacios de trabajo","asset_furniture_material"
|
||||
"uy_code_12402","Construction","12402","Construction of buildings and costs associated to buildings","asset_fixed","vat4","False","Bienes raíces","Construcción de edificios y costos asociados","asset_construction"
|
||||
"uy_code_12403","Machines & tools","12403","Machinery and tools directly related to your business","asset_fixed","vat4","False","Maquinaria y herramientas","Maquinaria y herramientas directamente relacionadas con la actividad del negocio","asset_machines_tools"
|
||||
"uy_code_12404","Vehicle","12404","Purchase of a car, including second hand or after-lease contract","asset_fixed","vat4","False","Vehículo","Compra de vehículos, incluidos usados o de contratos post–leasing","asset_vehicle"
|
||||
"uy_code_12405","Technology","12405","Technological products or services bought for your business","asset_fixed","vat4","False","Tecnología","Productos o servicios tecnológicos adquiridos para el negocio","asset_technology"
|
||||
"uy_code_12406","Land","12406","Purchases of lands without buildings","asset_fixed","vat4","False","Terrenos","Adquisición de terrenos sin construcciones",""
|
||||
"uy_code_12407","Installations","12407","Purchases of installations related to buildings, like solar panels or heater","asset_fixed","vat4","False","Instalaciones","Adquisición de instalaciones relacionadas con edificios, como paneles solares o calefactores","asset_installations"
|
||||
"uy_code_12408","Other property","12408","Other type of property, like plants, machinery or various equipment","asset_fixed","vat4","False","Otros bienes","Otros tipos de bienes, como plantas, maquinaria o equipamiento diverso","asset_other_property"
|
||||
"uy_code_12409","Vehicle accessories","12409","All accessories purchases related to your professional vehicle","asset_fixed","vat4","False","Accesorios de vehículo","Compra de accesorios relacionados con el vehículo profesional","asset_vehicle_accessories"
|
||||
"uy_code_12420","Furniture and Fixtures Amort.","12420","","asset_current","","False","Amort.Ac.Mueb.y Utiles","",""
|
||||
"uy_code_12421","Real Estate Amort.","12421","","asset_current","","False","Amort.Ac.Inmuebles","",""
|
||||
"uy_code_12422","Machinery and Equipment Amort.","12422","","asset_current","","False","Amort.Ac.Maq.y Herram.","",""
|
||||
"uy_code_12423","Vehicle Amort. Shrinkage","12423","","asset_current","","False","Amort.Ac.Vehiculos","",""
|
||||
"uy_code_12501","Patents, trademarks and licenses","12501","","asset_fixed","","False","Patentes, marcas y licencias","",""
|
||||
"uy_code_12502","Research expenses","12502","","asset_fixed","","False","Gastos de investigacion","",""
|
||||
"uy_code_12520","Accumulated Depreciation","12520","","asset_current","","False","Amortizaciones Acumuladas","",""
|
||||
"uy_code_11407","Deferred Expense","11407","","asset_current","","False","Gastos diferidos","",""
|
||||
"uy_code_21100","Sundry creditors (def)","21100","","liability_payable","","True","Acreedores Varios (def)","",""
|
||||
"uy_code_21101","Suppliers by Imports","21101","","liability_payable","","True","Proveedores por Importaciones","",""
|
||||
"uy_code_21102","Debts. Import Exchange Contracts","21102","","liability_current","","False","Deuds. Contratos de Cambio Import.","",""
|
||||
"uy_code_21103","Plaza Suppliers","21103","","liability_payable","","True","Proveedores de Plaza","",""
|
||||
"uy_code_21104","Notes Payable ds/Commercial","21104","","liability_payable","","True","Documentos a Pagar ds/Comerciales","",""
|
||||
"uy_code_21120","Interest due ds/Commercial","21120","","liability_current","","False","Intereses a vencer ds/Comerciales","",""
|
||||
"uy_code_21201","Bank Loans","21201","","liability_current","","False","Prestamos Bancarios","",""
|
||||
"uy_code_21202","Obligations","21202","","liability_current","","False","Obligaciones","",""
|
||||
"uy_code_21203","Notes payable MN payable ds/Financials","21203","","liability_payable","","True","Documentos a pagar MN a pagar ds/Financieras","",""
|
||||
"uy_code_21204","Notes payable EM payable ds/Financials","21204","","liability_payable","","True","Documentos a pagar ME a pagar ds/Financieras","",""
|
||||
"uy_code_21220","Ints. due ds/Financials","53011","","expense","","False","Ints. a vencer ds/Financieras","",""
|
||||
"uy_code_21301","Advance Collections","21301","","liability_current","","False","Cobros Anticipados","",""
|
||||
"uy_code_21302","Dividends Payable","21302","","liability_payable","","True","Dividendos a Pagar","",""
|
||||
"uy_code_21305","Wages and salaries payable","21305","","liability_payable","","True","Sueldos y Jornales a pagar","",""
|
||||
"uy_code_21306","Social Creditors","21306","","liability_current","","False","Acreedores por Cargas Sociales","",""
|
||||
"uy_code_21307","Tax creditors","21307","","liability_current","","False","Acreedores fiscales","",""
|
||||
"uy_code_21308","Credit balances Payable to Directors' Accounts","21308","","liability_current","","False","Saldos Acreedores Cuentas Directores","",""
|
||||
"uy_code_21320","Other debts","21320","","liability_current","","False","Otras deudas","",""
|
||||
"uy_code_21401","Minimum Sales Tax","21401","","liability_current","","False","Iva Ventas Mínima","",""
|
||||
"uy_code_21402","Basic Sales Tax","21402","","liability_current","","False","Iva Ventas Básica","",""
|
||||
"uy_code_21403","Tax to be Paid","21403","","liability_payable","","True","Iva a Pagar","",""
|
||||
"uy_code_21404","VAT Withholding","21404","","liability_current","","False","Iva Retenido","",""
|
||||
"uy_code_21405","Exempt Sales Tax","21405","","liability_current","","False","Iva Ventas Exento","",""
|
||||
"uy_code_21406","Reduced Sales Tax","21406","","liability_current","","False","Iva Ventas Reducidas","",""
|
||||
"uy_code_21411","Withholding tax","21411","","liability_current","","False","Irpf Retenido","",""
|
||||
"uy_code_21421","Social Security Bank of Uruguay","21421","","liability_current","","False","Bps","",""
|
||||
"uy_code_21501","Tax on Income from Economic Activities - of the Exercise","21501","","liability_current","","False","Irae del Ejercicio","",""
|
||||
"uy_code_21502","Tax on Income from Economic Activities - to Pay","21502","","liability_payable","","True","Irae a Pagar","",""
|
||||
"uy_code_21503","Tax on Income from Economic Activities - Advance Payable","21503","","liability_payable","","True","Irae Anticipo a Pagar","",""
|
||||
"uy_code_21601","Net Assets for the Year","21601","","liability_current","","False","Patrimonio del Ejercicio","",""
|
||||
"uy_code_21602","Assets Payable","21602","","liability_payable","","True","Patrimonio a Pagar","",""
|
||||
"uy_code_21603","Equity Advances Payable","21603","","liability_payable","","True","Patrimonio Anticipo a Pagar","",""
|
||||
"uy_code_21701","Exercise Icosa","21701","","liability_current","","False","Icosa del Ejercicio","",""
|
||||
"uy_code_21702","Icosa to be Paid","21702","","liability_payable","","True","Icosa a Pagar","",""
|
||||
"uy_code_21703","Icosa Advance Payable","21703","","liability_payable","","True","Icosa Anticipo a Pagar","",""
|
||||
"uy_code_21801","Third-party liability","21801","","liability_current","","False","Responsabilidad frente a terceros","",""
|
||||
"uy_code_22101","Commercial Debts","22101","","liability_current","","False","Deudas Comerciales","",""
|
||||
"uy_code_22201","Financial Debts","22201","","liability_payable","","True","Deudas Financieras","",""
|
||||
"uy_code_22301","Sundry Debts","22301","","liability_current","","False","Deudas Diversas","",""
|
||||
"uy_code_22401","Non-Current Provisions","22401","","liability_current","","False","Previsiones No Corrientes","",""
|
||||
"uy_code_3111","Integrated Capital","3111","","equity","","False","Capital Integrado","",""
|
||||
"uy_code_3221","Tax revaluations","3221","","equity","","False","Revaluaciones fiscales","",""
|
||||
"uy_code_3222","Voluntary revaluations","3222","","equity","","False","Revaluaciones voluntarias","",""
|
||||
"uy_code_3311","Legal Reserves","3311","","equity","","False","Reservas Legales","",""
|
||||
"uy_code_3312","Voluntary Reserves","3312","","equity","","False","Reservas Voluntarias","",""
|
||||
"uy_code_3313","Profit and loss","3313","","equity","","False","Pérdidas y Ganancias","",""
|
||||
"uy_code_33201","Results for the year","33201","","equity","","False","Resultados del ejercicio","",""
|
||||
"uy_code_33220","Interim dividends","33220","","equity","","False","Dividendos provisorios","",""
|
||||
"uy_code_4101","Exempt Sales","4100","","income","","False","Ventas Exentas","",""
|
||||
"uy_code_4102","Sales Basic Rate","4101","","income","","False","Ventas Tasa Básica","",""
|
||||
"uy_code_4103","Sales Minimum rate","4102","","income","","False","Ventas Tasa Mínima","",""
|
||||
"uy_code_4104","Export Sales","4103","","income","","False","Ventas por Exportaciones","",""
|
||||
"uy_code_4201","Extraordinary sales","4201","","income","","False","Ventas extraordinarias","",""
|
||||
"uy_code_4301","Interest earned","4301","","income","","False","Intereses ganados","",""
|
||||
"uy_code_4302","Exchange Differences Earned","4302","","income","","False","Diferencias de Cambio ganadas","",""
|
||||
"uy_code_4303","Discounts Obtained","4303","","income","","False","Descuentos Obtenidos","",""
|
||||
"uy_code_5100","Miscellaneous (def)","5100","","expense","","False","Gastos Varios (def)","",""
|
||||
"uy_code_5101","Employees compensation","5101","Compensation costs for employees and manual workers employed by the company","expense","vat4","False","Sueldos y salarios","Costos de compensación para empleados y trabajadores manuales",""
|
||||
"uy_code_5102","Other personel costs","5102","Company's personel costs excluding compensations, contributions and vouchers","expense","vat4","False","Cargas sociales","Costos del personal excluyendo compensaciones, contribuciones y vales",""
|
||||
"uy_code_5103","Professional insurance","5103","All fees related to insurance taken in the context of your business","expense","vat4","False","Seguro","Gastos relacionados con seguros tomados en el contexto del negocio",""
|
||||
"uy_code_51031","Fire insurance","51031","Fees related to insurance to protect your property (building and content) against fire or other natural catastrophies","expense","vat4","False","Seguro contra incendios","Pagos de seguros que protegen los bienes contra incendios u otras catástrofes naturales",""
|
||||
"uy_code_51032","Legal protection insurance","51032","Insurance against legal costs incurred in the context of your activity","expense","vat4","False","Seguro de protección legal","Seguro contra costos legales incurridos en la actividad",""
|
||||
"uy_code_51033","Professional Liability Insurance","51033","Insurance for damage caused to third parties","expense","vat4","False","Seguro de responsabilidad profesional","Seguro por daños causados a terceros",""
|
||||
"uy_code_5104","Office supplies","5104","Various supplies bought for your workplace or office, like pencils, paper etc","expense","vat4","False","Artículos de papelería","Artículos varios adquiridos para la oficina, como lápices, papel, etc.",""
|
||||
"uy_code_51041","Consumables","51041","Consumables bought and used in the context of your activity","expense","vat4","False","Consumibles","Consumibles adquiridos y utilizados en el contexto de la actividad",""
|
||||
"uy_code_5105","Fuel","5105","All fuel expenses for a car","expense","vat4","False","Combustible","Gastos de combustible para vehículos",""
|
||||
"uy_code_5106","Freight","5106","","expense","","False","Fletes","",""
|
||||
"uy_code_5107","Vehicle maintenance","5107","Expenses made for the repair and maintenance of a vehicle","expense","vat4","False","Mantenimiento de vehículos","Gastos destinados a la reparación y mantenimiento de vehículos",""
|
||||
"uy_code_51071","Office Maintenance services","51071","Services related to the maintenance of your worplace, like repair or cleaning fees","expense","vat4","False","Servicios de mantenimiento de oficina","Servicios relacionados con el mantenimiento del lugar de trabajo, como reparaciones o limpieza",""
|
||||
"uy_code_5108","Studies & works","5108","Compensation and fees paid to other parties","expense","vat4","False","Honorarios profesionales","Compensaciones y honorarios pagados a terceros",""
|
||||
"uy_code_51081","Software","51081","Licenses or computer services (like repairs or upgrades)","expense","vat4","False","Software","Licencias o servicios informáticos (como reparaciones o actualizaciones)",""
|
||||
"uy_code_51082","Administration fees","51082","Services incurred for the administration of your business (excluding supplies)","expense","vat4","False","Gastos administrativos","Servicios incurridos para la administración del negocio (excluyendo suministros)",""
|
||||
"uy_code_51083","Training and documentation","51083","Training fees not including food and drinks","expense","vat4","False","Capacitación y documentación","Gastos de capacitación sin incluir alimentos o bebidas",""
|
||||
"uy_code_51084","Accounting","51084","Bills from your accountant or accounting firm","expense","vat4","False","Contabilidad","Facturación proveniente de tu contador o estudio contable",""
|
||||
"uy_code_51085","Legal expenses","51085","Bills from lawyers, fees paid to the justice system","expense","vat4","False","Gastos legales","Pagos a abogados o tarifas judiciales",""
|
||||
"uy_code_5109","General subcontracting","5109","Compensation and fees with other partners that act as subcontractors or consultants for your activity","expense","vat4","False","Servicios contratados","Compensaciones y honorarios con terceros que actúan como subcontratistas o consultores",""
|
||||
"uy_code_51091","Office services","51091","All expenses made for your office or workplace that are not material goods","expense","vat4","False","Servicios de oficina","Gastos realizados para la oficina o lugar de trabajo que no corresponden a bienes materiales",""
|
||||
"uy_code_5110","Water, electricity, gas","5110","Bills from your water and energy suppliers","expense","vat4","False","Servicios de agua y energía","Facturas de proveedores de agua y energía",""
|
||||
"uy_code_5111","Phone & internet","5111","Internet or phone bills incurred ","expense","vat4","False","Servicios de comunicaciones y telefonía","Facturas de internet y telefonía incurridas",""
|
||||
"uy_code_5112","Office Rent","5112","Rental fees related to your workplace","expense","vat4","False","Alquileres","Cuotas de alquiler relacionadas con el lugar de trabajo",""
|
||||
"uy_code_51121","Vehicle rent","51121","Rental of cars, including shared services, but excluding leasing","expense","vat4","False","Alquiler de vehículos","Alquiler de autos, incluidos servicios compartidos, excluyendo leasing",""
|
||||
"uy_code_5114","Advertising","5114","Publicity fees for your activity, including promotional material","expense","vat4","False","Publicidad","Gastos de publicidad para la actividad, incluido material promocional",""
|
||||
"uy_code_5115","Business gift","5115","Business gifts to clients over 50€","expense","vat4","False","Representación","Regalos empresariales a clientes mayores a 50€",""
|
||||
"uy_code_51151","Bar & Restaurant","51151","Expenses incurred when eating or drinking at bars or restaurants","expense","vat4","False","Bar y restaurante","Gastos en comidas o bebidas en bares o restaurantes",""
|
||||
"uy_code_51152","Food: Reception & delivery","51152","Food or drinks incurred outside of bars or restaurants, like receptions, canteen and food delivery, etc","expense","vat4","False","Comida: recepción y delivery","Gastos de comida o bebidas fuera de restaurantes, como recepciones, comedores o entregas",""
|
||||
"uy_code_5203","Social Security","5203","All fees related to pension plans and social security contributions","expense","vat4","False","Contribuciones","Gastos relacionados con planes de pensiones y aportes de seguridad social",""
|
||||
"uy_code_52031","Membership fees","52031","Subscriptions to clubs and associations related to your business","expense","vat4","False","Cuotas de membresía","Suscripciones a clubes o asociaciones relacionadas con la actividad del negocio",""
|
||||
"uy_code_5204","Withholdings","5204","","expense","","False","Retenciones","",""
|
||||
"uy_code_5205","Others","5205","","expense","","False","Otros","",""
|
||||
"uy_code_5206","Property tax","5206","Local taxes that have to paid due to the ownership of property","expense","vat4","False","Impuesto a la propiedad","Impuestos locales que deben pagarse por la propiedad de bienes",""
|
||||
"uy_code_5207","Import fees","5207","Customs fees incurred while importing goods from outside of the European Union","expense","vat4","False","Aranceles de importación","Gastos aduaneros incurridos por importar bienes desde fuera de la Unión Europea",""
|
||||
"uy_code_5301","Bank fees","5301","Nasty charges and interests from your bank","expense","vat4","False","Intereses y cargos bancarios","Cargos e intereses bancarios aplicados por el banco",""
|
||||
"uy_code_5302","Exchange Differences lost","5302","","expense","","False","Diferencias de Cambio perdidas","",""
|
||||
"uy_code_5303","Discounts Granted","5303","","expense","","False","Descuentos Concedidos","",""
|
||||
"uy_code_5304","Tax Penalties and Surcharges","5304","","expense","","False","Multas y Recargos Fiscales","",""
|
||||
"uy_code_5401","Goods for resale","5401","Goods you buy to resale later, as part of your activity","expense","vat4","False","Costo de ventas","Bienes adquiridos para ser revendidos como parte de la actividad",""
|
||||
"uy_code_54011","Raw materials","54011","All goods purchased as raw materials used by your activity","expense","vat4","False","Materias Primas","Bienes adquiridos como materias primas usadas en la actividad",""
|
||||
"uy_code_5402","Cost of sales of property, plant and equipment","5402","","expense","","False","Costo de Venta de Bienes de Uso","",""
|
||||
"uy_code_5500","Amortizations","5500","","expense","","False","Amortizaciones","",""
|
||||
"uy_code_5511","Flights","5511","All expenses related to travel by plane","expense","vat4","False","Vuelos","Gastos relacionados con viajes en avión",""
|
||||
"uy_code_5512","Hotels","5512","Hotel or B&B bills incurred during business trips","expense","vat4","False","Hoteles","Facturas de hotel o alojamiento durante viajes de trabajo",""
|
||||
"uy_code_5513","Public Transportation","5513","Travel expenses done using public transportation (metro, bus, tramways, ...)","expense","vat4","False","Transporte público","Gastos de transporte público (metro, bus, tranvía, etc.)",""
|
||||
"uy_code_5514","Other travel costs","5514","Expenses incurred during business trips (Excluding Flights, Hotels, Daily expenses, public transportation)","expense","vat4","False","Otros gastos de viaje","Gastos incurridos durante viajes de trabajo (excluye vuelos, hoteles, gastos diarios y transporte público)",""
|
||||
"uy_code_61","Shares to be issued","61","","equity","","False","Acciones a Emitir","",""
|
||||
"uy_code_62","Stock subscribers","62","","equity","","False","Suscriptores de acciones","",""
|
||||
"uy_code_71","Authorized Capital to be Subscribed","71","","equity","","False","Capital Autorizado a Suscribir","",""
|
||||
"uy_code_72","Subscribed capital","72","","equity","","False","Capital suscripto","",""
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
"id","account_asset_id","account_depreciation_id","account_depreciation_expense_id","name","method_number","method_period","name@es"
|
||||
"asset_technology","uy_code_12405","uy_code_12422","uy_code_5500","Technology","3","12","Tecnología"
|
||||
"asset_construction","uy_code_12402","uy_code_12421","uy_code_5500","Construction","30","12","Bienes raíces"
|
||||
"asset_installations","uy_code_12407","uy_code_12421","uy_code_5500","Installations","10","12","Instalaciones"
|
||||
"asset_machines_tools","uy_code_12403","uy_code_12422","uy_code_5500","Machines & tools","5","12","Maquinaria y herramientas"
|
||||
"asset_other_property","uy_code_12408","uy_code_12520","uy_code_5500","Other property","5","12","Otros bienes"
|
||||
"asset_furniture_material","uy_code_12401","uy_code_12420","uy_code_5500","Furniture & material","5","12","Mobiliario y enseres"
|
||||
"asset_vehicle","uy_code_12404","uy_code_12423","uy_code_5500","Vehicle","5","12","Vehículo"
|
||||
"asset_vehicle_accessories","uy_code_12409","uy_code_12423","uy_code_5500","Vehicle accessories","3","12","Accesorios de vehículo"
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
"id","name","auto_apply","sequence","country_id"
|
||||
"account_fiscal_position_local_uruguay","Local – Uruguay","1","10","base.uy"
|
||||
"account_fiscal_position_exportation","Exportación","1","20",""
|
||||
|
|
|
@ -0,0 +1,49 @@
|
|||
"id","name","description","invoice_label","l10n_uy_tax_category","amount","amount_type","type_tax_use","tax_group_id","repartition_line_ids/repartition_type","repartition_line_ids/document_type","repartition_line_ids/tag_ids","repartition_line_ids/account_id","price_include_override","description@es","invoice_label@es","fiscal_position_ids","original_tax_ids"
|
||||
"vat1","22%","VAT Sales (22%)","VAT Sales (22%)","vat","22","percent","sale","tax_group_iva_22","base","invoice","Base Sales 22%","","","IVA Ventas (22%)","IVA Ventas (22%)","account_fiscal_position_local_uruguay",""
|
||||
"","","","","","","","","","tax","invoice","Sales VAT 22%","uy_code_21402","","","","",""
|
||||
"","","","","","","","","","base","refund","Taxable Sales Base","","","","","",""
|
||||
"","","","","","","","","","tax","refund","VAT Sales - received","uy_code_21402","","","","",""
|
||||
"vat2","10%","VAT Sales (10%)","VAT Sales (10%)","vat","10","percent","sale","tax_group_iva_10","base","invoice","Base Sales 10%","","","IVA Ventas (10%)","IVA Ventas (10%)","account_fiscal_position_local_uruguay",""
|
||||
"","","","","","","","","","tax","invoice","Sales VAT 10%","uy_code_21401","","","","",""
|
||||
"","","","","","","","","","base","refund","Taxable Sales Base","","","","","",""
|
||||
"","","","","","","","","","tax","refund","VAT Sales - received","uy_code_21401","","","","",""
|
||||
"vat3","0% EXEMPT","VAT Exempt Sales","VAT Exempt Sales","vat","0","percent","sale","tax_group_exenton","base","invoice","Base Sales 0%","","","Ventas Exentos IVA","Ventas Exentos IVA","account_fiscal_position_exportation","vat2,vat1"
|
||||
"","","","","","","","","","tax","invoice","","uy_code_21405","","","","",""
|
||||
"","","","","","","","","","base","refund","Taxable Sales Base","","","","","",""
|
||||
"","","","","","","","","","tax","refund","","uy_code_21405","","","","",""
|
||||
"vat4","22%","VAT Purchases (22%)","VAT Purchases (22%)","vat","22","percent","purchase","tax_group_iva_22","base","invoice","Base Purchases 22%","","","IVA Compras (22%)","IVA Compras (22%)","account_fiscal_position_local_uruguay",""
|
||||
"","","","","","","","","","tax","invoice","VAT Purchases 22%","uy_code_11502","","","","",""
|
||||
"","","","","","","","","","base","refund","Tax Base Purchases","","","","","",""
|
||||
"","","","","","","","","","tax","refund","VAT Purchases - paid","uy_code_11502","","","","",""
|
||||
"vat5","10%","VAT Purchases (10%)","VAT Purchases (10%)","vat","10","percent","purchase","tax_group_iva_10","base","invoice","Base Purchases 10%","","","IVA Compras (10%)","IVA Compras (10%)","account_fiscal_position_local_uruguay",""
|
||||
"","","","","","","","","","tax","invoice","VAT Purchases 10%","uy_code_11501","","","","",""
|
||||
"","","","","","","","","","base","refund","Tax Base Purchases","","","","","",""
|
||||
"","","","","","","","","","tax","refund","VAT Purchases - paid","uy_code_11501","","","","",""
|
||||
"vat6","0% EXEMPT","Purchases Exempt from VAT","Purchases Exempt from VAT","vat","0","percent","purchase","tax_group_exenton","base","invoice","Base Purchases 0%","","","Compras Exento IVA","Compras Exentos IVA","account_fiscal_position_exportation","vat5,vat4"
|
||||
"","","","","","","","","","tax","invoice","","uy_code_11503","","","","",""
|
||||
"","","","","","","","","","base","refund","Tax Base Purchases","","","","","",""
|
||||
"","","","","","","","","","tax","refund","","uy_code_11503","","","","",""
|
||||
"vat7","22% included","VAT Included Sales (22%)","VAT Included Sales (22%)","vat","22","percent","sale","tax_group_iva_22","base","invoice","Base Sales 22%","","tax_included","IVA Ventas Incluído (22%)","IVA Ventas Incluído (22%)","account_fiscal_position_local_uruguay",""
|
||||
"","","","","","","","","","tax","invoice","Sales VAT 22%","uy_code_21402","","","","",""
|
||||
"","","","","","","","","","base","refund","Taxable Sales Base","","","","","",""
|
||||
"","","","","","","","","","tax","refund","VAT Sales - received","uy_code_21402","","","","",""
|
||||
"vat8","10% included","VAT Included Sales (10%)","VAT Included Sales (10%)","vat","10","percent","sale","tax_group_iva_10","base","invoice","Base Sales 10%","","tax_included","IVA Ventas Incluído (10%)","IVA Ventas Incluído (10%)","account_fiscal_position_local_uruguay",""
|
||||
"","","","","","","","","","tax","invoice","Sales VAT 10%","uy_code_21401","","","","",""
|
||||
"","","","","","","","","","base","refund","Taxable Sales Base","","","","","",""
|
||||
"","","","","","","","","","tax","refund","VAT Sales - received","uy_code_21401","","","","",""
|
||||
"vat9","22% included","VAT Included Purchases (22%)","VAT Included Purchases (22%)","vat","22","percent","purchase","tax_group_iva_22","base","invoice","Base Purchases 22%","","tax_included","IVA Compras Incluído (22%)","IVA Compras Incluído (22%)","account_fiscal_position_local_uruguay",""
|
||||
"","","","","","","","","","tax","invoice","VAT Purchases 22%","uy_code_11502","","","","",""
|
||||
"","","","","","","","","","base","refund","Tax Base Purchases","","","","","",""
|
||||
"","","","","","","","","","tax","refund","VAT Purchases - paid","uy_code_11502","","","","",""
|
||||
"vat10","10% included","VAT Included Purchases (10%)","VAT Included Purchases (10%)","vat","10","percent","purchase","tax_group_iva_10","base","invoice","Base Purchases 10%","","tax_included","IVA Compras Incluído (10%)","IVA Compras Incluído (10%)","account_fiscal_position_local_uruguay",""
|
||||
"","","","","","","","","","tax","invoice","VAT Purchases 10%","uy_code_11501","","","","",""
|
||||
"","","","","","","","","","base","refund","Tax Base Purchases","","","","","",""
|
||||
"","","","","","","","","","tax","refund","VAT Purchases - paid","uy_code_11501","","","","",""
|
||||
"vat11","20% Reduced VAT","Sales Reduced VAT","Sales Reduced VAT","vat","20","percent","sale","tax_group_reduced_vat","base","invoice","Base Sales Reduced VAT","","","IVA Ventas Tasa Reducida,IVA Ventas Tasa Reducida","account_fiscal_position_local_uruguay",""
|
||||
"","","","","","","","","","tax","invoice","Sales Reduced VAT","uy_code_21406","","","","",""
|
||||
"","","","","","","","","","base","refund","Taxable Sales Base","","","","","",""
|
||||
"","","","","","","","","","tax","refund","VAT Sales - received","uy_code_21406","","","","",""
|
||||
"vat12","20% Reduced VAT","Purchase Reduced VAT","Purchase Reduced VAT","vat","20","percent","purchase","tax_group_reduced_vat","base","invoice","Base Purchases Reduced VAT","","","IVA Compras Tasa Reducida","IVA Compras Tasa Reducida","account_fiscal_position_local_uruguay",""
|
||||
"","","","","","","","","","tax","invoice","Purchases Reduced VAT","uy_code_11504","","","","",""
|
||||
"","","","","","","","","","base","refund","Tax Base Purchases","","","","","",""
|
||||
"","","","","","","","","","tax","refund","VAT Purchases - paid","uy_code_11504","","","","",""
|
||||
|
Can't render this file because it has a wrong number of fields in line 42.
|
|
|
@ -0,0 +1,5 @@
|
|||
"id","name","country_id","name@es"
|
||||
"tax_group_iva_10","VAT 10%","base.uy","IVA 10%"
|
||||
"tax_group_iva_22","VAT 22%","base.uy","IVA 22%"
|
||||
"tax_group_exenton","EXEMPT","base.uy","EXENTOS"
|
||||
"tax_group_reduced_vat","Other VAT","base.uy","Otras Tasas"
|
||||
|
3
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/demo/__init__.py
Normal file
3
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/demo/__init__.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import account_demo
|
||||
527
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/demo/account_demo.py
Normal file
527
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/demo/account_demo.py
Normal file
|
|
@ -0,0 +1,527 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
import time
|
||||
import logging
|
||||
from odoo import api, models, Command
|
||||
from odoo.exceptions import UserError, ValidationError
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class AccountChartTemplate(models.AbstractModel):
|
||||
_inherit = "account.chart.template"
|
||||
|
||||
@api.model
|
||||
def _get_demo_data(self, company=False):
|
||||
if company.account_fiscal_country_id.code == "UY":
|
||||
return {
|
||||
'res.partner': self._l10n_uy_get_demo_data_res_partner(company),
|
||||
'account.move': self._l10n_uy_get_demo_data_move(company),
|
||||
'account.move.reversal': self._l10n_uy_get_demo_data_move_reversal(company),
|
||||
}
|
||||
else:
|
||||
return super()._get_demo_data(company)
|
||||
|
||||
def _post_load_demo_data(self, company=False):
|
||||
if company.account_fiscal_country_id.code != "UY":
|
||||
return super()._post_load_demo_data(company)
|
||||
invoices = (
|
||||
self.ref('demo_invoice_1')
|
||||
+ self.ref('demo_invoice_2')
|
||||
+ self.ref('demo_invoice_3')
|
||||
+ self.ref('demo_invoice_4')
|
||||
+ self.ref('demo_invoice_5')
|
||||
+ self.ref('demo_invoice_6')
|
||||
+ self.ref('demo_invoice_8')
|
||||
+ self.ref('demo_invoice_9')
|
||||
+ self.ref('demo_sup_invoice_1')
|
||||
+ self.ref('demo_sup_invoice_2')
|
||||
+ self.ref('demo_sup_invoice_3')
|
||||
+ self.ref('demo_sup_invoice_6')
|
||||
+ self.ref('demo_sup_invoice_7')
|
||||
+ self.ref('demo_sup_invoice_8')
|
||||
+ self.ref('demo_sup_invoice_9')
|
||||
)
|
||||
# the invoice_extract acts like a placeholder for the OCR to be ran and
|
||||
# doesn't contain any lines yet
|
||||
for move in invoices:
|
||||
try:
|
||||
move.action_post()
|
||||
except (UserError, ValidationError):
|
||||
_logger.exception('Error while posting invoices')
|
||||
|
||||
# Post the reversal moves
|
||||
invoices_to_revert = (
|
||||
self.ref('demo_refund_invoice_1')
|
||||
+ self.ref('demo_refund_invoice_2')
|
||||
+ self.ref('demo_refund_invoice_3')
|
||||
+ self.ref('demo_refund_invoice_4')
|
||||
+ self.ref('demo_sup_refund_invoice_3')
|
||||
+ self.ref('demo_sup_refund_invoice_2')
|
||||
)
|
||||
for move in invoices_to_revert:
|
||||
try:
|
||||
self.env['account.move'].browse(move.refund_moves().get('res_id')).action_post()
|
||||
except (UserError, ValidationError):
|
||||
_logger.exception('Error while posting reversal moves')
|
||||
|
||||
@api.model
|
||||
def _l10n_uy_get_demo_data_move(self, company=False):
|
||||
cid = company.id or self.env.company.id
|
||||
sale_journal = self.env['account.journal'].search(
|
||||
domain=[
|
||||
*self.env['account.journal']._check_company_domain(cid),
|
||||
('type', '=', 'sale')
|
||||
], limit=1,
|
||||
)
|
||||
purchase_journal = self.env['account.journal'].search(
|
||||
domain=[
|
||||
*self.env['account.journal']._check_company_domain(cid),
|
||||
('type', '=', 'purchase')
|
||||
], limit=1,
|
||||
)
|
||||
return {
|
||||
# Customer invoice demo
|
||||
self.company_xmlid('demo_invoice_1'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'out_invoice',
|
||||
'partner_id': 'base.res_partner_4',
|
||||
'journal_id': sale_journal.id,
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m-01'),
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.product_product_2', 'price_unit': 642.0, 'quantity': 1}),
|
||||
Command.create({'product_id': 'product.product_product_12', 'price_unit': 120.0, 'quantity': 4}),
|
||||
Command.create({'product_id': 'product.product_product_16', 'price_unit': 25.0, 'quantity': 20}),
|
||||
Command.create({'product_id': 'product.product_product_20', 'price_unit': 1950.0, 'quantity': 4}),
|
||||
],
|
||||
},
|
||||
self.company_xmlid('demo_invoice_2'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'out_invoice',
|
||||
'partner_id': 'base.res_partner_4',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'journal_id': sale_journal.id,
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m-05'),
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_e_inv',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.product_product_27', 'price_unit': 642.0, 'quantity': 5}),
|
||||
Command.create({'product_id': 'product.product_product_25', 'price_unit': 3245.0, 'quantity': 2}),
|
||||
Command.create({'product_id': 'product.consu_delivery_01', 'price_unit': 4000.0, 'quantity': 5}),
|
||||
],
|
||||
},
|
||||
self.company_xmlid('demo_invoice_3'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'out_invoice',
|
||||
'partner_id': 'l10n_uy.partner_cfu',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'journal_id': sale_journal.id,
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m-10'),
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_e_ticket',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.product_product_27', 'price_unit': 642.0, 'quantity': 5}),
|
||||
Command.create({'product_id': 'product.product_product_2', 'price_unit': 642.0, 'quantity': 1}),
|
||||
Command.create({'product_id': 'product.product_delivery_02', 'price_unit': 40.0, 'quantity': 5}),
|
||||
Command.create({'product_id': 'product.product_order_01', 'price_unit': 280.0, 'quantity': 3}),
|
||||
Command.create({'product_id': 'product.product_product_3', 'price_unit': 450.0, 'quantity': 2}),
|
||||
],
|
||||
},
|
||||
self.company_xmlid('demo_invoice_4'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'out_invoice',
|
||||
'partner_id': 'demo_partner_4',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'journal_id': sale_journal.id,
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m-13'),
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_e_inv',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.product_product_27', 'price_unit': 1000.0, 'quantity': 5}),
|
||||
Command.create({'product_id': 'product.product_product_3', 'price_unit': 450.0, 'quantity': 2}),
|
||||
Command.create({'product_id': 'product.product_product_12', 'price_unit': 120.0, 'quantity': 4}),
|
||||
Command.create({'product_id': 'product.product_product_13', 'price_unit': 85.0, 'quantity': 3}),
|
||||
],
|
||||
'currency_id': 'base.USD',
|
||||
},
|
||||
self.company_xmlid('demo_invoice_5'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'out_invoice',
|
||||
'partner_id': 'res_partner_foreign',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'journal_id': sale_journal.id,
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m-11'),
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_e_inv_exp',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.consu_delivery_02', 'price_unit': 4000.0, 'quantity': 5}),
|
||||
Command.create({'product_id': 'product.product_product_3', 'price_unit': 450.0, 'quantity': 2}),
|
||||
Command.create({'product_id': 'product.product_product_12', 'price_unit': 120.0, 'quantity': 4}),
|
||||
Command.create({'product_id': 'product.product_product_13', 'price_unit': 85.0, 'quantity': 3}),
|
||||
Command.create({'product_id': 'product.consu_delivery_03', 'price_unit': 2350.0, 'quantity': 1}),
|
||||
|
||||
],
|
||||
'currency_id': 'base.USD',
|
||||
},
|
||||
self.company_xmlid('demo_invoice_6'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'out_invoice',
|
||||
'partner_id': 'l10n_uy.partner_cfu',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'journal_id': sale_journal.id,
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m-14'),
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_e_ticket',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.product_product_1', 'price_unit': 216.0, 'quantity': 9}),
|
||||
Command.create({'product_id': 'product.product_delivery_01', 'price_unit': 70.0, 'quantity': 11}),
|
||||
Command.create({'product_id': 'product.product_delivery_02', 'price_unit': 40.0, 'quantity': 5}),
|
||||
Command.create({'product_id': 'product.product_order_01', 'price_unit': 280.0, 'quantity': 3}),
|
||||
Command.create({'product_id': 'product.consu_delivery_02', 'price_unit': 4000.0, 'quantity': 5}),
|
||||
Command.create({'product_id': 'product.product_product_3', 'price_unit': 450.0, 'quantity': 2}),
|
||||
Command.create({'product_id': 'product.product_product_12', 'price_unit': 120.0, 'quantity': 4}),
|
||||
Command.create({'product_id': 'product.product_product_13', 'price_unit': 85.0, 'quantity': 3}),
|
||||
Command.create({'product_id': 'product.product_product_16', 'price_unit': 25.0, 'quantity': 20}),
|
||||
Command.create({'product_id': 'product.product_product_20', 'price_unit': 1950.0, 'quantity': 4}),
|
||||
],
|
||||
},
|
||||
self.company_xmlid('demo_invoice_7'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'out_invoice',
|
||||
'partner_id': 'l10n_uy.partner_cfu',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m-14'),
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_e_ticket',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.product_product_1', 'price_unit': 216.0, 'quantity': 3}),
|
||||
Command.create({'product_id': 'product.product_delivery_01', 'price_unit': 70.0, 'quantity': 1}),
|
||||
Command.create({'product_id': 'product.product_delivery_02', 'price_unit': 40.0, 'quantity': 5}),
|
||||
Command.create({'product_id': 'product.product_product_3', 'price_unit': 450.0, 'quantity': 7}),
|
||||
Command.create({'product_id': 'product.product_product_12', 'price_unit': 120.0, 'quantity': 4}),
|
||||
Command.create({'product_id': 'product.product_product_16', 'price_unit': 25.0, 'quantity': 16}),
|
||||
Command.create({'product_id': 'product.product_product_20', 'price_unit': 1950.0, 'quantity': 2}),
|
||||
],
|
||||
},
|
||||
self.company_xmlid('demo_invoice_8'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'out_invoice',
|
||||
'partner_id': 'demo_partner_5',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m-01'),
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_dn_e_inv',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.product_product_27', 'price_unit': 642.0, 'quantity': 4}),
|
||||
Command.create({'product_id': 'product.product_product_25', 'price_unit': 3245.0, 'quantity': 2}),
|
||||
Command.create({'product_id': 'product.consu_delivery_01', 'price_unit': 4000.0, 'quantity': 1}),
|
||||
Command.create({'product_id': 'product.product_product_12', 'price_unit': 120.0, 'quantity': 3}),
|
||||
],
|
||||
},
|
||||
self.company_xmlid('demo_invoice_9'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'out_invoice',
|
||||
'partner_id': 'demo_partner_4',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m-05'),
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_e_ticket',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.product_product_27', 'price_unit': 642.0, 'quantity': 5}),
|
||||
Command.create({'product_id': 'product.product_product_25', 'price_unit': 3245.0, 'quantity': 2}),
|
||||
Command.create({'product_id': 'product.consu_delivery_01', 'price_unit': 4000.0, 'quantity': 5}),
|
||||
Command.create({'product_id': 'product.product_delivery_02', 'price_unit': 4000.0, 'quantity': 1}),
|
||||
],
|
||||
},
|
||||
|
||||
# Supplier invoice demo
|
||||
self.company_xmlid('demo_sup_invoice_1'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'in_invoice',
|
||||
'partner_id': 'demo_partner_5',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'journal_id': purchase_journal.id,
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m') + '-01',
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_e_inv',
|
||||
'l10n_latam_document_number': 'AA0000008',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.product_product_2', 'price_unit': 642.0, 'quantity': 3}),
|
||||
Command.create({'product_id': 'product.product_product_27', 'price_unit': 228.0, 'quantity': 1}),
|
||||
],
|
||||
},
|
||||
self.company_xmlid('demo_sup_invoice_2'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'in_invoice',
|
||||
'partner_id': 'res_partner_foreign',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'journal_id': purchase_journal.id,
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m') + '-01',
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_e_inv_exp',
|
||||
'l10n_latam_document_number': 'AA0000009',
|
||||
'currency_id': 'base.USD',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.product_product_27', 'price_unit': 642.0, 'quantity': 5}),
|
||||
Command.create({'product_id': 'product.product_product_2', 'price_unit': 2584.0, 'quantity': 2}),
|
||||
],
|
||||
},
|
||||
self.company_xmlid('demo_sup_invoice_3'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'in_invoice',
|
||||
'partner_id': 'demo_partner_4',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m') + '-26',
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_e_inv',
|
||||
'l10n_latam_document_number': 'AA0000010',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.product_product_2', 'price_unit': 1642.0, 'quantity': 8}),
|
||||
],
|
||||
},
|
||||
self.company_xmlid('demo_sup_invoice_4'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'in_invoice',
|
||||
'partner_id': 'l10n_uy.partner_cfu',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m') + '-26',
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_e_ticket',
|
||||
'l10n_latam_document_number': 'AA0000011',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.product_product_2', 'price_unit': 1642.0, 'quantity': 3}),
|
||||
],
|
||||
},
|
||||
self.company_xmlid('demo_sup_invoice_5'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'in_invoice',
|
||||
'partner_id': 'res_partner_foreign',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m') + '-01',
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_e_inv_exp',
|
||||
'l10n_latam_document_number': 'AA0000012',
|
||||
'currency_id': 'base.USD',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.product_product_27', 'price_unit': 642.0, 'quantity': 4}),
|
||||
Command.create({'product_id': 'product.product_product_2', 'price_unit': 3245.0, 'quantity': 1}),
|
||||
],
|
||||
},
|
||||
self.company_xmlid('demo_sup_invoice_6'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'in_invoice',
|
||||
'partner_id': 'res_partner_foreign',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m') + '-01',
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_e_inv_exp',
|
||||
'l10n_latam_document_number': 'AA0000013',
|
||||
'currency_id': 'base.USD',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.product_product_27', 'price_unit': 335.0, 'quantity': 8}),
|
||||
Command.create({'product_id': 'product.product_product_2', 'price_unit': 9584.0, 'quantity': 16}),
|
||||
],
|
||||
},
|
||||
self.company_xmlid('demo_sup_invoice_7'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'in_invoice',
|
||||
'partner_id': 'demo_partner_5',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'journal_id': purchase_journal.id,
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m') + '-01',
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_e_ticket',
|
||||
'l10n_latam_document_number': 'AA0000014',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.product_product_27', 'price_unit': 642.0, 'quantity': 5}),
|
||||
Command.create({'product_id': 'product.product_product_25', 'price_unit': 3245.0, 'quantity': 2}),
|
||||
Command.create({'product_id': 'product.consu_delivery_01', 'price_unit': 4000.0, 'quantity': 5}),
|
||||
Command.create({'product_id': 'product.product_delivery_02', 'price_unit': 4000.0, 'quantity': 1}),
|
||||
],
|
||||
},
|
||||
self.company_xmlid('demo_sup_invoice_8'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'in_invoice',
|
||||
'partner_id': 'l10n_uy.partner_cfu',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m') + '-01',
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_e_ticket',
|
||||
'l10n_latam_document_number': 'AA0000015',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.consu_delivery_02', 'price_unit': 4000.0, 'quantity': 7}),
|
||||
Command.create({'product_id': 'product.product_product_3', 'price_unit': 450.0, 'quantity': 6}),
|
||||
Command.create({'product_id': 'product.product_product_12', 'price_unit': 120.0, 'quantity': 1}),
|
||||
Command.create({'product_id': 'product.product_product_13', 'price_unit': 85.0, 'quantity': 1}),
|
||||
Command.create({'product_id': 'product.consu_delivery_03', 'price_unit': 2350.0, 'quantity': 4}),
|
||||
],
|
||||
},
|
||||
self.company_xmlid('demo_sup_invoice_9'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'in_invoice',
|
||||
'partner_id': 'demo_partner_4',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m') + '-01',
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_e_ticket',
|
||||
'l10n_latam_document_number': 'AA0000016',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.product_product_27', 'price_unit': 1000.0, 'quantity': 8}),
|
||||
Command.create({'product_id': 'product.product_product_3', 'price_unit': 450.0, 'quantity': 7}),
|
||||
Command.create({'product_id': 'product.product_product_12', 'price_unit': 120.0, 'quantity': 1}),
|
||||
Command.create({'product_id': 'product.product_product_13', 'price_unit': 85.0, 'quantity': 2}),
|
||||
],
|
||||
},
|
||||
self.company_xmlid('demo_sup_invoice_10'): {
|
||||
'company_id': company.id,
|
||||
'move_type': 'in_invoice',
|
||||
'partner_id': 'demo_partner_5',
|
||||
'invoice_user_id': 'base.user_demo',
|
||||
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
|
||||
'invoice_date': time.strftime('%Y-%m') + '-01',
|
||||
'l10n_latam_document_number': 'AA0000017',
|
||||
'invoice_line_ids': [
|
||||
Command.create({'product_id': 'product.product_product_2', 'price_unit': 642.0, 'quantity': 1}),
|
||||
Command.create({'product_id': 'product.product_product_12', 'price_unit': 120.0, 'quantity': 4}),
|
||||
Command.create({'product_id': 'product.product_product_16', 'price_unit': 25.0, 'quantity': 20}),
|
||||
Command.create({'product_id': 'product.product_product_20', 'price_unit': 1950.0, 'quantity': 4}),
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
@api.model
|
||||
def _l10n_uy_get_demo_data_move_reversal(self, company=False):
|
||||
cid = company.id or self.env.company.id
|
||||
sale_journal = self.env['account.journal'].search(
|
||||
domain=[
|
||||
*self.env['account.journal']._check_company_domain(cid),
|
||||
('type', '=', 'sale')
|
||||
], limit=1,
|
||||
)
|
||||
purchase_journal = self.env['account.journal'].search(
|
||||
domain=[
|
||||
*self.env['account.journal']._check_company_domain(cid),
|
||||
('type', '=', 'purchase')
|
||||
], limit=1,
|
||||
)
|
||||
return {
|
||||
# Account Customer Refund
|
||||
|
||||
# Create draft refund for invoice 3
|
||||
self.company_xmlid('demo_refund_invoice_1'): {
|
||||
'reason': 'Venta Cancelada',
|
||||
'move_ids': 'demo_invoice_1',
|
||||
'journal_id': sale_journal.id,
|
||||
'date': time.strftime('%Y-%m') + '-01'
|
||||
},
|
||||
# Create draft refund for invoice 4
|
||||
self.company_xmlid('demo_refund_invoice_2'): {
|
||||
'reason': 'Venta Cancelada',
|
||||
'move_ids': 'demo_invoice_4',
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_cn_e_ticket',
|
||||
'journal_id': sale_journal.id,
|
||||
'date': time.strftime('%Y-%m') + '-01'
|
||||
},
|
||||
self.company_xmlid('demo_refund_invoice_3'): {
|
||||
'reason': 'Venta Cancelada',
|
||||
'move_ids': 'demo_invoice_5',
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_cn_e_inv_exp',
|
||||
'journal_id': sale_journal.id,
|
||||
'date': time.strftime('%Y-%m') + '-01'
|
||||
},
|
||||
self.company_xmlid('demo_refund_invoice_4'): {
|
||||
'reason': 'Venta Cancelada',
|
||||
'move_ids': 'demo_invoice_6',
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_cn_e_ticket',
|
||||
'journal_id': sale_journal.id,
|
||||
'date': time.strftime('%Y-%m') + '-01'
|
||||
},
|
||||
|
||||
# Account supplier refund
|
||||
self.company_xmlid('demo_sup_refund_invoice_3'): {
|
||||
'reason': 'Mercadería defectuosa',
|
||||
'l10n_latam_document_number': 'BB0123456',
|
||||
'move_ids': 'demo_sup_invoice_1',
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_cn_e_inv',
|
||||
'journal_id': purchase_journal.id,
|
||||
'date': time.strftime('%Y-%m') + '-01'
|
||||
},
|
||||
self.company_xmlid('demo_sup_refund_invoice_2'): {
|
||||
'reason': 'Venta cancelada',
|
||||
'l10n_latam_document_number': 'BB0123457',
|
||||
'move_ids': 'demo_sup_invoice_2',
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_cn_e_inv_exp',
|
||||
'journal_id': purchase_journal.id,
|
||||
'date': time.strftime('%Y-%m') + '-01'
|
||||
},
|
||||
self.company_xmlid('demo_sup_refund_invoice_1'): {
|
||||
'reason': 'Venta cancelada',
|
||||
'l10n_latam_document_number': 'BB0123458',
|
||||
'move_ids': 'demo_sup_invoice_7',
|
||||
'l10n_latam_document_type_id': 'l10n_uy.dc_cn_e_ticket',
|
||||
'journal_id': purchase_journal.id,
|
||||
'date': time.strftime('%Y-%m') + '-01'
|
||||
},
|
||||
}
|
||||
|
||||
@api.model
|
||||
def _l10n_uy_get_demo_data_res_partner(self, company=False):
|
||||
return {
|
||||
self.company_xmlid('demo_partner_4'): {
|
||||
'name': 'Global Solutions Corp',
|
||||
'l10n_latam_identification_type_id': 'l10n_uy.it_rut',
|
||||
'vat': '218435730016',
|
||||
'street': 'Avenida Central 5678',
|
||||
'city': 'Punta del Este',
|
||||
'state_id': 'base.state_uy_01',
|
||||
'country_id': 'base.uy',
|
||||
'email': 'info@globalsolutions.com',
|
||||
},
|
||||
self.company_xmlid('demo_partner_5'): {
|
||||
'name': 'Tech Innovations S.A.',
|
||||
'l10n_latam_identification_type_id': 'l10n_uy.it_rut',
|
||||
'vat': '219999830019',
|
||||
'street': 'Avenida de la Libertad 1234',
|
||||
'city': 'Montevideo',
|
||||
'state_id': 'base.state_uy_01',
|
||||
'country_id': 'base.uy',
|
||||
'email': 'contact@techinnovations.com',
|
||||
},
|
||||
self.company_xmlid('demo_partner_6'): {
|
||||
'name': 'CORREO URUGUAYO',
|
||||
'l10n_latam_identification_type_id': 'l10n_uy.it_rut',
|
||||
'vat': '214130990011',
|
||||
'street': 'Buenos Aires 451',
|
||||
'city': 'Montevideo',
|
||||
'state_id': 'base.state_uy_10',
|
||||
'country_id': 'base.uy',
|
||||
'email': 'correo@example.com',
|
||||
},
|
||||
# Foreign Company
|
||||
'res_partner_foreign': {
|
||||
'name': 'Foreign Inc',
|
||||
'l10n_latam_identification_type_id': 'l10n_latam_base.it_vat',
|
||||
'is_company': True,
|
||||
'vat': '17-2038053',
|
||||
'zip': '95380',
|
||||
'street': '7841 Red Road',
|
||||
'city': 'San Francisco',
|
||||
'state_id': 'base.state_us_5',
|
||||
'country_id': 'base.us',
|
||||
'email': 'foreing@example.com',
|
||||
'phone': '(123)-456-7890',
|
||||
'website': 'http://www.foreign-inc.com',
|
||||
},
|
||||
# Resident Alien (Foreign living at Uruguay)
|
||||
'res_partner_resident_alien': {
|
||||
'name': 'Resident Alien',
|
||||
'l10n_latam_identification_type_id': 'l10n_uy.it_nie',
|
||||
'vat': '93:402.010-1',
|
||||
'zip': '2343',
|
||||
'street': 'Calle False 1234',
|
||||
'city': 'Montevideo',
|
||||
'state_id': 'base.state_uy_10',
|
||||
'country_id': 'base.uy',
|
||||
'email': 'nie@example.com',
|
||||
},
|
||||
}
|
||||
|
|
@ -1,34 +1,38 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="partner_demo_company_uy" model="res.partner">
|
||||
<record id="base.partner_demo_company_uy" model="res.partner" forcecreate="1">
|
||||
<field name="name">UY Company</field>
|
||||
<field name="vat">UY130551600010</field>
|
||||
<field name="street"></field>
|
||||
<field name='l10n_latam_identification_type_id' ref='it_rut'/>
|
||||
<field name="vat">218296790015</field>
|
||||
<field name='state_id' ref="base.state_uy_10"/>
|
||||
<field name="street">Calle Falsa 123</field>
|
||||
<field name="city">Montevideo</field>
|
||||
<field name="country_id" ref="base.uy"/>
|
||||
|
||||
<field name="zip">12800</field>
|
||||
<field name="phone">+598 94 231 234</field>
|
||||
<field name="email">info@company.uyexample.com</field>
|
||||
<field name="website">www.uyexample.com</field>
|
||||
<field name="is_company" eval="True"/>
|
||||
</record>
|
||||
|
||||
<record id="demo_company_uy" model="res.company">
|
||||
<record id="base.demo_company_uy" model="res.company" forcecreate="1">
|
||||
<field name="name">UY Company</field>
|
||||
<field name="partner_id" ref="partner_demo_company_uy"/>
|
||||
<field name="partner_id" ref="base.partner_demo_company_uy"/>
|
||||
</record>
|
||||
|
||||
<function model="res.company" name="_onchange_country_id">
|
||||
<value eval="[ref('demo_company_uy')]"/>
|
||||
<value eval="[ref('base.demo_company_uy')]"/>
|
||||
</function>
|
||||
|
||||
<function model="res.users" name="write">
|
||||
<value eval="[ref('base.user_root'), ref('base.user_admin'), ref('base.user_demo')]"/>
|
||||
<value eval="{'company_ids': [(4, ref('l10n_uy.demo_company_uy'))]}"/>
|
||||
<value eval="{'company_ids': [(4, ref('base.demo_company_uy'))]}"/>
|
||||
</function>
|
||||
|
||||
<function model="account.chart.template" name="try_loading">
|
||||
<value eval="[ref('l10n_uy.uy_chart_template')]"/>
|
||||
<value model="res.company" eval="obj().env.ref('l10n_uy.demo_company_uy')"/>
|
||||
<value eval="[]"/>
|
||||
<value>uy</value>
|
||||
<value model="res.company" eval="obj().env.ref('base.demo_company_uy')"/>
|
||||
<value name="install_demo" eval="True"/>
|
||||
</function>
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<odoo>
|
||||
|
||||
<record id="rateUSD" model="res.currency.rate">
|
||||
<field name="company_id" ref="base.demo_company_uy"/>
|
||||
<field name="rate">0.026</field>
|
||||
<field name="currency_id" ref="base.USD"/>
|
||||
<field eval="('2023-03-02')" name="name"/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
228
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/i18n/es_419.po
Normal file
228
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/i18n/es_419.po
Normal file
|
|
@ -0,0 +1,228 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * l10n_uy
|
||||
#
|
||||
# "Fernanda Alvarez (mfar)" <mfar@odoo.com>, 2026.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 18.0+e\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-12-30 19:10+0000\n"
|
||||
"PO-Revision-Date: 2026-02-21 10:10+0000\n"
|
||||
"Last-Translator: \"Fernanda Alvarez (mfar)\" <mfar@odoo.com>\n"
|
||||
"Language-Team: Spanish (Latin America) <https://translate.odoo.com/projects/"
|
||||
"odoo-19-l10n/l10n_uy/es_419/>\n"
|
||||
"Language: es_419\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 5.14.3\n"
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/l10n_latam_document_type.py:0
|
||||
msgid ""
|
||||
"%(document_number)s is not a valid value for %(document_type)s.\n"
|
||||
"The document number must be entered with a maximum of 2 letters for the "
|
||||
"first part and 7 numbers for the second. The following are examples of valid "
|
||||
"document numbers:\n"
|
||||
"- XX0000001\n"
|
||||
" - YY0000123\n"
|
||||
" - A0000001"
|
||||
msgstr ""
|
||||
"%(document_number)s no es un valor válido para %(document_type)s.\n"
|
||||
"Ingresa el número de documento con un máximo de 2 letras en la primera parte "
|
||||
"y 7 números en la segunda. Estos son ejemplos de números de documento "
|
||||
"válidos:\n"
|
||||
"- XX0000001\n"
|
||||
" - YY0000123\n"
|
||||
" - A0000001"
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/res_partner.py:0
|
||||
msgid "3:402.010-2 or 93:402.010-1 (CI or NIE)"
|
||||
msgstr "3:402.010-2 o 93:402.010-1 (CI o NIE)"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model,name:l10n_uy.model_account_chart_template
|
||||
msgid "Account Chart Template"
|
||||
msgstr "Plantilla de plan contable"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:account.report.column,name:l10n_uy.tax_report_balance
|
||||
msgid "Balance"
|
||||
msgstr "Saldo"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:account.report.line,name:l10n_uy.account_tax_report_base_impb_cmprs_reduced
|
||||
msgid "Base Purchases Reduced VAT"
|
||||
msgstr "Base de compras con IVA reducido"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:account.report.line,name:l10n_uy.account_tax_report_base_impb_vnts_reduced
|
||||
msgid "Base Sales Reduced VAT"
|
||||
msgstr "Base de ventas con IVA reducido"
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/res_partner.py:0
|
||||
msgid "CI/NIE"
|
||||
msgstr "CI/NIE"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model,name:l10n_uy.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr "Empresas"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model,name:l10n_uy.model_res_partner
|
||||
msgid "Contact"
|
||||
msgstr "Contacto"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model,website_form_label:l10n_uy.model_res_partner
|
||||
msgid "Create a Customer"
|
||||
msgstr "Crear un cliente"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_l10n_latam_identification_type__l10n_uy_dgi_code
|
||||
msgid "DGI Code"
|
||||
msgstr "Código DGI"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_account_chart_template__display_name
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_account_move__display_name
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_account_tax__display_name
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_l10n_latam_document_type__display_name
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_l10n_latam_identification_type__display_name
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_res_company__display_name
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_res_partner__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nombre a mostrar"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model,name:l10n_uy.model_account_tax
|
||||
msgid "ETA tax codes mixin"
|
||||
msgstr "Mixin de códigos fiscales ETA"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:l10n_latam.identification.type,description:l10n_uy.it_nife
|
||||
msgid "Foreign tax identification number"
|
||||
msgstr "Número de identificación fiscal extranjero"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:l10n_latam.identification.type,description:l10n_uy.it_nie
|
||||
msgid "Foreigner Identity Number"
|
||||
msgstr "Número de Identidad de Extranjero"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_account_chart_template__id
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_account_move__id
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_account_tax__id
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_l10n_latam_document_type__id
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_l10n_latam_identification_type__id
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_res_company__id
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_res_partner__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model,name:l10n_uy.model_l10n_latam_identification_type
|
||||
msgid "Identification Types"
|
||||
msgstr "Tipos de identificación"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model,name:l10n_uy.model_account_move
|
||||
msgid "Journal Entry"
|
||||
msgstr "Asiento contable"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model,name:l10n_uy.model_l10n_latam_document_type
|
||||
msgid "Latam Document Type"
|
||||
msgstr "Tipo de Documento Latam"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:l10n_latam.identification.type,name:l10n_uy.it_nie
|
||||
msgid "NIE"
|
||||
msgstr "NIE"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:l10n_latam.identification.type,name:l10n_uy.it_nife
|
||||
msgid "NIFE"
|
||||
msgstr "NIFE"
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/template_uy.py:0
|
||||
msgid "Purchases"
|
||||
msgstr "Compras"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:account.report.line,name:l10n_uy.account_tax_report_cmprs_iva_reduced
|
||||
msgid "Purchases Reduced VAT"
|
||||
msgstr "Compras con IVA reducido"
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/template_uy.py:0
|
||||
msgid "Sales"
|
||||
msgstr "Ventas"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:account.report.line,name:l10n_uy.account_tax_report_vnts_iva_reduced
|
||||
msgid "Sales Reduced VAT"
|
||||
msgstr "Ventas con IVA reducido"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_account_tax__l10n_uy_tax_category
|
||||
msgid "Tax Category"
|
||||
msgstr "Categoría de Impuesto"
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/res_partner.py:0
|
||||
msgid ""
|
||||
"The %(vat_label)s number [%(wrong_vat)s] does not seem to be valid.\n"
|
||||
"Note: the expected format is %(expected_format)s"
|
||||
msgstr ""
|
||||
"El %(vat_label)s número [%(wrong_vat)s] no parece válido.\n"
|
||||
"Nota: el formato esperoado es %(expected_format)s"
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/res_partner.py:0
|
||||
msgid ""
|
||||
"The %(vat_label)s number [%(wrong_vat)s] for %(partner_label)s does not seem "
|
||||
"to be valid.\n"
|
||||
"Note: the expected format is %(expected_format)s"
|
||||
msgstr ""
|
||||
"El %(vat_label)s número [%(wrong_vat)s] para %(partner_label)s no parece "
|
||||
"válido.\n"
|
||||
"Nota: el formato esperoado es %(expected_format)s"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model.fields,help:l10n_uy.field_account_tax__l10n_uy_tax_category
|
||||
msgid ""
|
||||
"UY: Use to group the transactions in the Financial Reports required by DGI"
|
||||
msgstr ""
|
||||
"UY: Utilizado para agrupar transacciones en Reportes Financieros requeridos "
|
||||
"por DGI"
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/template_uy.py:0
|
||||
msgid "Uruguayan Generic Chart of Accounts"
|
||||
msgstr "Plan Contable Genérico Uruguayo"
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model.fields.selection,name:l10n_uy.selection__account_tax__l10n_uy_tax_category__vat
|
||||
msgid "VAT"
|
||||
msgstr "IVA"
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/res_partner.py:0
|
||||
msgid "partner [%s]"
|
||||
msgstr "empresa [%s]"
|
||||
207
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/i18n/l10n_uy.pot
Normal file
207
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/i18n/l10n_uy.pot
Normal file
|
|
@ -0,0 +1,207 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * l10n_uy
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 19.0+e\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-12-30 19:10+0000\n"
|
||||
"PO-Revision-Date: 2025-12-30 19:10+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/l10n_latam_document_type.py:0
|
||||
msgid ""
|
||||
"%(document_number)s is not a valid value for %(document_type)s.\n"
|
||||
"The document number must be entered with a maximum of 2 letters for the first part and 7 numbers for the second. The following are examples of valid document numbers:\n"
|
||||
"- XX0000001\n"
|
||||
" - YY0000123\n"
|
||||
" - A0000001"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/res_partner.py:0
|
||||
msgid "3:402.010-2 or 93:402.010-1 (CI or NIE)"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model,name:l10n_uy.model_account_chart_template
|
||||
msgid "Account Chart Template"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:account.report.column,name:l10n_uy.tax_report_balance
|
||||
msgid "Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:account.report.line,name:l10n_uy.account_tax_report_base_impb_cmprs_reduced
|
||||
msgid "Base Purchases Reduced VAT"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:account.report.line,name:l10n_uy.account_tax_report_base_impb_vnts_reduced
|
||||
msgid "Base Sales Reduced VAT"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/res_partner.py:0
|
||||
msgid "CI/NIE"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model,name:l10n_uy.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model,name:l10n_uy.model_res_partner
|
||||
msgid "Contact"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model,website_form_label:l10n_uy.model_res_partner
|
||||
msgid "Create a Customer"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_l10n_latam_identification_type__l10n_uy_dgi_code
|
||||
msgid "DGI Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_account_chart_template__display_name
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_account_move__display_name
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_account_tax__display_name
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_l10n_latam_document_type__display_name
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_l10n_latam_identification_type__display_name
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_res_company__display_name
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_res_partner__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model,name:l10n_uy.model_account_tax
|
||||
msgid "ETA tax codes mixin"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:l10n_latam.identification.type,description:l10n_uy.it_nife
|
||||
msgid "Foreign tax identification number"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:l10n_latam.identification.type,description:l10n_uy.it_nie
|
||||
msgid "Foreigner Identity Number"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_account_chart_template__id
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_account_move__id
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_account_tax__id
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_l10n_latam_document_type__id
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_l10n_latam_identification_type__id
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_res_company__id
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_res_partner__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model,name:l10n_uy.model_l10n_latam_identification_type
|
||||
msgid "Identification Types"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model,name:l10n_uy.model_account_move
|
||||
msgid "Journal Entry"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model,name:l10n_uy.model_l10n_latam_document_type
|
||||
msgid "Latam Document Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:l10n_latam.identification.type,name:l10n_uy.it_nie
|
||||
msgid "NIE"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:l10n_latam.identification.type,name:l10n_uy.it_nife
|
||||
msgid "NIFE"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/template_uy.py:0
|
||||
msgid "Purchases"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:account.report.line,name:l10n_uy.account_tax_report_cmprs_iva_reduced
|
||||
msgid "Purchases Reduced VAT"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/template_uy.py:0
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:account.report.line,name:l10n_uy.account_tax_report_vnts_iva_reduced
|
||||
msgid "Sales Reduced VAT"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model.fields,field_description:l10n_uy.field_account_tax__l10n_uy_tax_category
|
||||
msgid "Tax Category"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/res_partner.py:0
|
||||
msgid ""
|
||||
"The %(vat_label)s number [%(wrong_vat)s] does not seem to be valid.\n"
|
||||
"Note: the expected format is %(expected_format)s"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/res_partner.py:0
|
||||
msgid ""
|
||||
"The %(vat_label)s number [%(wrong_vat)s] for %(partner_label)s does not seem to be valid.\n"
|
||||
"Note: the expected format is %(expected_format)s"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model.fields,help:l10n_uy.field_account_tax__l10n_uy_tax_category
|
||||
msgid ""
|
||||
"UY: Use to group the transactions in the Financial Reports required by DGI"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/template_uy.py:0
|
||||
msgid "Uruguayan Generic Chart of Accounts"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#: model:ir.model.fields.selection,name:l10n_uy.selection__account_tax__l10n_uy_tax_category__vat
|
||||
msgid "VAT"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_uy
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_uy/models/res_partner.py:0
|
||||
msgid "partner [%s]"
|
||||
msgstr ""
|
||||
8
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/models/__init__.py
Normal file
8
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/models/__init__.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from . import account_move
|
||||
from . import account_tax
|
||||
from . import l10n_latam_identification_type
|
||||
from . import res_company
|
||||
from . import res_partner
|
||||
from . import template_uy
|
||||
from . import l10n_latam_document_type
|
||||
49
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/models/account_move.py
Normal file
49
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/models/account_move.py
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from odoo import models
|
||||
|
||||
# Let us match the document types to properly suggest the DN and CN documents
|
||||
# NOTE: this can be avoided if we have an extra subclassification of UY documents
|
||||
UY_DOC_SUBTYPES = [
|
||||
["0"], # not electronic
|
||||
["101", "102", "103", "201", "202", "203"], # e-ticket
|
||||
["111", "112", "113", "211", "212", "213"], # e-invoice
|
||||
["121", "122", "123", "221", "222", "223"], # e-inv-expo
|
||||
["151", "152", "153", "251", "252", "253"], # e-boleta (not implemented yet)
|
||||
]
|
||||
|
||||
|
||||
class AccountMove(models.Model):
|
||||
_inherit = 'account.move'
|
||||
|
||||
def _get_starting_sequence(self):
|
||||
""" If use documents then will create a new starting sequence using the document type code prefix and the
|
||||
journal document number with a 8 padding number """
|
||||
if self.l10n_latam_use_documents and self.company_id.account_fiscal_country_id.code == "UY" and self.l10n_latam_document_type_id:
|
||||
return self._l10n_uy_get_formatted_sequence()
|
||||
return super()._get_starting_sequence()
|
||||
|
||||
def _l10n_uy_get_formatted_sequence(self, number=0):
|
||||
return "%s A%07d" % (self.l10n_latam_document_type_id.doc_code_prefix, number)
|
||||
|
||||
def _get_last_sequence_domain(self, relaxed=False):
|
||||
where_string, param = super(AccountMove, self)._get_last_sequence_domain(relaxed)
|
||||
if self.company_id.account_fiscal_country_id.code == "UY" and self.l10n_latam_use_documents:
|
||||
where_string += " AND l10n_latam_document_type_id = %(l10n_latam_document_type_id)s"
|
||||
param['l10n_latam_document_type_id'] = self.l10n_latam_document_type_id.id or 0
|
||||
return where_string, param
|
||||
|
||||
def _get_l10n_latam_documents_domain(self):
|
||||
""" If this is a reversal or debit, suggest only related subtypes """
|
||||
self.ensure_one()
|
||||
domain = super()._get_l10n_latam_documents_domain()
|
||||
if self.country_code == "UY" and (original_move := self.reversed_entry_id or self.debit_origin_id):
|
||||
matching_subtype_codes = [
|
||||
subtype for subtype in UY_DOC_SUBTYPES
|
||||
if original_move.l10n_latam_document_type_id.code in subtype
|
||||
]
|
||||
if matching_subtype_codes:
|
||||
# restrict to the codes from the subtype matching the one of the original_move (e.g. 'e-ticket')
|
||||
codes = self.env["l10n_latam.document.type"].search(domain).mapped('code')
|
||||
allowed_codes = set(codes).intersection(set(matching_subtype_codes[0]))
|
||||
domain += [("code", "in", tuple(allowed_codes))]
|
||||
return domain
|
||||
10
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/models/account_tax.py
Normal file
10
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/models/account_tax.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# 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_uy_tax_category = fields.Selection([
|
||||
('vat', 'VAT'),
|
||||
], string="Tax Category", help="UY: Use to group the transactions in the Financial Reports required by DGI")
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from odoo import _, models
|
||||
from odoo.exceptions import UserError
|
||||
import re
|
||||
|
||||
|
||||
class L10n_LatamDocumentType(models.Model):
|
||||
_inherit = 'l10n_latam.document.type'
|
||||
|
||||
def _format_document_number(self, document_number):
|
||||
""" format and validate the document_number"""
|
||||
self.ensure_one()
|
||||
if self.country_id.code != "UY":
|
||||
return super()._format_document_number(document_number)
|
||||
|
||||
if not document_number:
|
||||
return False
|
||||
|
||||
if self.code == "0":
|
||||
return document_number
|
||||
|
||||
document_number = document_number.strip()
|
||||
number_part = re.findall(r'[\d]+', document_number)
|
||||
serie_part = re.findall(r'^[A-Za-z]+', document_number)
|
||||
if not serie_part or len(serie_part) > 1 or len(serie_part[0]) > 2 \
|
||||
or not number_part or len(number_part) > 1 or len(number_part[0]) > 7:
|
||||
raise UserError(_(
|
||||
"%(document_number)s is not a valid value for %(document_type)s.\n"
|
||||
"The document number must be entered with a maximum of 2 letters for the first part "
|
||||
"and 7 numbers for the second. The following are examples of valid document numbers:\n"
|
||||
"- XX0000001\n - YY0000123\n - A0000001",
|
||||
document_number=document_number,
|
||||
document_type=self.name,
|
||||
))
|
||||
return serie_part[0].upper() + number_part[0].zfill(7)
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class L10n_LatamIdentificationType(models.Model):
|
||||
_inherit = "l10n_latam.identification.type"
|
||||
|
||||
l10n_uy_dgi_code = fields.Char('DGI Code')
|
||||
14
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/models/res_company.py
Normal file
14
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/models/res_company.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from odoo import models
|
||||
|
||||
|
||||
class ResCompany(models.Model):
|
||||
_inherit = 'res.company'
|
||||
|
||||
def _localization_use_documents(self):
|
||||
""" Uruguayan localization use documents """
|
||||
self.ensure_one()
|
||||
return self.chart_template == 'uy' or self.account_fiscal_country_id.code == "UY" or super()._localization_use_documents()
|
||||
|
||||
def _is_latam(self):
|
||||
return super()._is_latam() or self.country_code == 'UY'
|
||||
101
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/models/res_partner.py
Normal file
101
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/models/res_partner.py
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
import logging
|
||||
import re
|
||||
|
||||
from odoo import api, models, _
|
||||
|
||||
from odoo.exceptions import ValidationError
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class ResPartner(models.Model):
|
||||
_inherit = "res.partner"
|
||||
|
||||
def _run_check_identification(self, validation='error'):
|
||||
"""Add validation of UY document types CI and NIE """
|
||||
if validation == 'error':
|
||||
ci_nie_types = self.filtered(lambda p:
|
||||
p.l10n_latam_identification_type_id.l10n_uy_dgi_code in ("1", "3")
|
||||
and p.l10n_latam_identification_type_id.country_id.code == "UY"
|
||||
and p.vat
|
||||
)
|
||||
for partner in ci_nie_types:
|
||||
if not partner._l10n_uy_ci_nie_is_valid():
|
||||
raise ValidationError(self._l10n_uy_build_vat_error_message(partner))
|
||||
return super()._run_check_identification(validation=validation)
|
||||
|
||||
@api.model
|
||||
def _l10n_uy_build_vat_error_message(self, partner):
|
||||
""" Similar to _build_vat_error_message but using latam doc type name instead of vat_label
|
||||
NOTE: maybe can be implemented in master to l10n_latam_base for the use of different doc types """
|
||||
vat_label = _("CI/NIE")
|
||||
expected_format = _("3:402.010-2 or 93:402.010-1 (CI or NIE)")
|
||||
|
||||
# Catch use case where the record label is about the public user (name: False)
|
||||
if partner.name:
|
||||
msg = "\n" + _(
|
||||
"The %(vat_label)s number [%(wrong_vat)s] for %(partner_label)s does not seem to be valid."
|
||||
"\nNote: the expected format is %(expected_format)s",
|
||||
vat_label=vat_label,
|
||||
wrong_vat=partner.vat,
|
||||
partner_label=_("partner [%s]", partner.name),
|
||||
expected_format=expected_format,
|
||||
)
|
||||
else:
|
||||
msg = "\n" + _(
|
||||
"The %(vat_label)s number [%(wrong_vat)s] does not seem to be valid."
|
||||
"\nNote: the expected format is %(expected_format)s",
|
||||
vat_label=vat_label,
|
||||
wrong_vat=partner.vat,
|
||||
expected_format=expected_format,
|
||||
)
|
||||
return msg
|
||||
|
||||
def _l10n_uy_ci_nie_is_valid(self):
|
||||
""" Check if the partner's CI or NIE number is a valid one.
|
||||
|
||||
CI:
|
||||
1) The ID number is taken up to the second to last position, that is, the first 6 or 7 digits.
|
||||
2) Each digit is multiplied by a different factor starting from right to left, the factors are:
|
||||
2, 9, 8, 7, 6, 3, 4.
|
||||
3) The products obtained are added:
|
||||
4) The base module 10 is calculated on this result to obtain the check digit, expressed in another way,
|
||||
the next number ending in zero is taken that follows the result of the addition (for the example
|
||||
would be 60) subtracting the sum itself: 60 - 59 = 1. The verification digit of the example ID is 1.
|
||||
|
||||
NOTE: If the ID has fewer digits, it is preceded with zeros and the mechanism described above is applied
|
||||
|
||||
NIE:
|
||||
The calculation for the NIE is the same as that used for the CI. The only difference is that we skip the
|
||||
first number
|
||||
|
||||
Both algorithms where extracted from Uruware's Technical Manual (section 9.2 and 9.3)
|
||||
|
||||
Return: False is not valid, True is valid
|
||||
"""
|
||||
self.ensure_one()
|
||||
|
||||
# The VAT must consist only numbers (format could have these characters ":., " we can skip them later)
|
||||
invalid_chars = re.findall(r"[^0-9:., \-]", self.vat)
|
||||
if invalid_chars:
|
||||
return False
|
||||
|
||||
ci_nie_number = re.sub("[^0-9]", "", self.vat)
|
||||
|
||||
# we get the validation digit, if NIE doc type we skip the first digit
|
||||
is_nie = self.l10n_latam_identification_type_id.l10n_uy_dgi_code == "1"
|
||||
verif_digit = int(ci_nie_number[-1])
|
||||
ci_nie_number = ci_nie_number[1:-1] if is_nie else ci_nie_number[0:-1]
|
||||
|
||||
# If number is < 7 digits we add 0 to the left
|
||||
ci_nie_number = "%07d" % int(ci_nie_number)
|
||||
|
||||
# If NIE > 7 digits is not valid
|
||||
if len(ci_nie_number) > 7:
|
||||
return False
|
||||
|
||||
verification_vector = (2, 9, 8, 7, 6, 3, 4)
|
||||
num_sum = sum(int(ci_nie_number[i]) * verification_vector[i] for i in range(7))
|
||||
|
||||
res = -num_sum % 10
|
||||
return res == verif_digit
|
||||
73
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/models/template_uy.py
Normal file
73
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/models/template_uy.py
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from odoo import models, _
|
||||
from odoo.addons.account.models.chart_template import template
|
||||
|
||||
|
||||
class AccountChartTemplate(models.AbstractModel):
|
||||
_inherit = 'account.chart.template'
|
||||
|
||||
@template('uy')
|
||||
def _get_uy_template_data(self):
|
||||
return {
|
||||
'property_account_receivable_id': 'uy_code_11300',
|
||||
'property_account_payable_id': 'uy_code_21100',
|
||||
'code_digits': '6',
|
||||
'name': _('Uruguayan Generic Chart of Accounts'),
|
||||
}
|
||||
|
||||
@template('uy', 'res.company')
|
||||
def _get_uy_res_company(self):
|
||||
return {
|
||||
self.env.company.id: {
|
||||
'account_fiscal_country_id': 'base.uy',
|
||||
'bank_account_code_prefix': '1111',
|
||||
'cash_account_code_prefix': '1112',
|
||||
'transfer_account_code_prefix': '11120',
|
||||
'account_default_pos_receivable_account_id': 'uy_code_11307',
|
||||
'income_currency_exchange_account_id': 'uy_code_4302',
|
||||
'expense_currency_exchange_account_id': 'uy_code_5302',
|
||||
'account_journal_early_pay_discount_loss_account_id': 'uy_code_5303',
|
||||
'account_journal_early_pay_discount_gain_account_id': 'uy_code_4303',
|
||||
'account_sale_tax_id': 'vat1',
|
||||
'account_purchase_tax_id': 'vat4',
|
||||
'deferred_expense_account_id': 'uy_code_11407',
|
||||
'deferred_revenue_account_id': 'uy_code_21321',
|
||||
'income_account_id': 'uy_code_4102',
|
||||
'expense_account_id': 'uy_code_5100',
|
||||
'account_stock_journal_id': 'inventory_valuation',
|
||||
'account_stock_valuation_id': 'uy_code_11704',
|
||||
},
|
||||
}
|
||||
|
||||
@template('uy', 'account.journal')
|
||||
def _get_uy_account_journal(self):
|
||||
return {
|
||||
'sale': {
|
||||
"name": _("Sales"),
|
||||
"code": "0001",
|
||||
"l10n_latam_use_documents": True,
|
||||
"refund_sequence": False,
|
||||
},
|
||||
'purchase': {
|
||||
"name": _("Purchases"),
|
||||
"code": "0002",
|
||||
"l10n_latam_use_documents": True,
|
||||
"refund_sequence": False,
|
||||
},
|
||||
}
|
||||
|
||||
def _load(self, template_code, company, install_demo, force_create=True):
|
||||
""" Set companies rut as the company identification type after install the chart of account,
|
||||
this one is the uruguayan vat """
|
||||
res = super()._load(template_code, company, install_demo, force_create)
|
||||
if template_code == 'uy':
|
||||
company.partner_id.l10n_latam_identification_type_id = self.env.ref('l10n_uy.it_rut')
|
||||
return res
|
||||
|
||||
@template('uy', 'account.account')
|
||||
def _get_uy_account_account(self):
|
||||
return {
|
||||
'uy_code_11704': {
|
||||
'account_stock_variation_id': 'uy_code_5401',
|
||||
},
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2 KiB |
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 36 KiB |
2
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/tests/__init__.py
Normal file
2
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/tests/__init__.py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
from . import test_check_vat
|
||||
from . import test_doc_types
|
||||
|
|
@ -0,0 +1,80 @@
|
|||
from odoo.exceptions import ValidationError
|
||||
from odoo.tests import tagged
|
||||
|
||||
from odoo.addons.account.tests.common import AccountTestInvoicingCommon
|
||||
|
||||
|
||||
@tagged("post_install_l10n", "post_install", "-at_install")
|
||||
class CheckUyVat(AccountTestInvoicingCommon):
|
||||
|
||||
@classmethod
|
||||
@AccountTestInvoicingCommon.setup_country('uy')
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
|
||||
@classmethod
|
||||
def _create_partner(cls, identification_type, vat):
|
||||
return cls.env["res.partner"].create({
|
||||
"name": "Uruguayan Partner",
|
||||
"l10n_latam_identification_type_id": cls.env.ref(f"l10n_uy.{identification_type}").id,
|
||||
"vat": vat,
|
||||
"country_id": cls.env.ref("base.uy").id
|
||||
})
|
||||
|
||||
def test_valid_ci(self):
|
||||
# Valid CI
|
||||
partner = self._create_partner("it_ci", "3:402.010-1")
|
||||
self.assertTrue(partner._l10n_uy_ci_nie_is_valid())
|
||||
|
||||
partner = self._create_partner("it_ci", "3 402 010 1")
|
||||
self.assertTrue(partner._l10n_uy_ci_nie_is_valid())
|
||||
|
||||
partner = self._create_partner("it_ci", "34020101")
|
||||
self.assertTrue(partner._l10n_uy_ci_nie_is_valid())
|
||||
|
||||
def test_valid_nie(self):
|
||||
partner = self._create_partner("it_nie", "93:402.010-1")
|
||||
self.assertTrue(partner._l10n_uy_ci_nie_is_valid())
|
||||
|
||||
partner = self._create_partner("it_nie", "934020101")
|
||||
self.assertTrue(partner._l10n_uy_ci_nie_is_valid())
|
||||
|
||||
partner = self._create_partner("it_nie", "93 402 010 1")
|
||||
self.assertTrue(partner._l10n_uy_ci_nie_is_valid())
|
||||
|
||||
def test_valid_rut(self):
|
||||
self._create_partner("it_rut", "215521750017")
|
||||
self._create_partner("it_rut", "21-55217500-17")
|
||||
self._create_partner("it_rut", "21 55217500 17")
|
||||
self._create_partner("it_rut", "UY215521750017")
|
||||
|
||||
def test_invalid_ci(self):
|
||||
common_msg = "The CI/NIE number.*does not seem to be valid"
|
||||
with self.assertRaisesRegex(ValidationError, common_msg, msg="not valid verification digit"):
|
||||
self._create_partner("it_ci", "3:402.010-2")
|
||||
with self.assertRaisesRegex(ValidationError, common_msg, msg="should not contain letters"):
|
||||
self._create_partner("it_ci", " ABC 3:402 asas .010-1")
|
||||
|
||||
def test_invalid_nie(self):
|
||||
common_msg = "The CI/NIE number.*does not seem to be valid"
|
||||
with self.assertRaisesRegex(ValidationError, common_msg, msg="not valid verification digit"):
|
||||
self._create_partner("it_nie", "93:402.010-2")
|
||||
with self.assertRaisesRegex(ValidationError, common_msg, msg="should not contain letters"):
|
||||
self._create_partner("it_nie", "ABC 93:402. asas 010-1")
|
||||
|
||||
def test_invalid_rut(self):
|
||||
common_msg = "The VAT number.*does not seem to be valid."
|
||||
with self.assertRaisesRegex(ValidationError, common_msg, msg="invalid number"):
|
||||
self._create_partner("it_rut", "215521750018")
|
||||
with self.assertRaisesRegex(ValidationError, common_msg, msg="do not accept dot ('.') character"):
|
||||
self._create_partner("it_rut", "21.55217500.17")
|
||||
with self.assertRaisesRegex(ValidationError, common_msg, msg="should not contain letters"):
|
||||
self._create_partner("it_rut", "2155 ABC 21750017")
|
||||
|
||||
with self.assertRaisesRegex(ValidationError, common_msg, msg="Validation not working with generic VAT id type"):
|
||||
self.env["res.partner"].create({
|
||||
"name": "Uruguayan Partner",
|
||||
"country_id": self.env.ref("base.uy").id,
|
||||
"l10n_latam_identification_type_id": self.env.ref("l10n_latam_base.it_vat").id,
|
||||
"vat": "215521750018",
|
||||
})
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
from odoo import Command
|
||||
from odoo.tests.common import tagged
|
||||
|
||||
from odoo.addons.account.tests.common import AccountTestInvoicingCommon
|
||||
|
||||
|
||||
@tagged("-at_install", "post_install", "post_install_l10n")
|
||||
class TestDocTypes(AccountTestInvoicingCommon):
|
||||
|
||||
@classmethod
|
||||
@AccountTestInvoicingCommon.setup_country('uy')
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
|
||||
service_vat_22 = cls.env["product.product"].create({
|
||||
"name": "Virtual Home Staging (VAT 22)",
|
||||
"list_price": 38.25,
|
||||
"standard_price": 45.5,
|
||||
"type": "service",
|
||||
"default_code": "VAT 22",
|
||||
})
|
||||
|
||||
cls.invoice = cls.env["account.move"].create({
|
||||
"partner_id": cls.env["res.partner"].create({"name": "test partner UY"}).id,
|
||||
"move_type": "out_invoice",
|
||||
"l10n_latam_document_type_id": cls.env.ref("l10n_uy.dc_e_inv_exp").id,
|
||||
"invoice_line_ids": [Command.create({
|
||||
"product_id": service_vat_22.id,
|
||||
"quantity": 1.0,
|
||||
"price_unit": 100.0,
|
||||
})]
|
||||
})
|
||||
cls.invoice.action_post()
|
||||
|
||||
def test_credit_note(self):
|
||||
self.assertEqual(self.invoice.l10n_latam_document_type_id.code, "121", "Not Export e-Invoice")
|
||||
|
||||
refund_wizard = self.env["account.move.reversal"]\
|
||||
.with_context({"active_ids": self.invoice.ids, "active_model": "account.move"})\
|
||||
.create({
|
||||
"reason": "Mercadería defectuosa",
|
||||
"journal_id": self.invoice.journal_id.id
|
||||
})
|
||||
res = refund_wizard.refund_moves()
|
||||
refund = self.env["account.move"].browse(res["res_id"])
|
||||
|
||||
self.assertEqual(refund.l10n_latam_document_type_id.code, "122", "Not Export e-Invoice Credit Note")
|
||||
expected_docs = ["122"] if self.env['ir.module.module']._get('l10n_uy_edi').state == 'installed' else ['122', '222']
|
||||
self.assertEqual(refund.l10n_latam_available_document_type_ids.mapped("code"), expected_docs, "Bad Domain")
|
||||
|
||||
def test_debit_note(self):
|
||||
self.assertEqual(self.invoice.l10n_latam_document_type_id.code, "121", "Not Export e-self.invoice")
|
||||
|
||||
debit_note_wizard = self.env["account.debit.note"]\
|
||||
.with_context({"active_ids": self.invoice.ids, "active_model": "account.move"})\
|
||||
.create({
|
||||
"reason": "Mercadería defectuosa",
|
||||
})
|
||||
res = debit_note_wizard.create_debit()
|
||||
debit_note = self.env["account.move"].browse(res["res_id"])
|
||||
|
||||
self.assertEqual(debit_note.l10n_latam_document_type_id.code, "123", "Not Export e-Invoice Debit Note")
|
||||
expected_docs = ["123"] if self.env['ir.module.module']._get('l10n_uy_edi').state == 'installed' else ['123', '223']
|
||||
self.assertEqual(debit_note.l10n_latam_available_document_type_ids.mapped("code"), expected_docs, "Bad Domain")
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_tax_form" model="ir.ui.view">
|
||||
<field name="name">account.tax.inherit.view.form</field>
|
||||
<field name="model">account.tax</field>
|
||||
<field name="inherit_id" ref="account.view_tax_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="tax_group_id" position="after">
|
||||
<field name="l10n_uy_tax_category" invisible="country_code != 'UY'"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
|
@ -1,12 +1,16 @@
|
|||
[project]
|
||||
name = "odoo-bringout-oca-ocb-l10n_uy"
|
||||
version = "16.0.0"
|
||||
description = "Uruguay - Accounting - Odoo addon"
|
||||
description = "Uruguay - Accounting -
|
||||
Odoo addon
|
||||
"
|
||||
authors = [
|
||||
{ name = "Ernad Husremovic", email = "hernad@bring.out.ba" }
|
||||
]
|
||||
dependencies = [
|
||||
"odoo-bringout-oca-ocb-account>=16.0.0",
|
||||
"odoo-bringout-oca-ocb-account>=19.0.0",
|
||||
"odoo-bringout-oca-ocb-l10n_latam_invoice_document>=19.0.0",
|
||||
"odoo-bringout-oca-ocb-l10n_latam_base>=19.0.0",
|
||||
"requests>=2.25.1"
|
||||
]
|
||||
readme = "README.md"
|
||||
|
|
@ -16,7 +20,7 @@ classifiers = [
|
|||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Topic :: Office/Business",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue