From a175bf27d3d6d2482b2a5c5523db425789330456 Mon Sep 17 00:00:00 2001
From: fw-bot-adhoc <>
Date: Mon, 15 May 2023 21:41:20 +0000
Subject: [PATCH] [ADD] l10n_uy_account, l10n_uy_edi: demo and afp
Fixes to make it work in 16
X-original-commit: 0a166db
X-original-commit: 06b25f3
---
l10n_uy_account/__manifest__.py | 6 +
.../account_fiscal_position_template_data.xml | 42 ++--
l10n_uy_account/data/res_partner_data.xml | 2 +
.../demo/account_customer_invoice_demo.xml | 192 +++++++++++++++++
.../demo/account_customer_refund_demo.xml | 46 ++++
l10n_uy_account/demo/account_journal_demo.xml | 14 ++
.../demo/account_supplier_invoice_demo.xml | 196 ++++++++++++++++++
.../demo/account_supplier_refund_demo.xml | 37 ++++
.../demo/res_currency_rate_demo.xml | 11 +
l10n_uy_account/demo/res_partner_demo.xml | 41 +++-
.../migrations/16.0.1.1.0/mig_data.xml | 24 ---
.../migrations/16.0.1.1.0/post-migration.py | 11 -
l10n_uy_edi/__manifest__.py | 1 -
l10n_uy_edi/demo/account_journal_demo.xml | 2 +-
l10n_uy_edi/demo/res_partner_demo.xml | 16 --
15 files changed, 568 insertions(+), 73 deletions(-)
create mode 100644 l10n_uy_account/demo/account_customer_invoice_demo.xml
create mode 100644 l10n_uy_account/demo/account_customer_refund_demo.xml
create mode 100644 l10n_uy_account/demo/account_journal_demo.xml
create mode 100644 l10n_uy_account/demo/account_supplier_invoice_demo.xml
create mode 100644 l10n_uy_account/demo/account_supplier_refund_demo.xml
create mode 100644 l10n_uy_account/demo/res_currency_rate_demo.xml
delete mode 100644 l10n_uy_account/migrations/16.0.1.1.0/mig_data.xml
delete mode 100644 l10n_uy_account/migrations/16.0.1.1.0/post-migration.py
delete mode 100644 l10n_uy_edi/demo/res_partner_demo.xml
diff --git a/l10n_uy_account/__manifest__.py b/l10n_uy_account/__manifest__.py
index 62e51ba3..bbbc865a 100644
--- a/l10n_uy_account/__manifest__.py
+++ b/l10n_uy_account/__manifest__.py
@@ -40,8 +40,14 @@
],
'demo': [
'demo/res_company_demo.xml',
+ 'demo/account_journal_demo.xml',
+ 'demo/res_currency_rate_demo.xml',
'demo/account_chart_template_demo.xml',
'demo/res_partner_demo.xml',
+ 'demo/account_customer_invoice_demo.xml',
+ 'demo/account_customer_refund_demo.xml',
+ 'demo/account_supplier_invoice_demo.xml',
+ 'demo/account_supplier_refund_demo.xml',
'demo/l10n_uy_adenda_demo.xml',
# restore
'demo/res_users_demo.xml',
diff --git a/l10n_uy_account/data/account_fiscal_position_template_data.xml b/l10n_uy_account/data/account_fiscal_position_template_data.xml
index 5ad76216..a458251c 100644
--- a/l10n_uy_account/data/account_fiscal_position_template_data.xml
+++ b/l10n_uy_account/data/account_fiscal_position_template_data.xml
@@ -1,9 +1,8 @@
-
- Exportaciones a la Zona Franca
+ Zona Franca
@@ -16,35 +15,44 @@
+
+
+
+
+
+
+
+
+
+
- Exportaciones al exterior
+ Exportación
+ True
-
-
-
-
- Operaciones Exentas
-
+
+
+
-
-
-
-
+
+
+
-
-
-
-
+
+
+ Local - Uruguay
+ True
+
+
diff --git a/l10n_uy_account/data/res_partner_data.xml b/l10n_uy_account/data/res_partner_data.xml
index ad6fe21f..c77fbb67 100644
--- a/l10n_uy_account/data/res_partner_data.xml
+++ b/l10n_uy_account/data/res_partner_data.xml
@@ -5,11 +5,13 @@
DGI
+
Consumidor Final Uruguayo
+
diff --git a/l10n_uy_account/demo/account_customer_invoice_demo.xml b/l10n_uy_account/demo/account_customer_invoice_demo.xml
new file mode 100644
index 00000000..008477af
--- /dev/null
+++ b/l10n_uy_account/demo/account_customer_invoice_demo.xml
@@ -0,0 +1,192 @@
+
+
+
+
+ demo_invoice_1
+
+
+
+
+ out_invoice
+
+
+
+
+
+
+ demo_invoice_2
+
+
+
+
+ out_invoice
+
+
+
+
+
+
+
+ demo_invoice_3
+
+
+
+
+ out_invoice
+
+
+
+
+
+
+
+
+
+
+
+ demo_invoice_4
+
+
+
+ out_invoice
+
+
+
+
+
+
+
+ demo_invoice_5
+
+
+
+ out_invoice
+
+
+
+
+
+
+
+ demo_invoice_6
+
+
+
+
+ out_invoice
+
+
+
+
+
+
+ demo_invoice_7
+
+
+
+
+ out_invoice
+
+
+
+
+
+
+ demo_invoice_8
+
+
+
+
+ out_invoice
+
+
+
+
+
+
+ demo_invoice_9
+
+
+
+
+ out_invoice
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/l10n_uy_account/demo/account_customer_refund_demo.xml b/l10n_uy_account/demo/account_customer_refund_demo.xml
new file mode 100644
index 00000000..a14ea8e6
--- /dev/null
+++ b/l10n_uy_account/demo/account_customer_refund_demo.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+ Mercadería defectuosa
+ cancel
+
+
+
+
+
+
+
+ Venta cancelada
+ cancel
+
+
+
+
+
+
+
+ Venta cancelada
+ refund
+
+
+
+
+
+
+
+ Venta cancelada
+ cancel
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/l10n_uy_account/demo/account_journal_demo.xml b/l10n_uy_account/demo/account_journal_demo.xml
new file mode 100644
index 00000000..9a9a9991
--- /dev/null
+++ b/l10n_uy_account/demo/account_journal_demo.xml
@@ -0,0 +1,14 @@
+
+
+
+
+ Testing CFE UY
+
+ sale
+ MAN
+
+ manual
+ 1
+
+
+
diff --git a/l10n_uy_account/demo/account_supplier_invoice_demo.xml b/l10n_uy_account/demo/account_supplier_invoice_demo.xml
new file mode 100644
index 00000000..fbee7c46
--- /dev/null
+++ b/l10n_uy_account/demo/account_supplier_invoice_demo.xml
@@ -0,0 +1,196 @@
+
+
+
+
+ demo_sup_invoice_1
+
+
+
+ in_invoice
+
+
+
+ 00000008
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ demo_sup_invoice_2
+
+
+
+ in_invoice
+
+
+ 00000009
+
+
+
+
+
+ demo_sup_invoice_3
+
+
+
+ in_invoice
+
+
+ 00000010
+
+
+
+
+ demo_sup_invoice_4
+
+
+
+ in_invoice
+
+
+ 00000011
+
+
+
+
+ demo_sup_invoice_5
+
+
+
+ in_invoice
+
+
+ 00000012
+
+
+
+
+
+ demo_sup_invoice_6
+
+
+
+ in_invoice
+
+
+ 00000013
+
+
+
+
+
+ demo_sup_invoice_7
+
+
+
+ in_invoice
+
+
+
+ 00000014
+
+
+
+
+
+
+
+
+
+ demo_sup_invoice_8
+
+
+
+ in_invoice
+
+
+
+ 00000015
+
+
+
+
+
+
+
+
+ demo_sup_invoice_9
+
+
+
+ in_invoice
+
+
+
+ 00000016
+
+
+
+ demo_sup_invoice_10
+
+
+
+ in_invoice
+
+
+
+ 00000017
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/l10n_uy_account/demo/account_supplier_refund_demo.xml b/l10n_uy_account/demo/account_supplier_refund_demo.xml
new file mode 100644
index 00000000..835b23d2
--- /dev/null
+++ b/l10n_uy_account/demo/account_supplier_refund_demo.xml
@@ -0,0 +1,37 @@
+
+
+
+
+ Mercadería defectuosa
+ refund
+ 01234567
+
+
+
+
+
+
+
+
+ Venta cancelada
+ cancel
+ 01234568
+
+
+
+
+
+
+
+
+ Venta cancelada
+ cancel
+ 01234569
+
+
+
+
+
+
+
+
diff --git a/l10n_uy_account/demo/res_currency_rate_demo.xml b/l10n_uy_account/demo/res_currency_rate_demo.xml
new file mode 100644
index 00000000..31e1b913
--- /dev/null
+++ b/l10n_uy_account/demo/res_currency_rate_demo.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ 0.026
+
+
+
+
+
diff --git a/l10n_uy_account/demo/res_partner_demo.xml b/l10n_uy_account/demo/res_partner_demo.xml
index cb9165d8..781ffa6c 100644
--- a/l10n_uy_account/demo/res_partner_demo.xml
+++ b/l10n_uy_account/demo/res_partner_demo.xml
@@ -2,13 +2,48 @@
- 1 IEB Internacional
+ Company (UY)
+
+ 218296790015
+
+
+
+
+ IEB Internacional
218435730016
+
+
+
+
+ MELI URUGUAY S.R.L.
+
+ 216748870015
+
+
+
+
+ CORREO URUGUAYO
+
+ 214130990011
+
-
- 2 Consumidor Final Uruguayo
+
+
+ Foreign Inc
+
+ 1
+ 7841 Red Road
+ San Francisco
+
+ 95380
+
+ foreing@example.com
+ (123)-456-7890
+ http://www.foreign-inc.com
+
+ 93:402.010-1
diff --git a/l10n_uy_account/migrations/16.0.1.1.0/mig_data.xml b/l10n_uy_account/migrations/16.0.1.1.0/mig_data.xml
deleted file mode 100644
index 09f33416..00000000
--- a/l10n_uy_account/migrations/16.0.1.1.0/mig_data.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
- VAT 22%
- vat_22
-
-
-
-
- VAT 10%
- vat_10
-
-
-
-
- VAT Exempt
- vat_exempt
-
-
-
-
diff --git a/l10n_uy_account/migrations/16.0.1.1.0/post-migration.py b/l10n_uy_account/migrations/16.0.1.1.0/post-migration.py
deleted file mode 100644
index 91480cd5..00000000
--- a/l10n_uy_account/migrations/16.0.1.1.0/post-migration.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from openupgradelib import openupgrade
-import logging
-
-_logger = logging.getLogger(__name__)
-
-
-@openupgrade.migrate()
-def migrate(env, version):
- _logger.info('Forzando actualizar grupos de impuesto (porque tienen noupdate=1)')
- openupgrade.load_data(env.cr, 'l10n_uy_account', 'migrations/16.0.1.1.0/mig_data.xml')
-
diff --git a/l10n_uy_edi/__manifest__.py b/l10n_uy_edi/__manifest__.py
index 61f7d57d..3e0fccdd 100644
--- a/l10n_uy_edi/__manifest__.py
+++ b/l10n_uy_edi/__manifest__.py
@@ -32,7 +32,6 @@
'security/ir.model.access.csv',
],
'demo': [
- 'demo/res_partner_demo.xml',
'demo/res_company_demo.xml',
'demo/account_journal_demo.xml',
],
diff --git a/l10n_uy_edi/demo/account_journal_demo.xml b/l10n_uy_edi/demo/account_journal_demo.xml
index 93ce7892..ecb55aab 100644
--- a/l10n_uy_edi/demo/account_journal_demo.xml
+++ b/l10n_uy_edi/demo/account_journal_demo.xml
@@ -2,7 +2,7 @@
- Testing CFE UY
+ Testing CFE UY (Electronic)
sale
CFE
diff --git a/l10n_uy_edi/demo/res_partner_demo.xml b/l10n_uy_edi/demo/res_partner_demo.xml
deleted file mode 100644
index 36b9bf35..00000000
--- a/l10n_uy_edi/demo/res_partner_demo.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
- 3 Empresa Prueba
-
- 219000090011
-
-
-
- 4 Empresa Prueba
-
- 219999820013
-
-
-