From dc8fe9a321699ff7b37e91d6d182a9bad87bc5d4 Mon Sep 17 00:00:00 2001 From: Carlos Dauden Date: Tue, 15 May 2018 21:20:55 +0200 Subject: [PATCH 01/16] [ADD] account_multicompany_easy_creation: New module (#87) --- account_multicompany_easy_creation/README.rst | 61 +++ .../__init__.py | 1 + .../__manifest__.py | 19 + .../account_multicompany_easy_creation.pot | 304 +++++++++++++++ account_multicompany_easy_creation/i18n/es.po | 335 ++++++++++++++++ .../static/description/icon.png | Bin 0 -> 9455 bytes .../wizards/__init__.py | 3 + .../wizards/multicompany_easy_creation.py | 358 ++++++++++++++++++ .../wizards/multicompany_easy_creation.xml | 108 ++++++ 9 files changed, 1189 insertions(+) create mode 100644 account_multicompany_easy_creation/README.rst create mode 100644 account_multicompany_easy_creation/__init__.py create mode 100644 account_multicompany_easy_creation/__manifest__.py create mode 100644 account_multicompany_easy_creation/i18n/account_multicompany_easy_creation.pot create mode 100644 account_multicompany_easy_creation/i18n/es.po create mode 100644 account_multicompany_easy_creation/static/description/icon.png create mode 100644 account_multicompany_easy_creation/wizards/__init__.py create mode 100644 account_multicompany_easy_creation/wizards/multicompany_easy_creation.py create mode 100644 account_multicompany_easy_creation/wizards/multicompany_easy_creation.xml diff --git a/account_multicompany_easy_creation/README.rst b/account_multicompany_easy_creation/README.rst new file mode 100644 index 00000000000..3e1464adc79 --- /dev/null +++ b/account_multicompany_easy_creation/README.rst @@ -0,0 +1,61 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png + :target: https://www.gnu.org/licenses/agpl + :alt: License: AGPL-3 + +============================= +Quick Company Creation Wizard +============================= + +This module adds a wizard to easily create companies. + +Usage +===== + +To use this module, you need to: + +#. Go to Settings > Users and companies > Quick Company Creation +#. Fill fields and accept + + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/133/11.0 + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +check there if your issue has already been reported. If you spotted it first, +help us smash it by providing detailed and welcomed feedback. + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* `Tecnativa `_: + * Carlos Dauden + +Do not contact contributors directly about support or help with technical issues. + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/account_multicompany_easy_creation/__init__.py b/account_multicompany_easy_creation/__init__.py new file mode 100644 index 00000000000..5cb1c49143f --- /dev/null +++ b/account_multicompany_easy_creation/__init__.py @@ -0,0 +1 @@ +from . import wizards diff --git a/account_multicompany_easy_creation/__manifest__.py b/account_multicompany_easy_creation/__manifest__.py new file mode 100644 index 00000000000..c638960730a --- /dev/null +++ b/account_multicompany_easy_creation/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2018 Carlos Dauden - Tecnativa +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +{ + 'name': 'Quick Company Creation Wizard', + 'summary': 'This module adds a wizard to create companies easily', + 'version': '11.0.1.0.0', + 'category': 'Multicompany', + 'website': 'https://github.com/OCA/multi-company' + 'account_multicompany_easy_creation', + 'author': 'Tecnativa, Odoo Community Association (OCA)', + 'license': 'AGPL-3', + 'installable': True, + 'depends': [ + 'account', + ], + 'data': [ + 'wizards/multicompany_easy_creation.xml', + ], +} diff --git a/account_multicompany_easy_creation/i18n/account_multicompany_easy_creation.pot b/account_multicompany_easy_creation/i18n/account_multicompany_easy_creation.pot new file mode 100644 index 00000000000..3d7107bd2bb --- /dev/null +++ b/account_multicompany_easy_creation/i18n/account_multicompany_easy_creation.pot @@ -0,0 +1,304 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_multicompany_easy_creation +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \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: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Accept" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Account" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Accounts" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_bank_ids +msgid "Bank accounts to create" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Banks" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Cancel" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_chart_template_id +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Chart Template" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_new_company_id +msgid "Company" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_name +msgid "Company Name" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.actions.act_window,name:account_multicompany_easy_creation.wizard_multicompany_easy_creation_action +#: model:ir.ui.menu,name:account_multicompany_easy_creation.multicompany_easy_creation_menu +msgid "Company easy creation" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_create_uid +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_create_uid +msgid "Created by" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_create_date +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_create_date +msgid "Created on" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_currency_id +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Currency" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_account_expense_categ_id +msgid "Default Category Expense Account" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_account_income_categ_id +msgid "Default Category Income Account" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_account_payable_id +msgid "Default Payable Account" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_default_purchase_tax_id +msgid "Default Purchase Tax" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_account_receivable_id +msgid "Default Receivable Account" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_default_sale_tax_id +msgid "Default Sales Tax" +msgstr "" + +#. module: account_multicompany_easy_creation +#: code:addons/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py:208 +#, python-format +msgid "Description not set in tax template: '%s'" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_display_name +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_display_name +msgid "Display Name" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Fill company data" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_force_purchase_tax +msgid "Force Purchase Tax In All Products" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_force_sale_tax +msgid "Force Sale Tax In All Products" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_fiscal_position +msgid "Go over partner fiscal positions in actual company to match and set equivalent fiscal positions in the new company." +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_product_tax +msgid "Go over product taxes in actual company to match and set equivalent taxes in then new company." +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_specific_account +msgid "Go over specific accounts in actual company to match and set equivalent taxes in the new company.\n" +"Applies to products, categories, partners, ..." +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_id +msgid "ID" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz___last_update +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz___last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_write_uid +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_write_uid +msgid "Last Updated by" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_write_date +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_write_date +msgid "Last Updated on" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_accounts_code_digits +msgid "Number of digits in an account code" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Sequences" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_sequence_ids +msgid "Sequences to create" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_force_purchase_tax +msgid "Set default purchase tax to all products.\n" +"If smart search product tax is also enabled matches founded will overwrite default taxes, but not founded will remain" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_force_sale_tax +msgid "Set default sales tax to all products.\n" +"If smart search product tax is also enabled matches founded will overwrite default taxes, but not founded will remain" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_fiscal_position +msgid "Smart Search Fiscal Position" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_product_tax +msgid "Smart Search Product Tax" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_specific_account +msgid "Smart Search Specific Account" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Smart search to set product taxes" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Smart search to set specific accounts in products, categories, partners, ..." +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Smart search to set specific fiscal position in partners" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Taxes" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_update_default_accounts +msgid "Update Default Accounts" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_update_default_taxes +msgid "Update Default Taxes" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Update default accounts" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_update_default_accounts +msgid "Update default accounts defined in account chart template" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Update default taxes" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_update_default_taxes +msgid "Update default taxes applied to local transactions" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Users" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_user_ids +msgid "Users allowed" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_wizard_id +msgid "Wizard" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model,name:account_multicompany_easy_creation.model_account_multicompany_bank_wiz +msgid "account.multicompany.bank.wiz" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model,name:account_multicompany_easy_creation.model_account_multicompany_easy_creation_wiz +msgid "account.multicompany.easy.creation.wiz" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "or" +msgstr "" + diff --git a/account_multicompany_easy_creation/i18n/es.po b/account_multicompany_easy_creation/i18n/es.po new file mode 100644 index 00000000000..31ad16736c3 --- /dev/null +++ b/account_multicompany_easy_creation/i18n/es.po @@ -0,0 +1,335 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_multicompany_easy_creation +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-06 14:43+0100\n" +"PO-Revision-Date: 2019-02-04 17:50+0000\n" +"Last-Translator: Marta Vázquez Rodríguez \n" +"Language-Team: \n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.4\n" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Accept" +msgstr "Aceptar" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Account" +msgstr "Cuenta" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Accounts" +msgstr "Cuentas" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_bank_ids +msgid "Bank accounts to create" +msgstr "Cuentas bancarias a crear" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Banks" +msgstr "Bancos" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Cancel" +msgstr "Cancelar" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_chart_template_id +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Chart Template" +msgstr "Plantilla plan contable" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_new_company_id +msgid "Company" +msgstr "Compañía" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_name +msgid "Company Name" +msgstr "Nombre de la compañía" + +#. module: account_multicompany_easy_creation +#: model:ir.actions.act_window,name:account_multicompany_easy_creation.wizard_multicompany_easy_creation_action +#: model:ir.ui.menu,name:account_multicompany_easy_creation.multicompany_easy_creation_menu +msgid "Company easy creation" +msgstr "Creación sencilla de compañía" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_create_uid +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_create_date +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_create_date +msgid "Created on" +msgstr "Creado el" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_currency_id +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Currency" +msgstr "Moneda" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_account_expense_categ_id +msgid "Default Category Expense Account" +msgstr "Cuenta por defecto de gastos en categorías" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_account_income_categ_id +msgid "Default Category Income Account" +msgstr "Cuenta por defecto de ingresos en categorías" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_account_payable_id +msgid "Default Payable Account" +msgstr "Cuenta por defecto a pagar" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_default_purchase_tax_id +msgid "Default Purchase Tax" +msgstr "Impuesto por defecto en compras" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_account_receivable_id +msgid "Default Receivable Account" +msgstr "Cuenta por defecto a cobrar" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_default_sale_tax_id +msgid "Default Sales Tax" +msgstr "Impuesto por defecto en ventas" + +#. module: account_multicompany_easy_creation +#: code:addons/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py:208 +#, python-format +msgid "Description not set in tax template: '%s'" +msgstr "Descripción no establecida en plantilla del impuesto: '%s'" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_display_name +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_display_name +msgid "Display Name" +msgstr "Nombre a mostrar" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Fill company data" +msgstr "Rellenar datos de la compañía" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_force_purchase_tax +msgid "Force Purchase Tax In All Products" +msgstr "Forzar impuesto de compra en todos los productos" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_force_sale_tax +msgid "Force Sale Tax In All Products" +msgstr "Forzar impuesto de venta en todos los productos" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_fiscal_position +msgid "" +"Go over partner fiscal positions in actual company to match and set " +"equivalent fiscal positions in the new company." +msgstr "" +"Revisar posiciones fiscales de los contactos en la compañía actual buscar " +"para establecer la posición fiscal equivalente en la nueva compañía." + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_product_tax +msgid "" +"Go over product taxes in actual company to match and set equivalent taxes in " +"then new company." +msgstr "" +"Revisar impuestos de los productos en la compañía actual buscar para " +"establecer los impuestos equivalentes en la nueva compañía." + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_specific_account +msgid "" +"Go over specific accounts in actual company to match and set equivalent " +"taxes in the new company.\n" +"Applies to products, categories, partners, ..." +msgstr "" +"Revisar las cuentas específicas en la compañía actual para buscar y " +"establecer las cuentas equivalentes en la nueva compañía.\n" +"Se aplica a productos, categorías, contactos, ..." + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_id +msgid "ID" +msgstr "ID (identificación)" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz___last_update +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz___last_update +msgid "Last Modified on" +msgstr "Última modificación el" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_write_uid +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_write_uid +msgid "Last Updated by" +msgstr "Última actualización por" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_write_date +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_write_date +msgid "Last Updated on" +msgstr "Última actualización el" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_accounts_code_digits +msgid "Number of digits in an account code" +msgstr "Número de dígitos en un código de cuenta" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Sequences" +msgstr "Secuencias" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_sequence_ids +msgid "Sequences to create" +msgstr "Secuencias a crear" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_force_purchase_tax +msgid "" +"Set default purchase tax to all products.\n" +"If smart search product tax is also enabled matches founded will overwrite " +"default taxes, but not founded will remain" +msgstr "" +"Establecer impuesto de compras por defecto a todos los productos.\n" +"Si la búsqueda inteligente de impuesto en producto está también activada sus " +"coincidencias sobreescribirán los impuestos por defecto, pero los se " +"conservará el impuesto por defecto cuando no se encuentren coincidencias" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_force_sale_tax +msgid "" +"Set default sales tax to all products.\n" +"If smart search product tax is also enabled matches founded will overwrite " +"default taxes, but not founded will remain" +msgstr "" +"Establecer impuesto de ventas por defecto a todos los productos.\n" +"Si la búsqueda inteligente de impuesto en producto está también activada sus " +"coincidencias sobreescribirán los impuestos por defecto, pero los se " +"conservará el impuesto por defecto cuando no se encuentren coincidencias" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_fiscal_position +msgid "Smart Search Fiscal Position" +msgstr "Búsqueda inteligente de posición fiscal" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_product_tax +msgid "Smart Search Product Tax" +msgstr "Búsqueda inteligente de impuesto de producto" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_specific_account +msgid "Smart Search Specific Account" +msgstr "Búsqueda inteligente cuenta específica" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Smart search to set product taxes" +msgstr "Búsqueda inteligente para establecer impuestos en productos" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "" +"Smart search to set specific accounts in products, categories, partners, ..." +msgstr "" +"Búsqueda inteligente para establecer cuentas específicas en productos, " +"categorías, contactos, ..." + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Smart search to set specific fiscal position in partners" +msgstr "Búsqueda inteligente para establecer posición fiscal en contactos" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Taxes" +msgstr "Impuestos" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_update_default_accounts +msgid "Update Default Accounts" +msgstr "Actualizar cuentas por defecto" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_update_default_taxes +msgid "Update Default Taxes" +msgstr "Actualizar impuestos por defecto" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Update default accounts" +msgstr "Actualizar cuentas por defecto" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_update_default_accounts +msgid "Update default accounts defined in account chart template" +msgstr "Actualizar cuentas por defecto definidas en el plan contable" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Update default taxes" +msgstr "Actualizar impuestos por defecto" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_update_default_taxes +msgid "Update default taxes applied to local transactions" +msgstr "Actualizar impuestos por defecto aplicados a transacciones locales" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "Users" +msgstr "Usuarios" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_user_ids +msgid "Users allowed" +msgstr "Usuarios con permiso" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_wizard_id +msgid "Wizard" +msgstr "Asistente" + +#. module: account_multicompany_easy_creation +#: model:ir.model,name:account_multicompany_easy_creation.model_account_multicompany_bank_wiz +msgid "account.multicompany.bank.wiz" +msgstr "'account.multicompany.bank.wiz'" + +#. module: account_multicompany_easy_creation +#: model:ir.model,name:account_multicompany_easy_creation.model_account_multicompany_easy_creation_wiz +msgid "account.multicompany.easy.creation.wiz" +msgstr "'account.multicompany.easy.creation.wiz'" + +#. module: account_multicompany_easy_creation +#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +msgid "or" +msgstr "o" diff --git a/account_multicompany_easy_creation/static/description/icon.png b/account_multicompany_easy_creation/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 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 z 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 Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/account_multicompany_easy_creation/wizards/__init__.py b/account_multicompany_easy_creation/wizards/__init__.py new file mode 100644 index 00000000000..45e6cfcdc8a --- /dev/null +++ b/account_multicompany_easy_creation/wizards/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import multicompany_easy_creation diff --git a/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py b/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py new file mode 100644 index 00000000000..290b2621b0a --- /dev/null +++ b/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py @@ -0,0 +1,358 @@ +# Copyright 2018 Carlos Dauden - Tecnativa +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import _, fields, models +from odoo.exceptions import ValidationError +from odoo.tools import ormcache +from odoo.tools.safe_eval import safe_eval + + +class AccountMulticompanyEasyCreationWiz(models.TransientModel): + _name = 'account.multicompany.easy.creation.wiz' + + def _default_sequence_ids(self): + exclude_seq_list = self.env['ir.config_parameter'].get_param( + 'account_multicompany_easy_creation.exclude_sequence_list', + [False, 'aeat.sequence.type']) + if not isinstance(exclude_seq_list, list): + exclude_seq_list = safe_eval(exclude_seq_list) + return self.env['ir.sequence'].search([ + ('company_id', '=', self.env.user.company_id.id), + ('code', 'not in', exclude_seq_list), + ]) + + name = fields.Char( + string="Company Name", + required=True, + ) + currency_id = fields.Many2one( + comodel_name='res.currency', + string='Currency', + required=True, + default=lambda s: s.env.user.company_id.currency_id, + ) + chart_template_id = fields.Many2one( + comodel_name='account.chart.template', + string='Chart Template', + ) + accounts_code_digits = fields.Integer( + string='Number of digits in an account code', + default=lambda s: s.env.user.company_id.accounts_code_digits, + ) + bank_ids = fields.One2many( + comodel_name='account.multicompany.bank.wiz', + inverse_name='wizard_id', + string='Bank accounts to create', + ) + user_ids = fields.Many2many( + comodel_name='res.users', + string='Users allowed', + domain=[('share', '=', False)], + ) + sequence_ids = fields.Many2many( + comodel_name='ir.sequence', + string='Sequences to create', + default=lambda s: s._default_sequence_ids(), + ) + new_company_id = fields.Many2one( + comodel_name='res.company', + string='Company', + ) + # TAXES + smart_search_product_tax = fields.Boolean( + default=True, + help='Go over product taxes in actual company to match and set ' + 'equivalent taxes in then new company.', + ) + update_default_taxes = fields.Boolean( + help='Update default taxes applied to local transactions', + ) + default_sale_tax_id = fields.Many2one( + comodel_name='account.tax.template', + string='Default Sales Tax', + ) + force_sale_tax = fields.Boolean( + string='Force Sale Tax In All Products', + help='Set default sales tax to all products.\n' + 'If smart search product tax is also enabled matches founded ' + 'will overwrite default taxes, but not founded will remain', + ) + default_purchase_tax_id = fields.Many2one( + comodel_name='account.tax.template', + string='Default Purchase Tax', + ) + force_purchase_tax = fields.Boolean( + string='Force Purchase Tax In All Products', + help='Set default purchase tax to all products.\n' + 'If smart search product tax is also enabled matches founded ' + 'will overwrite default taxes, but not founded will remain', + ) + # ACCOUNTS + smart_search_specific_account = fields.Boolean( + default=True, + help='Go over specific accounts in actual company to match and set ' + 'equivalent taxes in the new company.\n' + 'Applies to products, categories, partners, ...', + ) + smart_search_fiscal_position = fields.Boolean( + default=True, + help='Go over partner fiscal positions in actual company to match ' + 'and set equivalent fiscal positions in the new company.', + ) + update_default_accounts = fields.Boolean( + help='Update default accounts defined in account chart template', + ) + account_receivable_id = fields.Many2one( + comodel_name='account.account.template', + string='Default Receivable Account', + ) + account_payable_id = fields.Many2one( + comodel_name='account.account.template', + string='Default Payable Account', + ) + account_income_categ_id = fields.Many2one( + comodel_name='account.account.template', + string='Default Category Income Account', + ) + account_expense_categ_id = fields.Many2one( + comodel_name='account.account.template', + string='Default Category Expense Account', + ) + + def install_chart_account(self): + """ install a chart of accounts for the given company """ + wizard = self.env['wizard.multi.charts.accounts'].create({ + 'company_id': self.new_company_id.id, + 'chart_template_id': self.chart_template_id.id, + 'transfer_account_id': + self.chart_template_id.transfer_account_id.id, + 'code_digits': self.accounts_code_digits or 6, + 'complete_tax_set': self.chart_template_id.complete_tax_set, + 'currency_id': self.currency_id.id, + 'bank_account_code_prefix': + self.chart_template_id.bank_account_code_prefix, + 'cash_account_code_prefix': + self.chart_template_id.cash_account_code_prefix, + }) + wizard.onchange_chart_template_id() + wizard.sudo().execute() + + def create_bank_journals(self): + AccountJournal = self.env['account.journal'].sudo() + bank_journals = AccountJournal.search([ + ('type', '=', 'bank'), + ('company_id', '=', self.new_company_id.id), + ]) + vals = { + 'type': 'bank', + 'company_id': self.new_company_id.id, + } + for i, bank in enumerate(self.bank_ids): + vals.update({ + 'name': bank.acc_number, + 'bank_acc_number': bank.acc_number, + }) + if i < len(bank_journals): + bank_journals[i].update(vals) + else: + vals.update({ + 'code': False, + 'sequence_id': False, + 'default_debit_account_id': False, + 'default_credit_account_id': False, + }) + AccountJournal.create(vals) + + def create_sequences(self): + for sequence in self.sudo().sequence_ids: + sequence.copy({ + 'company_id': self.new_company_id.id, + }) + + def create_company(self): + self.new_company_id = self.env['res.company'].create({ + 'name': self.name, + 'user_ids': [(6, 0, self.user_ids.ids)], + 'chart_template_id': self.chart_template_id.id, + }) + self.install_chart_account() + self.create_bank_journals() + self.create_sequences() + + # TODO: Cache don't work + @ormcache('self.id', 'company_id', 'match_tax_ids') + def taxes_by_company(self, company_id, match_tax_ids): + AccountTax = self.env['account.tax'].sudo() + taxes_ids = [] + for tax in AccountTax.browse(match_tax_ids): + taxes_ids.extend(AccountTax.search([ + ('description', '=', tax.description), + ('company_id', '=', company_id) + ]).ids) + return taxes_ids + + def update_product_taxes(self, product, taxes_field, company_from): + product_taxes = product[taxes_field].filtered( + lambda tax: tax.company_id == company_from) + tax_ids = ( + product_taxes and + self.taxes_by_company(self.new_company_id.id, product_taxes.ids)) + if tax_ids: + product.update({taxes_field: [(4, tax_id) for tax_id in tax_ids]}) + return True + return False + + def match_tax(self, tax_template): + if not tax_template.description: + raise ValidationError( + _("Description not set in tax template: '%s'") % + tax_template.name + ) + return self.sudo().env['account.tax'].search([ + ('company_id', '=', self.new_company_id.id), + ('description', '=', tax_template.description), + ], limit=1) + + def set_product_taxes(self): + user_company = self.env.user.company_id + products = self.env['product.product'].sudo().search([]) + updated_sale = updated_purchase = products.browse() + if self.smart_search_product_tax: + for product in products: + if self.update_product_taxes( + product, 'taxes_id', user_company): + updated_sale |= product + if self.update_default_taxes and self.force_sale_tax: + (products - updated_sale).update({ + 'taxes_id': [(4, self.match_tax(self.default_sale_tax_id).id)], + }) + if self.smart_search_product_tax: + for product in products: + if self.update_product_taxes( + product, 'supplier_taxes_id', user_company): + updated_purchase |= product + if self.update_default_taxes and self.force_purchase_tax: + (products - updated_purchase).update({ + 'supplier_taxes_id': [ + (4, self.match_tax(self.default_purchase_tax_id).id)], + }) + + def update_taxes(self): + if self.update_default_taxes: + IrDefault = self.env['ir.default'].sudo() + if self.default_sale_tax_id: + IrDefault.set( + model_name='product.template', + field_name='taxes_id', + value=self.match_tax(self.default_sale_tax_id).ids, + company_id=self.new_company_id.id) + if self.default_purchase_tax_id: + IrDefault.set( + model_name='product.template', + field_name='supplier_taxes_id', + value=self.match_tax(self.default_purchase_tax_id).ids, + company_id=self.new_company_id.id) + self.set_product_taxes() + + def set_specific_properties(self, model, match_field): + user_company = self.env.user.company_id + self_sudo = self.sudo() + new_company_id = self.new_company_id.id + IrProperty = self_sudo.env['ir.property'] + properties = IrProperty.search([ + ('company_id', '=', user_company.id), + ('type', '=', 'many2one'), + ('res_id', '!=', False), + ('value_reference', '=like', '{},%'.format(model)), + ]) + Model = self_sudo.env[model] + for prop in properties: + ref = Model.browse(int(prop.value_reference.split(',')[1])) + new_ref = Model.search([ + ('company_id', '=', new_company_id), + (match_field, '=', ref[match_field]), + ]) + if new_ref: + prop.copy({ + 'company_id': new_company_id, + 'value_reference': '{},{}'.format(model, new_ref.id), + 'value_float': False, + 'value_integer': False, + }) + + def match_account(self, account_template): + code = '{code:0<{fill}}'.format( + code=account_template.code, fill=self.accounts_code_digits) + return self.sudo().env['account.account'].search([ + ('company_id', '=', self.new_company_id.id), + ('code', '=', code), + ], limit=1) + + def set_global_properties(self): + IrProperty = self.env['ir.property'].sudo() + todo_list = [ + ('property_account_receivable_id', 'res.partner', + 'account.account', + self.match_account(self.account_receivable_id).id), + ('property_account_payable_id', 'res.partner', + 'account.account', + self.match_account(self.account_payable_id).id), + ('property_account_expense_categ_id', 'product.category', + 'account.account', + self.match_account(self.account_expense_categ_id).id), + ('property_account_income_categ_id', 'product.category', + 'account.account', + self.match_account(self.account_income_categ_id).id), + ] + new_company = self.new_company_id + for record in todo_list: + if not record[3]: + continue + field = self.env['ir.model.fields'].search([ + ('name', '=', record[0]), + ('model', '=', record[1]), + ('relation', '=', record[2]) + ], limit=1) + vals = { + 'name': record[0], + 'company_id': new_company.id, + 'fields_id': field.id, + 'value': '{},{}'.format(record[2], record[3]), + } + properties = IrProperty.search([ + ('name', '=', record[0]), ('company_id', '=', new_company.id)]) + if properties: + properties.write(vals) + else: + IrProperty.create(vals) + + def update_properties(self): + if self.smart_search_specific_account: + self.set_specific_properties('account.account', 'code') + if self.smart_search_fiscal_position: + self.set_specific_properties('account.fiscal.position', 'name') + if self.update_default_accounts: + self.set_global_properties() + + def action_res_company_form(self): + action = self.env.ref('base.action_res_company_form').read()[0] + form = self.env.ref('base.view_company_form') + action['views'] = [(form.id, 'form')] + action['res_id'] = self.new_company_id.id + return action + + def action_accept(self): + self.create_company() + self.update_taxes() + self.update_properties() + return self.action_res_company_form() + + +class AccountMulticompanyBankWiz(models.TransientModel): + _inherit = 'res.partner.bank' + _name = 'account.multicompany.bank.wiz' + _order = 'id' + + wizard_id = fields.Many2one( + comodel_name='account.multicompany.easy.creation.wiz', + ) diff --git a/account_multicompany_easy_creation/wizards/multicompany_easy_creation.xml b/account_multicompany_easy_creation/wizards/multicompany_easy_creation.xml new file mode 100644 index 00000000000..40d3f5bc6c0 --- /dev/null +++ b/account_multicompany_easy_creation/wizards/multicompany_easy_creation.xml @@ -0,0 +1,108 @@ + + + + + + + Quick Company Creation + account.multicompany.easy.creation.wiz + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + +
From f3ab44e930c2896285464a325a137836eec3747a Mon Sep 17 00:00:00 2001 From: ernesto Date: Fri, 11 Oct 2019 12:54:36 -0400 Subject: [PATCH 02/16] [MIG] account_multicompany_easy_creation: Migration to 12.0 --- account_multicompany_easy_creation/README.rst | 69 ++- .../__manifest__.py | 26 +- .../account_multicompany_easy_creation.pot | 216 ++++++--- account_multicompany_easy_creation/i18n/es.po | 236 +++++++--- .../readme/CONTRIBUTORS.rst | 4 + .../readme/DESCRIPTION.rst | 1 + .../readme/USAGE.rst | 4 + .../static/description/index.html | 432 ++++++++++++++++++ .../wizards/multicompany_easy_creation.py | 406 ++++++++-------- .../wizards/multicompany_easy_creation.xml | 211 +++++---- 10 files changed, 1138 insertions(+), 467 deletions(-) create mode 100644 account_multicompany_easy_creation/readme/CONTRIBUTORS.rst create mode 100644 account_multicompany_easy_creation/readme/DESCRIPTION.rst create mode 100644 account_multicompany_easy_creation/readme/USAGE.rst create mode 100644 account_multicompany_easy_creation/static/description/index.html diff --git a/account_multicompany_easy_creation/README.rst b/account_multicompany_easy_creation/README.rst index 3e1464adc79..01b4aa53c80 100644 --- a/account_multicompany_easy_creation/README.rst +++ b/account_multicompany_easy_creation/README.rst @@ -1,13 +1,37 @@ -.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png - :target: https://www.gnu.org/licenses/agpl - :alt: License: AGPL-3 - ============================= Quick Company Creation Wizard ============================= +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmulti--company-lightgray.png?logo=github + :target: https://github.com/OCA/multi-company/tree/12.0/account_multicompany_easy_creation + :alt: OCA/multi-company +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/multi-company-12-0/multi-company-12-0-account_multicompany_easy_creation + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/133/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + This module adds a wizard to easily create companies. +**Table of contents** + +.. contents:: + :local: + Usage ===== @@ -16,46 +40,45 @@ To use this module, you need to: #. Go to Settings > Users and companies > Quick Company Creation #. Fill fields and accept - -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/133/11.0 - Bug Tracker =========== -Bugs are tracked on `GitHub Issues -`_. In case of trouble, please -check there if your issue has already been reported. If you spotted it first, -help us smash it by providing detailed and welcomed feedback. +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= -Images ------- +Authors +~~~~~~~ -* Odoo Community Association: `Icon `_. +* Tecnativa Contributors ------------- +~~~~~~~~~~~~ * `Tecnativa `_: + * Carlos Dauden + * Ernesto Tejeda -Do not contact contributors directly about support or help with technical issues. +Maintainers +~~~~~~~~~~~ -Maintainer ----------- +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -To contribute to this module, please visit https://odoo-community.org. +This module is part of the `OCA/multi-company `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_multicompany_easy_creation/__manifest__.py b/account_multicompany_easy_creation/__manifest__.py index c638960730a..ba6dc3cb6c6 100644 --- a/account_multicompany_easy_creation/__manifest__.py +++ b/account_multicompany_easy_creation/__manifest__.py @@ -1,19 +1,15 @@ # Copyright 2018 Carlos Dauden - Tecnativa # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { - 'name': 'Quick Company Creation Wizard', - 'summary': 'This module adds a wizard to create companies easily', - 'version': '11.0.1.0.0', - 'category': 'Multicompany', - 'website': 'https://github.com/OCA/multi-company' - 'account_multicompany_easy_creation', - 'author': 'Tecnativa, Odoo Community Association (OCA)', - 'license': 'AGPL-3', - 'installable': True, - 'depends': [ - 'account', - ], - 'data': [ - 'wizards/multicompany_easy_creation.xml', - ], + "name": "Quick Company Creation Wizard", + "summary": "This module adds a wizard to create companies easily", + "version": "12.0.1.0.0", + "category": "Multicompany", + "website": "https://github.com/OCA/multi-company" + "account_multicompany_easy_creation", + "author": "Tecnativa, Odoo Community Association (OCA)", + "license": "AGPL-3", + "installable": True, + "depends": ["account"], + "data": ["wizards/multicompany_easy_creation.xml"], } diff --git a/account_multicompany_easy_creation/i18n/account_multicompany_easy_creation.pot b/account_multicompany_easy_creation/i18n/account_multicompany_easy_creation.pot index 3d7107bd2bb..5f3dfabb4f6 100644 --- a/account_multicompany_easy_creation/i18n/account_multicompany_easy_creation.pot +++ b/account_multicompany_easy_creation/i18n/account_multicompany_easy_creation.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 11.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" @@ -14,48 +14,99 @@ msgstr "" "Plural-Forms: \n" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__aba_routing +msgid "ABA/Routing" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Accept" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Account" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__partner_id +msgid "Account Holder" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__acc_holder_name +msgid "Account Holder Name" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__journal_id +msgid "Account Journal" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__acc_number +msgid "Account Number" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__acc_holder_name +msgid "Account holder name, in case it is different than the name of the Account Holder" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Accounts" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_bank_ids +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__aba_routing +msgid "American Bankers Association Routing Number" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__bank_id +msgid "Bank" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__bank_bic +msgid "Bank Identifier Code" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__acc_type +msgid "Bank account type: Normal or IBAN. Inferred from the bank account number." +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__bank_ids msgid "Bank accounts to create" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Banks" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Cancel" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_chart_template_id -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__chart_template_id +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Chart Template" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_new_company_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__company_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__new_company_id msgid "Company" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_name +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__name msgid "Company Name" msgstr "" @@ -66,239 +117,270 @@ msgid "Company easy creation" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_create_uid -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_create_uid +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__create_uid +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__create_uid msgid "Created by" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_create_date -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_create_date +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__create_date +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__create_date msgid "Created on" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_currency_id -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__currency_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__currency_id +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Currency" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_account_expense_categ_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__account_expense_categ_id msgid "Default Category Expense Account" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_account_income_categ_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__account_income_categ_id msgid "Default Category Income Account" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_account_payable_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__account_payable_id msgid "Default Payable Account" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_default_purchase_tax_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__default_purchase_tax_id msgid "Default Purchase Tax" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_account_receivable_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__account_receivable_id msgid "Default Receivable Account" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_default_sale_tax_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__default_sale_tax_id msgid "Default Sales Tax" msgstr "" #. module: account_multicompany_easy_creation -#: code:addons/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py:208 +#: code:addons/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py:191 #, python-format msgid "Description not set in tax template: '%s'" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_display_name -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_display_name +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__display_name +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__display_name msgid "Display Name" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Fill company data" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_force_purchase_tax +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__force_purchase_tax msgid "Force Purchase Tax In All Products" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_force_sale_tax +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__force_sale_tax msgid "Force Sale Tax In All Products" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_fiscal_position +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__smart_search_fiscal_position msgid "Go over partner fiscal positions in actual company to match and set equivalent fiscal positions in the new company." msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_product_tax +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__smart_search_product_tax msgid "Go over product taxes in actual company to match and set equivalent taxes in then new company." msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_specific_account +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__smart_search_specific_account msgid "Go over specific accounts in actual company to match and set equivalent taxes in the new company.\n" "Applies to products, categories, partners, ..." msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_id -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__qr_code_valid +msgid "Has all required arguments" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__id msgid "ID" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz___last_update -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz___last_update +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz____last_update +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz____last_update msgid "Last Modified on" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_write_uid -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_write_uid +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__write_uid +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__write_uid msgid "Last Updated by" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_write_date -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_write_date +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__write_date +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__write_date msgid "Last Updated on" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_accounts_code_digits -msgid "Number of digits in an account code" +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__bank_name +msgid "Name" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__sanitized_acc_number +msgid "Sanitized Account Number" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__sequence +msgid "Sequence" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Sequences" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_sequence_ids +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__sequence_ids msgid "Sequences to create" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_force_purchase_tax +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__force_purchase_tax msgid "Set default purchase tax to all products.\n" "If smart search product tax is also enabled matches founded will overwrite default taxes, but not founded will remain" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_force_sale_tax +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__force_sale_tax msgid "Set default sales tax to all products.\n" "If smart search product tax is also enabled matches founded will overwrite default taxes, but not founded will remain" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_fiscal_position +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__smart_search_fiscal_position msgid "Smart Search Fiscal Position" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_product_tax +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__smart_search_product_tax msgid "Smart Search Product Tax" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_specific_account +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__smart_search_specific_account msgid "Smart Search Specific Account" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Smart search to set product taxes" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Smart search to set specific accounts in products, categories, partners, ..." msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Smart search to set specific fiscal position in partners" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__bank_bic +msgid "Sometimes called BIC or Swift." +msgstr "" + +#. module: account_multicompany_easy_creation +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Taxes" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_update_default_accounts +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__journal_id +msgid "The accounting journal corresponding to this bank account." +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__acc_type +msgid "Type" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__update_default_accounts msgid "Update Default Accounts" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_update_default_taxes +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__update_default_taxes msgid "Update Default Taxes" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Update default accounts" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_update_default_accounts +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__update_default_accounts msgid "Update default accounts defined in account chart template" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Update default taxes" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_update_default_taxes +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__update_default_taxes msgid "Update default taxes applied to local transactions" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Users" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_user_ids +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__user_ids msgid "Users allowed" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_wizard_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__wizard_id msgid "Wizard" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model,name:account_multicompany_easy_creation.model_account_multicompany_bank_wiz -msgid "account.multicompany.bank.wiz" +#: model:ir.model,name:account_multicompany_easy_creation.model_account_multicompany_easy_creation_wiz +msgid "Wizard Account Multi-company Easy Creation" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model,name:account_multicompany_easy_creation.model_account_multicompany_easy_creation_wiz -msgid "account.multicompany.easy.creation.wiz" +#: model:ir.model,name:account_multicompany_easy_creation.model_account_multicompany_bank_wiz +msgid "account.multicompany.bank.wiz" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "or" msgstr "" diff --git a/account_multicompany_easy_creation/i18n/es.po b/account_multicompany_easy_creation/i18n/es.po index 31ad16736c3..1c94a6f2732 100644 --- a/account_multicompany_easy_creation/i18n/es.po +++ b/account_multicompany_easy_creation/i18n/es.po @@ -18,48 +18,110 @@ msgstr "" "X-Generator: Weblate 3.4\n" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__aba_routing +msgid "ABA/Routing" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Accept" msgstr "Aceptar" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Account" msgstr "Cuenta" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__partner_id +#, fuzzy +#| msgid "Account" +msgid "Account Holder" +msgstr "Cuenta" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__acc_holder_name +msgid "Account Holder Name" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__journal_id +#, fuzzy +#| msgid "Account" +msgid "Account Journal" +msgstr "Cuenta" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__acc_number +#, fuzzy +#| msgid "Account" +msgid "Account Number" +msgstr "Cuenta" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__acc_holder_name +msgid "" +"Account holder name, in case it is different than the name of the Account " +"Holder" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Accounts" msgstr "Cuentas" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_bank_ids +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__aba_routing +msgid "American Bankers Association Routing Number" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__bank_id +#, fuzzy +#| msgid "Banks" +msgid "Bank" +msgstr "Bancos" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__bank_bic +msgid "Bank Identifier Code" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__acc_type +msgid "" +"Bank account type: Normal or IBAN. Inferred from the bank account number." +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__bank_ids msgid "Bank accounts to create" msgstr "Cuentas bancarias a crear" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Banks" msgstr "Bancos" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Cancel" msgstr "Cancelar" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_chart_template_id -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__chart_template_id +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Chart Template" msgstr "Plantilla plan contable" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_new_company_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__company_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__new_company_id msgid "Company" msgstr "Compañía" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_name +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__name msgid "Company Name" msgstr "Nombre de la compañía" @@ -70,82 +132,83 @@ msgid "Company easy creation" msgstr "Creación sencilla de compañía" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_create_uid -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_create_uid +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__create_uid +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__create_uid msgid "Created by" msgstr "Creado por" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_create_date -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_create_date +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__create_date +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__create_date msgid "Created on" msgstr "Creado el" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_currency_id -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__currency_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__currency_id +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Currency" msgstr "Moneda" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_account_expense_categ_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__account_expense_categ_id msgid "Default Category Expense Account" msgstr "Cuenta por defecto de gastos en categorías" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_account_income_categ_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__account_income_categ_id msgid "Default Category Income Account" msgstr "Cuenta por defecto de ingresos en categorías" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_account_payable_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__account_payable_id msgid "Default Payable Account" msgstr "Cuenta por defecto a pagar" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_default_purchase_tax_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__default_purchase_tax_id msgid "Default Purchase Tax" msgstr "Impuesto por defecto en compras" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_account_receivable_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__account_receivable_id msgid "Default Receivable Account" msgstr "Cuenta por defecto a cobrar" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_default_sale_tax_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__default_sale_tax_id msgid "Default Sales Tax" msgstr "Impuesto por defecto en ventas" #. module: account_multicompany_easy_creation -#: code:addons/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py:208 +#: code:addons/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py:191 #, python-format msgid "Description not set in tax template: '%s'" msgstr "Descripción no establecida en plantilla del impuesto: '%s'" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_display_name -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_display_name +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__display_name +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__display_name msgid "Display Name" msgstr "Nombre a mostrar" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Fill company data" msgstr "Rellenar datos de la compañía" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_force_purchase_tax +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__force_purchase_tax msgid "Force Purchase Tax In All Products" msgstr "Forzar impuesto de compra en todos los productos" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_force_sale_tax +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__force_sale_tax msgid "Force Sale Tax In All Products" msgstr "Forzar impuesto de venta en todos los productos" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_fiscal_position +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__smart_search_fiscal_position msgid "" "Go over partner fiscal positions in actual company to match and set " "equivalent fiscal positions in the new company." @@ -154,7 +217,7 @@ msgstr "" "para establecer la posición fiscal equivalente en la nueva compañía." #. module: account_multicompany_easy_creation -#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_product_tax +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__smart_search_product_tax msgid "" "Go over product taxes in actual company to match and set equivalent taxes in " "then new company." @@ -163,7 +226,7 @@ msgstr "" "establecer los impuestos equivalentes en la nueva compañía." #. module: account_multicompany_easy_creation -#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_specific_account +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__smart_search_specific_account msgid "" "Go over specific accounts in actual company to match and set equivalent " "taxes in the new company.\n" @@ -174,46 +237,63 @@ msgstr "" "Se aplica a productos, categorías, contactos, ..." #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_id -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__qr_code_valid +msgid "Has all required arguments" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__id msgid "ID" msgstr "ID (identificación)" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz___last_update -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz___last_update +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz____last_update +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz____last_update msgid "Last Modified on" msgstr "Última modificación el" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_write_uid -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_write_uid +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__write_uid +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__write_uid msgid "Last Updated by" msgstr "Última actualización por" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_write_date -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_write_date +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__write_date +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__write_date msgid "Last Updated on" msgstr "Última actualización el" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_accounts_code_digits -msgid "Number of digits in an account code" -msgstr "Número de dígitos en un código de cuenta" +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__bank_name +msgid "Name" +msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__sanitized_acc_number +msgid "Sanitized Account Number" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__sequence +#, fuzzy +#| msgid "Sequences" +msgid "Sequence" +msgstr "Secuencias" + +#. module: account_multicompany_easy_creation +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Sequences" msgstr "Secuencias" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_sequence_ids +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__sequence_ids msgid "Sequences to create" msgstr "Secuencias a crear" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_force_purchase_tax +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__force_purchase_tax msgid "" "Set default purchase tax to all products.\n" "If smart search product tax is also enabled matches founded will overwrite " @@ -225,7 +305,7 @@ msgstr "" "conservará el impuesto por defecto cuando no se encuentren coincidencias" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_force_sale_tax +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__force_sale_tax msgid "" "Set default sales tax to all products.\n" "If smart search product tax is also enabled matches founded will overwrite " @@ -237,27 +317,27 @@ msgstr "" "conservará el impuesto por defecto cuando no se encuentren coincidencias" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_fiscal_position +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__smart_search_fiscal_position msgid "Smart Search Fiscal Position" msgstr "Búsqueda inteligente de posición fiscal" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_product_tax +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__smart_search_product_tax msgid "Smart Search Product Tax" msgstr "Búsqueda inteligente de impuesto de producto" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_smart_search_specific_account +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__smart_search_specific_account msgid "Smart Search Specific Account" msgstr "Búsqueda inteligente cuenta específica" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Smart search to set product taxes" msgstr "Búsqueda inteligente para establecer impuestos en productos" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "" "Smart search to set specific accounts in products, categories, partners, ..." msgstr "" @@ -265,71 +345,91 @@ msgstr "" "categorías, contactos, ..." #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Smart search to set specific fiscal position in partners" msgstr "Búsqueda inteligente para establecer posición fiscal en contactos" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__bank_bic +msgid "Sometimes called BIC or Swift." +msgstr "" + +#. module: account_multicompany_easy_creation +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Taxes" msgstr "Impuestos" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_update_default_accounts +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__journal_id +msgid "The accounting journal corresponding to this bank account." +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__acc_type +msgid "Type" +msgstr "" + +#. module: account_multicompany_easy_creation +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__update_default_accounts msgid "Update Default Accounts" msgstr "Actualizar cuentas por defecto" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_update_default_taxes +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__update_default_taxes msgid "Update Default Taxes" msgstr "Actualizar impuestos por defecto" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Update default accounts" msgstr "Actualizar cuentas por defecto" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_update_default_accounts +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__update_default_accounts msgid "Update default accounts defined in account chart template" msgstr "Actualizar cuentas por defecto definidas en el plan contable" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Update default taxes" msgstr "Actualizar impuestos por defecto" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_update_default_taxes +#: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__update_default_taxes msgid "Update default taxes applied to local transactions" msgstr "Actualizar impuestos por defecto aplicados a transacciones locales" #. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "Users" msgstr "Usuarios" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz_user_ids +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__user_ids msgid "Users allowed" msgstr "Usuarios con permiso" #. module: account_multicompany_easy_creation -#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz_wizard_id +#: model:ir.model.fields,field_description:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__wizard_id msgid "Wizard" msgstr "Asistente" +#. module: account_multicompany_easy_creation +#: model:ir.model,name:account_multicompany_easy_creation.model_account_multicompany_easy_creation_wiz +#, fuzzy +#| msgid "account.multicompany.easy.creation.wiz" +msgid "Wizard Account Multi-company Easy Creation" +msgstr "'account.multicompany.easy.creation.wiz'" + #. module: account_multicompany_easy_creation #: model:ir.model,name:account_multicompany_easy_creation.model_account_multicompany_bank_wiz msgid "account.multicompany.bank.wiz" msgstr "'account.multicompany.bank.wiz'" #. module: account_multicompany_easy_creation -#: model:ir.model,name:account_multicompany_easy_creation.model_account_multicompany_easy_creation_wiz -msgid "account.multicompany.easy.creation.wiz" -msgstr "'account.multicompany.easy.creation.wiz'" - -#. module: account_multicompany_easy_creation -#: model:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form +#: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "or" msgstr "o" + +#~ msgid "Number of digits in an account code" +#~ msgstr "Número de dígitos en un código de cuenta" diff --git a/account_multicompany_easy_creation/readme/CONTRIBUTORS.rst b/account_multicompany_easy_creation/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..0b072f0d593 --- /dev/null +++ b/account_multicompany_easy_creation/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* `Tecnativa `_: + + * Carlos Dauden + * Ernesto Tejeda diff --git a/account_multicompany_easy_creation/readme/DESCRIPTION.rst b/account_multicompany_easy_creation/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..8388d54bf52 --- /dev/null +++ b/account_multicompany_easy_creation/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module adds a wizard to easily create companies. diff --git a/account_multicompany_easy_creation/readme/USAGE.rst b/account_multicompany_easy_creation/readme/USAGE.rst new file mode 100644 index 00000000000..3c5a9b9fd94 --- /dev/null +++ b/account_multicompany_easy_creation/readme/USAGE.rst @@ -0,0 +1,4 @@ +To use this module, you need to: + +#. Go to Settings > Users and companies > Quick Company Creation +#. Fill fields and accept diff --git a/account_multicompany_easy_creation/static/description/index.html b/account_multicompany_easy_creation/static/description/index.html new file mode 100644 index 00000000000..c8d86987d35 --- /dev/null +++ b/account_multicompany_easy_creation/static/description/index.html @@ -0,0 +1,432 @@ + + + + + + +Quick Company Creation Wizard + + + +
+

Quick Company Creation Wizard

+ + +

Beta License: AGPL-3 OCA/multi-company Translate me on Weblate Try me on Runbot

+

This module adds a wizard to easily create companies.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  1. Go to Settings > Users and companies > Quick Company Creation
  2. +
  3. Fill fields and accept
  4. +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Tecnativa
  • +
+
+
+

Contributors

+
    +
  • Tecnativa:
      +
    • Carlos Dauden
    • +
    • Ernesto Tejeda
    • +
    +
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/multi-company project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py b/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py index 290b2621b0a..98c9eca30dc 100644 --- a/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py +++ b/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py @@ -8,195 +8,168 @@ class AccountMulticompanyEasyCreationWiz(models.TransientModel): - _name = 'account.multicompany.easy.creation.wiz' + _name = "account.multicompany.easy.creation.wiz" + _description = "Wizard Account Multi-company Easy Creation" def _default_sequence_ids(self): - exclude_seq_list = self.env['ir.config_parameter'].get_param( - 'account_multicompany_easy_creation.exclude_sequence_list', - [False, 'aeat.sequence.type']) + exclude_seq_list = self.env["ir.config_parameter"].get_param( + "account_multicompany_easy_creation.exclude_sequence_list", + [False, "aeat.sequence.type"], + ) if not isinstance(exclude_seq_list, list): exclude_seq_list = safe_eval(exclude_seq_list) - return self.env['ir.sequence'].search([ - ('company_id', '=', self.env.user.company_id.id), - ('code', 'not in', exclude_seq_list), - ]) + return self.env["ir.sequence"].search( + [ + ("company_id", "=", self.env.user.company_id.id), + ("code", "not in", exclude_seq_list), + ] + ) - name = fields.Char( - string="Company Name", - required=True, - ) + name = fields.Char(string="Company Name", required=True,) currency_id = fields.Many2one( - comodel_name='res.currency', - string='Currency', + comodel_name="res.currency", + string="Currency", required=True, default=lambda s: s.env.user.company_id.currency_id, ) chart_template_id = fields.Many2one( - comodel_name='account.chart.template', - string='Chart Template', - ) - accounts_code_digits = fields.Integer( - string='Number of digits in an account code', - default=lambda s: s.env.user.company_id.accounts_code_digits, + comodel_name="account.chart.template", string="Chart Template", ) bank_ids = fields.One2many( - comodel_name='account.multicompany.bank.wiz', - inverse_name='wizard_id', - string='Bank accounts to create', + comodel_name="account.multicompany.bank.wiz", + inverse_name="wizard_id", + string="Bank accounts to create", ) user_ids = fields.Many2many( - comodel_name='res.users', - string='Users allowed', - domain=[('share', '=', False)], + comodel_name="res.users", + string="Users allowed", + domain=[("share", "=", False)], ) sequence_ids = fields.Many2many( - comodel_name='ir.sequence', - string='Sequences to create', + comodel_name="ir.sequence", + string="Sequences to create", default=lambda s: s._default_sequence_ids(), ) - new_company_id = fields.Many2one( - comodel_name='res.company', - string='Company', - ) + new_company_id = fields.Many2one(comodel_name="res.company", string="Company",) # TAXES smart_search_product_tax = fields.Boolean( default=True, - help='Go over product taxes in actual company to match and set ' - 'equivalent taxes in then new company.', + help="Go over product taxes in actual company to match and set " + "equivalent taxes in then new company.", ) update_default_taxes = fields.Boolean( - help='Update default taxes applied to local transactions', + help="Update default taxes applied to local transactions", ) default_sale_tax_id = fields.Many2one( - comodel_name='account.tax.template', - string='Default Sales Tax', + comodel_name="account.tax.template", string="Default Sales Tax", ) force_sale_tax = fields.Boolean( - string='Force Sale Tax In All Products', - help='Set default sales tax to all products.\n' - 'If smart search product tax is also enabled matches founded ' - 'will overwrite default taxes, but not founded will remain', + string="Force Sale Tax In All Products", + help="Set default sales tax to all products.\n" + "If smart search product tax is also enabled matches founded " + "will overwrite default taxes, but not founded will remain", ) default_purchase_tax_id = fields.Many2one( - comodel_name='account.tax.template', - string='Default Purchase Tax', + comodel_name="account.tax.template", string="Default Purchase Tax", ) force_purchase_tax = fields.Boolean( - string='Force Purchase Tax In All Products', - help='Set default purchase tax to all products.\n' - 'If smart search product tax is also enabled matches founded ' - 'will overwrite default taxes, but not founded will remain', + string="Force Purchase Tax In All Products", + help="Set default purchase tax to all products.\n" + "If smart search product tax is also enabled matches founded " + "will overwrite default taxes, but not founded will remain", ) # ACCOUNTS smart_search_specific_account = fields.Boolean( default=True, - help='Go over specific accounts in actual company to match and set ' - 'equivalent taxes in the new company.\n' - 'Applies to products, categories, partners, ...', + help="Go over specific accounts in actual company to match and set " + "equivalent taxes in the new company.\n" + "Applies to products, categories, partners, ...", ) smart_search_fiscal_position = fields.Boolean( default=True, - help='Go over partner fiscal positions in actual company to match ' - 'and set equivalent fiscal positions in the new company.', + help="Go over partner fiscal positions in actual company to match " + "and set equivalent fiscal positions in the new company.", ) update_default_accounts = fields.Boolean( - help='Update default accounts defined in account chart template', + help="Update default accounts defined in account chart template", ) account_receivable_id = fields.Many2one( - comodel_name='account.account.template', - string='Default Receivable Account', + comodel_name="account.account.template", string="Default Receivable Account", ) account_payable_id = fields.Many2one( - comodel_name='account.account.template', - string='Default Payable Account', + comodel_name="account.account.template", string="Default Payable Account", ) account_income_categ_id = fields.Many2one( - comodel_name='account.account.template', - string='Default Category Income Account', + comodel_name="account.account.template", + string="Default Category Income Account", ) account_expense_categ_id = fields.Many2one( - comodel_name='account.account.template', - string='Default Category Expense Account', + comodel_name="account.account.template", + string="Default Category Expense Account", ) def install_chart_account(self): """ install a chart of accounts for the given company """ - wizard = self.env['wizard.multi.charts.accounts'].create({ - 'company_id': self.new_company_id.id, - 'chart_template_id': self.chart_template_id.id, - 'transfer_account_id': - self.chart_template_id.transfer_account_id.id, - 'code_digits': self.accounts_code_digits or 6, - 'complete_tax_set': self.chart_template_id.complete_tax_set, - 'currency_id': self.currency_id.id, - 'bank_account_code_prefix': - self.chart_template_id.bank_account_code_prefix, - 'cash_account_code_prefix': - self.chart_template_id.cash_account_code_prefix, - }) - wizard.onchange_chart_template_id() - wizard.sudo().execute() + user_company = self.env.user.company_id + self.env.user.company_id = self.new_company_id + self.sudo().chart_template_id.try_loading_for_current_company() + self.env.user.company_id = user_company def create_bank_journals(self): - AccountJournal = self.env['account.journal'].sudo() - bank_journals = AccountJournal.search([ - ('type', '=', 'bank'), - ('company_id', '=', self.new_company_id.id), - ]) + AccountJournal = self.env["account.journal"].sudo() + bank_journals = AccountJournal.search( + [("type", "=", "bank"), ("company_id", "=", self.new_company_id.id)] + ) vals = { - 'type': 'bank', - 'company_id': self.new_company_id.id, + "type": "bank", + "company_id": self.new_company_id.id, } for i, bank in enumerate(self.bank_ids): - vals.update({ - 'name': bank.acc_number, - 'bank_acc_number': bank.acc_number, - }) + vals.update({"name": bank.acc_number, "bank_acc_number": bank.acc_number}) if i < len(bank_journals): bank_journals[i].update(vals) else: - vals.update({ - 'code': False, - 'sequence_id': False, - 'default_debit_account_id': False, - 'default_credit_account_id': False, - }) + vals.update( + { + "code": False, + "sequence_id": False, + "default_debit_account_id": False, + "default_credit_account_id": False, + } + ) AccountJournal.create(vals) def create_sequences(self): for sequence in self.sudo().sequence_ids: - sequence.copy({ - 'company_id': self.new_company_id.id, - }) + sequence.copy({"company_id": self.new_company_id.id}) def create_company(self): - self.new_company_id = self.env['res.company'].create({ - 'name': self.name, - 'user_ids': [(6, 0, self.user_ids.ids)], - 'chart_template_id': self.chart_template_id.id, - }) + self.new_company_id = self.env["res.company"].create( + {"name": self.name, "user_ids": [(6, 0, self.user_ids.ids)]} + ) self.install_chart_account() self.create_bank_journals() self.create_sequences() # TODO: Cache don't work - @ormcache('self.id', 'company_id', 'match_tax_ids') + @ormcache("self.id", "company_id", "match_tax_ids") def taxes_by_company(self, company_id, match_tax_ids): - AccountTax = self.env['account.tax'].sudo() - taxes_ids = [] - for tax in AccountTax.browse(match_tax_ids): - taxes_ids.extend(AccountTax.search([ - ('description', '=', tax.description), - ('company_id', '=', company_id) - ]).ids) - return taxes_ids + AccountTax = self.env["account.tax"].sudo() + account_taxes = AccountTax.browse(match_tax_ids) + return AccountTax.search( + [ + ("description", "in", account_taxes.mapped("description")), + ("company_id", "=", company_id), + ] + ).ids def update_product_taxes(self, product, taxes_field, company_from): product_taxes = product[taxes_field].filtered( - lambda tax: tax.company_id == company_from) - tax_ids = ( - product_taxes and - self.taxes_by_company(self.new_company_id.id, product_taxes.ids)) + lambda tax: tax.company_id == company_from + ) + tax_ids = product_taxes and self.taxes_by_company( + self.new_company_id.id, product_taxes.ids + ) if tax_ids: product.update({taxes_field: [(4, tax_id) for tax_id in tax_ids]}) return True @@ -205,122 +178,160 @@ def update_product_taxes(self, product, taxes_field, company_from): def match_tax(self, tax_template): if not tax_template.description: raise ValidationError( - _("Description not set in tax template: '%s'") % - tax_template.name + _("Description not set in tax template: '%s'") % tax_template.name + ) + return ( + self.sudo() + .env["account.tax"] + .search( + [ + ("company_id", "=", self.new_company_id.id), + ("description", "=", tax_template.description), + ], + limit=1, ) - return self.sudo().env['account.tax'].search([ - ('company_id', '=', self.new_company_id.id), - ('description', '=', tax_template.description), - ], limit=1) + ) def set_product_taxes(self): user_company = self.env.user.company_id - products = self.env['product.product'].sudo().search([]) + products = self.env["product.product"].sudo().search([]) updated_sale = updated_purchase = products.browse() if self.smart_search_product_tax: for product in products: - if self.update_product_taxes( - product, 'taxes_id', user_company): + if self.update_product_taxes(product, "taxes_id", user_company): updated_sale |= product if self.update_default_taxes and self.force_sale_tax: - (products - updated_sale).update({ - 'taxes_id': [(4, self.match_tax(self.default_sale_tax_id).id)], - }) + (products - updated_sale).update( + {"taxes_id": [(4, self.match_tax(self.default_sale_tax_id).id)]} + ) if self.smart_search_product_tax: for product in products: if self.update_product_taxes( - product, 'supplier_taxes_id', user_company): + product, "supplier_taxes_id", user_company + ): updated_purchase |= product if self.update_default_taxes and self.force_purchase_tax: - (products - updated_purchase).update({ - 'supplier_taxes_id': [ - (4, self.match_tax(self.default_purchase_tax_id).id)], - }) + (products - updated_purchase).update( + { + "supplier_taxes_id": [ + (4, self.match_tax(self.default_purchase_tax_id).id) + ], + } + ) def update_taxes(self): if self.update_default_taxes: - IrDefault = self.env['ir.default'].sudo() + IrDefault = self.env["ir.default"].sudo() if self.default_sale_tax_id: IrDefault.set( - model_name='product.template', - field_name='taxes_id', + model_name="product.template", + field_name="taxes_id", value=self.match_tax(self.default_sale_tax_id).ids, - company_id=self.new_company_id.id) + company_id=self.new_company_id.id, + ) if self.default_purchase_tax_id: IrDefault.set( - model_name='product.template', - field_name='supplier_taxes_id', + model_name="product.template", + field_name="supplier_taxes_id", value=self.match_tax(self.default_purchase_tax_id).ids, - company_id=self.new_company_id.id) + company_id=self.new_company_id.id, + ) self.set_product_taxes() def set_specific_properties(self, model, match_field): user_company = self.env.user.company_id self_sudo = self.sudo() new_company_id = self.new_company_id.id - IrProperty = self_sudo.env['ir.property'] - properties = IrProperty.search([ - ('company_id', '=', user_company.id), - ('type', '=', 'many2one'), - ('res_id', '!=', False), - ('value_reference', '=like', '{},%'.format(model)), - ]) + IrProperty = self_sudo.env["ir.property"] + properties = IrProperty.search( + [ + ("company_id", "=", user_company.id), + ("type", "=", "many2one"), + ("res_id", "!=", False), + ("value_reference", "=like", "{},%".format(model)), + ] + ) Model = self_sudo.env[model] for prop in properties: - ref = Model.browse(int(prop.value_reference.split(',')[1])) - new_ref = Model.search([ - ('company_id', '=', new_company_id), - (match_field, '=', ref[match_field]), - ]) + ref = Model.browse(int(prop.value_reference.split(",")[1])) + new_ref = Model.search( + [ + ("company_id", "=", new_company_id), + (match_field, "=", ref[match_field]), + ] + ) if new_ref: - prop.copy({ - 'company_id': new_company_id, - 'value_reference': '{},{}'.format(model, new_ref.id), - 'value_float': False, - 'value_integer': False, - }) + prop.copy( + { + "company_id": new_company_id, + "value_reference": "{},{}".format(model, new_ref.id), + "value_float": False, + "value_integer": False, + } + ) def match_account(self, account_template): - code = '{code:0<{fill}}'.format( - code=account_template.code, fill=self.accounts_code_digits) - return self.sudo().env['account.account'].search([ - ('company_id', '=', self.new_company_id.id), - ('code', '=', code), - ], limit=1) + return ( + self.sudo() + .env["account.account"] + .search( + [ + ("company_id", "=", self.new_company_id.id), + ("code", "=", account_template.code), + ], + limit=1, + ) + ) def set_global_properties(self): - IrProperty = self.env['ir.property'].sudo() + IrProperty = self.env["ir.property"].sudo() todo_list = [ - ('property_account_receivable_id', 'res.partner', - 'account.account', - self.match_account(self.account_receivable_id).id), - ('property_account_payable_id', 'res.partner', - 'account.account', - self.match_account(self.account_payable_id).id), - ('property_account_expense_categ_id', 'product.category', - 'account.account', - self.match_account(self.account_expense_categ_id).id), - ('property_account_income_categ_id', 'product.category', - 'account.account', - self.match_account(self.account_income_categ_id).id), + ( + "property_account_receivable_id", + "res.partner", + "account.account", + self.match_account(self.account_receivable_id).id, + ), + ( + "property_account_payable_id", + "res.partner", + "account.account", + self.match_account(self.account_payable_id).id, + ), + ( + "property_account_expense_categ_id", + "product.category", + "account.account", + self.match_account(self.account_expense_categ_id).id, + ), + ( + "property_account_income_categ_id", + "product.category", + "account.account", + self.match_account(self.account_income_categ_id).id, + ), ] new_company = self.new_company_id for record in todo_list: if not record[3]: continue - field = self.env['ir.model.fields'].search([ - ('name', '=', record[0]), - ('model', '=', record[1]), - ('relation', '=', record[2]) - ], limit=1) + field = self.env["ir.model.fields"].search( + [ + ("name", "=", record[0]), + ("model", "=", record[1]), + ("relation", "=", record[2]), + ], + limit=1, + ) vals = { - 'name': record[0], - 'company_id': new_company.id, - 'fields_id': field.id, - 'value': '{},{}'.format(record[2], record[3]), + "name": record[0], + "company_id": new_company.id, + "fields_id": field.id, + "value": "{},{}".format(record[2], record[3]), } - properties = IrProperty.search([ - ('name', '=', record[0]), ('company_id', '=', new_company.id)]) + properties = IrProperty.search( + [("name", "=", record[0]), ("company_id", "=", new_company.id)] + ) if properties: properties.write(vals) else: @@ -328,17 +339,17 @@ def set_global_properties(self): def update_properties(self): if self.smart_search_specific_account: - self.set_specific_properties('account.account', 'code') + self.set_specific_properties("account.account", "code") if self.smart_search_fiscal_position: - self.set_specific_properties('account.fiscal.position', 'name') + self.set_specific_properties("account.fiscal.position", "name") if self.update_default_accounts: self.set_global_properties() def action_res_company_form(self): - action = self.env.ref('base.action_res_company_form').read()[0] - form = self.env.ref('base.view_company_form') - action['views'] = [(form.id, 'form')] - action['res_id'] = self.new_company_id.id + action = self.env.ref("base.action_res_company_form").read()[0] + form = self.env.ref("base.view_company_form") + action["views"] = [(form.id, "form")] + action["res_id"] = self.new_company_id.id return action def action_accept(self): @@ -349,10 +360,9 @@ def action_accept(self): class AccountMulticompanyBankWiz(models.TransientModel): - _inherit = 'res.partner.bank' - _name = 'account.multicompany.bank.wiz' - _order = 'id' + _inherit = "res.partner.bank" + _name = "account.multicompany.bank.wiz" + _order = "id" - wizard_id = fields.Many2one( - comodel_name='account.multicompany.easy.creation.wiz', - ) + wizard_id = fields.Many2one(comodel_name="account.multicompany.easy.creation.wiz",) + partner_id = fields.Many2one(required=False,) diff --git a/account_multicompany_easy_creation/wizards/multicompany_easy_creation.xml b/account_multicompany_easy_creation/wizards/multicompany_easy_creation.xml index 40d3f5bc6c0..f5fe99f269b 100644 --- a/account_multicompany_easy_creation/wizards/multicompany_easy_creation.xml +++ b/account_multicompany_easy_creation/wizards/multicompany_easy_creation.xml @@ -1,108 +1,127 @@ - + - - - - Quick Company Creation - account.multicompany.easy.creation.wiz - -
- - - - - - - - - - - - - - - + + Quick Company Creation + account.multicompany.easy.creation.wiz + + + + + + + + + - - + + - - + + + + + + + + + + + + + + + + - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- - - - - + + + + +
From f545350a81c648544598e7e86b0338b8df7ea897 Mon Sep 17 00:00:00 2001 From: Carlos Roca Date: Mon, 11 May 2020 13:19:17 +0200 Subject: [PATCH 03/16] [MIG] account_multicompany_easy_creation: Migration to v13.0 [UPD] Update account_multicompany_easy_creation.pot [UPD] README.rst --- account_multicompany_easy_creation/README.rst | 11 ++--- .../__manifest__.py | 2 +- .../account_multicompany_easy_creation.pot | 44 ++++++++++++------- account_multicompany_easy_creation/i18n/es.po | 3 -- .../readme/CONTRIBUTORS.rst | 1 + .../static/description/index.html | 7 +-- .../wizards/multicompany_easy_creation.py | 40 +++++++++++------ .../wizards/multicompany_easy_creation.xml | 24 ++++++---- 8 files changed, 82 insertions(+), 50 deletions(-) diff --git a/account_multicompany_easy_creation/README.rst b/account_multicompany_easy_creation/README.rst index 01b4aa53c80..a6480e38395 100644 --- a/account_multicompany_easy_creation/README.rst +++ b/account_multicompany_easy_creation/README.rst @@ -14,13 +14,13 @@ Quick Company Creation Wizard :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmulti--company-lightgray.png?logo=github - :target: https://github.com/OCA/multi-company/tree/12.0/account_multicompany_easy_creation + :target: https://github.com/OCA/multi-company/tree/13.0/account_multicompany_easy_creation :alt: OCA/multi-company .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/multi-company-12-0/multi-company-12-0-account_multicompany_easy_creation + :target: https://translation.odoo-community.org/projects/multi-company-13-0/multi-company-13-0-account_multicompany_easy_creation :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/133/12.0 + :target: https://runbot.odoo-community.org/runbot/133/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -46,7 +46,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -65,6 +65,7 @@ Contributors * Carlos Dauden * Ernesto Tejeda + * Carlos Roca Maintainers ~~~~~~~~~~~ @@ -79,6 +80,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/multi-company `_ project on GitHub. +This module is part of the `OCA/multi-company `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_multicompany_easy_creation/__manifest__.py b/account_multicompany_easy_creation/__manifest__.py index ba6dc3cb6c6..b78f558b6ed 100644 --- a/account_multicompany_easy_creation/__manifest__.py +++ b/account_multicompany_easy_creation/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Quick Company Creation Wizard", "summary": "This module adds a wizard to create companies easily", - "version": "12.0.1.0.0", + "version": "13.0.1.0.0", "category": "Multicompany", "website": "https://github.com/OCA/multi-company" "account_multicompany_easy_creation", diff --git a/account_multicompany_easy_creation/i18n/account_multicompany_easy_creation.pot b/account_multicompany_easy_creation/i18n/account_multicompany_easy_creation.pot index 5f3dfabb4f6..c038d3aabee 100644 --- a/account_multicompany_easy_creation/i18n/account_multicompany_easy_creation.pot +++ b/account_multicompany_easy_creation/i18n/account_multicompany_easy_creation.pot @@ -1,12 +1,12 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * account_multicompany_easy_creation +# * account_multicompany_easy_creation # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\n" +"Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -50,7 +50,9 @@ msgstr "" #. module: account_multicompany_easy_creation #: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__acc_holder_name -msgid "Account holder name, in case it is different than the name of the Account Holder" +msgid "" +"Account holder name, in case it is different than the name of the Account " +"Holder" msgstr "" #. module: account_multicompany_easy_creation @@ -75,7 +77,8 @@ msgstr "" #. module: account_multicompany_easy_creation #: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_bank_wiz__acc_type -msgid "Bank account type: Normal or IBAN. Inferred from the bank account number." +msgid "" +"Bank account type: Normal or IBAN. Inferred from the bank account number." msgstr "" #. module: account_multicompany_easy_creation @@ -166,7 +169,7 @@ msgid "Default Sales Tax" msgstr "" #. module: account_multicompany_easy_creation -#: code:addons/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py:191 +#: code:addons/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py:0 #, python-format msgid "Description not set in tax template: '%s'" msgstr "" @@ -194,17 +197,22 @@ msgstr "" #. module: account_multicompany_easy_creation #: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__smart_search_fiscal_position -msgid "Go over partner fiscal positions in actual company to match and set equivalent fiscal positions in the new company." +msgid "" +"Go over partner fiscal positions in actual company to match and set " +"equivalent fiscal positions in the new company." msgstr "" #. module: account_multicompany_easy_creation #: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__smart_search_product_tax -msgid "Go over product taxes in actual company to match and set equivalent taxes in then new company." +msgid "" +"Go over product taxes in actual company to match and set equivalent taxes in" +" then new company." msgstr "" #. module: account_multicompany_easy_creation #: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__smart_search_specific_account -msgid "Go over specific accounts in actual company to match and set equivalent taxes in the new company.\n" +msgid "" +"Go over specific accounts in actual company to match and set equivalent taxes in the new company.\n" "Applies to products, categories, partners, ..." msgstr "" @@ -264,13 +272,15 @@ msgstr "" #. module: account_multicompany_easy_creation #: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__force_purchase_tax -msgid "Set default purchase tax to all products.\n" +msgid "" +"Set default purchase tax to all products.\n" "If smart search product tax is also enabled matches founded will overwrite default taxes, but not founded will remain" msgstr "" #. module: account_multicompany_easy_creation #: model:ir.model.fields,help:account_multicompany_easy_creation.field_account_multicompany_easy_creation_wiz__force_sale_tax -msgid "Set default sales tax to all products.\n" +msgid "" +"Set default sales tax to all products.\n" "If smart search product tax is also enabled matches founded will overwrite default taxes, but not founded will remain" msgstr "" @@ -296,7 +306,8 @@ msgstr "" #. module: account_multicompany_easy_creation #: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form -msgid "Smart search to set specific accounts in products, categories, partners, ..." +msgid "" +"Smart search to set specific accounts in products, categories, partners, ..." msgstr "" #. module: account_multicompany_easy_creation @@ -370,17 +381,16 @@ msgid "Wizard" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model,name:account_multicompany_easy_creation.model_account_multicompany_easy_creation_wiz -msgid "Wizard Account Multi-company Easy Creation" +#: model:ir.model,name:account_multicompany_easy_creation.model_account_multicompany_bank_wiz +msgid "Wizard Account Multi-company Bank" msgstr "" #. module: account_multicompany_easy_creation -#: model:ir.model,name:account_multicompany_easy_creation.model_account_multicompany_bank_wiz -msgid "account.multicompany.bank.wiz" +#: model:ir.model,name:account_multicompany_easy_creation.model_account_multicompany_easy_creation_wiz +msgid "Wizard Account Multi-company Easy Creation" msgstr "" #. module: account_multicompany_easy_creation #: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "or" msgstr "" - diff --git a/account_multicompany_easy_creation/i18n/es.po b/account_multicompany_easy_creation/i18n/es.po index 1c94a6f2732..f37b88a78cf 100644 --- a/account_multicompany_easy_creation/i18n/es.po +++ b/account_multicompany_easy_creation/i18n/es.po @@ -430,6 +430,3 @@ msgstr "'account.multicompany.bank.wiz'" #: model_terms:ir.ui.view,arch_db:account_multicompany_easy_creation.wizard_multicompany_easy_creation_view_form msgid "or" msgstr "o" - -#~ msgid "Number of digits in an account code" -#~ msgstr "Número de dígitos en un código de cuenta" diff --git a/account_multicompany_easy_creation/readme/CONTRIBUTORS.rst b/account_multicompany_easy_creation/readme/CONTRIBUTORS.rst index 0b072f0d593..02efd7fa5d5 100644 --- a/account_multicompany_easy_creation/readme/CONTRIBUTORS.rst +++ b/account_multicompany_easy_creation/readme/CONTRIBUTORS.rst @@ -2,3 +2,4 @@ * Carlos Dauden * Ernesto Tejeda + * Carlos Roca diff --git a/account_multicompany_easy_creation/static/description/index.html b/account_multicompany_easy_creation/static/description/index.html index c8d86987d35..8c70270db8e 100644 --- a/account_multicompany_easy_creation/static/description/index.html +++ b/account_multicompany_easy_creation/static/description/index.html @@ -367,7 +367,7 @@

Quick Company Creation Wizard

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/multi-company Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/multi-company Translate me on Weblate Try me on Runbot

This module adds a wizard to easily create companies.

Table of contents

@@ -395,7 +395,7 @@

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -412,6 +412,7 @@

Contributors

  • Tecnativa:
    • Carlos Dauden
    • Ernesto Tejeda
    • +
    • Carlos Roca
  • @@ -423,7 +424,7 @@

    Maintainers

    OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

    -

    This module is part of the OCA/multi-company project on GitHub.

    +

    This module is part of the OCA/multi-company project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

    diff --git a/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py b/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py index 98c9eca30dc..24699e48c42 100644 --- a/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py +++ b/account_multicompany_easy_creation/wizards/multicompany_easy_creation.py @@ -1,4 +1,4 @@ -# Copyright 2018 Carlos Dauden - Tecnativa +# Copyright 2018 Tecnativa - Carlos Dauden # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import _, fields, models @@ -12,9 +12,15 @@ class AccountMulticompanyEasyCreationWiz(models.TransientModel): _description = "Wizard Account Multi-company Easy Creation" def _default_sequence_ids(self): + # this is a "trick" for avoiding glue modules exclude_seq_list = self.env["ir.config_parameter"].get_param( "account_multicompany_easy_creation.exclude_sequence_list", - [False, "aeat.sequence.type"], + [ + False, + "aeat.sequence.type", + "pos.config.simplified_invoice", + "stock.scrap", + ], ) if not isinstance(exclude_seq_list, list): exclude_seq_list = safe_eval(exclude_seq_list) @@ -108,15 +114,9 @@ def _default_sequence_ids(self): string="Default Category Expense Account", ) - def install_chart_account(self): - """ install a chart of accounts for the given company """ - user_company = self.env.user.company_id - self.env.user.company_id = self.new_company_id - self.sudo().chart_template_id.try_loading_for_current_company() - self.env.user.company_id = user_company - def create_bank_journals(self): AccountJournal = self.env["account.journal"].sudo() + AccountAccount = self.env["account.account"].sudo() bank_journals = AccountJournal.search( [("type", "=", "bank"), ("company_id", "=", self.new_company_id.id)] ) @@ -129,12 +129,22 @@ def create_bank_journals(self): if i < len(bank_journals): bank_journals[i].update(vals) else: + account_account = AccountAccount.create( + { + "code": "57200X", + "name": vals["name"], + "user_type_id": self.env.ref( + "account.data_account_type_liquidity" + ).id, + "company_id": vals["company_id"], + } + ) vals.update( { "code": False, "sequence_id": False, - "default_debit_account_id": False, - "default_credit_account_id": False, + "default_debit_account_id": account_account.id, + "default_credit_account_id": account_account.id, } ) AccountJournal.create(vals) @@ -147,11 +157,14 @@ def create_company(self): self.new_company_id = self.env["res.company"].create( {"name": self.name, "user_ids": [(6, 0, self.user_ids.ids)]} ) - self.install_chart_account() + self.new_company_id = self.env["res.company"].create( + {"name": self.name, "user_ids": [(6, 0, self.user_ids.ids)]} + ) + self.new_company_id.chart_template_id = self.chart_template_id + self.new_company_id.chart_template_id.try_loading_for_current_company() self.create_bank_journals() self.create_sequences() - # TODO: Cache don't work @ormcache("self.id", "company_id", "match_tax_ids") def taxes_by_company(self, company_id, match_tax_ids): AccountTax = self.env["account.tax"].sudo() @@ -363,6 +376,7 @@ class AccountMulticompanyBankWiz(models.TransientModel): _inherit = "res.partner.bank" _name = "account.multicompany.bank.wiz" _order = "id" + _description = "Wizard Account Multi-company Bank" wizard_id = fields.Many2one(comodel_name="account.multicompany.easy.creation.wiz",) partner_id = fields.Many2one(required=False,) diff --git a/account_multicompany_easy_creation/wizards/multicompany_easy_creation.xml b/account_multicompany_easy_creation/wizards/multicompany_easy_creation.xml index f5fe99f269b..6eecf37fa14 100644 --- a/account_multicompany_easy_creation/wizards/multicompany_easy_creation.xml +++ b/account_multicompany_easy_creation/wizards/multicompany_easy_creation.xml @@ -1,5 +1,5 @@ - - @@ -92,19 +92,28 @@ - + + + + + + + + + +
    -
    + or +