From 2ad414dec6b1e2de9f148e2beab529dc2eb96f27 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_demo: data demo para Uruguay y [REF] l10n_uy_edi: rename journal to avoid problem with alias X-original-commit: 0a166db X-original-commit: 06b25f3 --- l10n_uy_account/__manifest__.py | 6 + .../demo/account_customer_invoice_demo.xml | 187 +++++++++++ .../demo/account_customer_refund_demo.xml | 46 +++ l10n_uy_account/demo/account_journal_demo.xml | 14 + .../demo/account_supplier_invoice_demo.xml | 307 ++++++++++++++++++ .../demo/account_supplier_refund_demo.xml | 38 +++ .../demo/res_currency_rate_demo.xml | 11 + l10n_uy_account/demo/res_partner_demo.xml | 29 ++ .../migrations/16.0.1.1.0/mig_data.xml | 24 -- .../migrations/16.0.1.1.0/post-migration.py | 11 - l10n_uy_edi/demo/account_journal_demo.xml | 2 +- 11 files changed, 639 insertions(+), 36 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 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/demo/account_customer_invoice_demo.xml b/l10n_uy_account/demo/account_customer_invoice_demo.xml new file mode 100644 index 00000000..5f06cf9c --- /dev/null +++ b/l10n_uy_account/demo/account_customer_invoice_demo.xml @@ -0,0 +1,187 @@ + + + + + + + + + + + out_invoice + + + + + + + + + + + out_invoice + + + + + + + + + + + + + out_invoice + + + + + + + + + + + + + + + + out_invoice + + + + + + + + + + + out_invoice + + + + + + + + + + + + out_invoice + + + + + + + + + + + out_invoice + + + + + + + + + + + out_invoice + + + + + + + + + + + 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..680fa5f1 --- /dev/null +++ b/l10n_uy_account/demo/account_supplier_invoice_demo.xml @@ -0,0 +1,307 @@ + + + + + + + + + + + in_invoice + + + + 00000008 + + + + + + + + + + + + + + + + + + + + + + + + + in_invoice + + + 00000009 + + + + + + + + + + + + + + + + + + + + in_invoice + + + 00000010 + + + + + + + + + + + + + + in_invoice + + + 00000011 + + + + + + + + + + + + + in_invoice + + + 00000012 + + + + + + + + + + + + + + + + + + + in_invoice + + + 00000013 + + + + + + + + + + + + + + + + + + + in_invoice + + + + 00000014 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + in_invoice + + + + 00000015 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + in_invoice + + + + 00000016 + + + + + + + + + + + + + + + + + + + + + + + + + + + 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..598ddaad --- /dev/null +++ b/l10n_uy_account/demo/account_supplier_refund_demo.xml @@ -0,0 +1,38 @@ + + + + + + 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..28ab820a 100644 --- a/l10n_uy_account/demo/res_partner_demo.xml +++ b/l10n_uy_account/demo/res_partner_demo.xml @@ -11,4 +11,33 @@ 2 Consumidor Final Uruguayo + + 5 Empresa Prueba + + 219000090011 + + + + 6 Empresa Prueba + + 219999820013 + + + + + Foreign Inc (partner extranjero demo para uruguay) + + 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/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