2
0

[MIG] account_chart_update: Migration to 12.0

This commit is contained in:
ernesto 2019-03-15 16:25:19 -04:00 committed by Luis J. Salvatierra
parent a8a21d0c0f
commit 4bf18c89b7
13 changed files with 306 additions and 280 deletions

View File

@ -7,20 +7,20 @@ Detect changes and update the Account Chart from a template
!! changes will be overwritten. !! !! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status :target: https://odoo-community.org/page/development-status
:alt: Mature :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github
:target: https://github.com/OCA/account-financial-tools/tree/11.0/account_chart_update :target: https://github.com/OCA/account-financial-tools/tree/12.0/account_chart_update
:alt: OCA/account-financial-tools :alt: OCA/account-financial-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-financial-tools-11-0/account-financial-tools-11-0-account_chart_update :target: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_chart_update
:alt: Translate me on Weblate :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/92/11.0 :target: https://runbot.odoo-community.org/runbot/92/12.0
:alt: Try me on Runbot :alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5| |badge1| |badge2| |badge3| |badge4| |badge5|
@ -46,7 +46,7 @@ The wizard:
Usage Usage
===== =====
The wizard, accesible from *Accounting > Settings > Update chart of accounts*, The wizard, accesible from *Accounting > Settings > Update Chart Template*,
lets the user select what kind of objects must be checked/updated, and whether lets the user select what kind of objects must be checked/updated, and whether
old records must be checked for changes and updates. old records must be checked for changes and updates.
@ -69,7 +69,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-tools/issues>`_. Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported. 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 If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_chart_update%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. `feedback <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_chart_update%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues. Do not contact contributors directly about support or help with technical issues.
@ -86,8 +86,12 @@ Authors
Contributors Contributors
~~~~~~~~~~~~ ~~~~~~~~~~~~
* Pedro M. Baeza <pedro.baeza@tecnativa.com> * `Tecnativa <https://www.tecnativa.com>`_:
* Jairo Llopis <jairo.llopis@tecnativa.com>
* Pedro M. Baeza
* Jairo Llopis
* Ernesto Tejeda
* Jacques-Etienne Baudoux <je@bcim.be> * Jacques-Etienne Baudoux <je@bcim.be>
* Sylvain Van Hoof <sylvain@okia.be> * Sylvain Van Hoof <sylvain@okia.be>
* Nacho Muñoz <nacmuro@gmail.com> * Nacho Muñoz <nacmuro@gmail.com>
@ -106,6 +110,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and mission is to support the collaborative development of Odoo features and
promote its widespread use. promote its widespread use.
This module is part of the `OCA/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/11.0/account_chart_update>`_ project on GitHub. This module is part of the `OCA/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/12.0/account_chart_update>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com> # Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
# Copyright 2016 Jacques-Etienne Baudoux <je@bcim.be> # Copyright 2016 Jacques-Etienne Baudoux <je@bcim.be>
# Copyright 2016 Sylvain Van Hoof <sylvain@okia.be> # Copyright 2016 Sylvain Van Hoof <sylvain@okia.be>
@ -6,21 +5,20 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{ {
'name': "Detect changes and update the Account Chart from a template", "name": "Detect changes and update the Account Chart from a template",
"summary": "Wizard to update a company's account chart from a template", "summary": "Wizard to update a company's account chart from a template",
'version': "11.0.2.1.0", "version": "12.0.1.0.0",
'author': "Tecnativa, " "author": "Tecnativa, "
"BCIM, " "BCIM, "
"Okia, " "Okia, "
"Odoo Community Association (OCA)", "Odoo Community Association (OCA)",
'website': "http://github.com/OCA/account-financial-tools", "website": "http://github.com/OCA/account-financial-tools",
'depends': ["account"], "depends": ["account"],
'development_status': 'Mature', "category": "Accounting",
'category': "Accounting", "license": "AGPL-3",
'license': "AGPL-3",
"data": [ "data": [
'wizard/wizard_chart_update_view.xml', "wizard/wizard_chart_update_view.xml",
'views/account_config_settings_view.xml', "views/account_config_settings_view.xml",
], ],
'installable': True, "installable": True,
} }

View File

@ -4,7 +4,7 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 11.0\n" "Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: \n" "Language-Team: \n"
@ -14,22 +14,27 @@ msgstr ""
"Plural-Forms: \n" "Plural-Forms: \n"
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_code_digits #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__code_digits
msgid "# of digits" msgid "# of Digits"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.res_config_settings_view_form
msgid "<span class=\"o_form_label\">Update Chart Template</span>"
msgstr ""
#. module: account_chart_update
#: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "<span states=\"init,ready\"> or </span>" msgid "<span states=\"init,ready\"> or </span>"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account_field_ids #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__account_field_ids
msgid "Account fields" msgid "Account fields"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account_account_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account__account_id
msgid "Account template" msgid "Account template"
msgstr "" msgstr ""
@ -39,38 +44,43 @@ msgid "Account that needs to be updated (new or updated in the template)."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account_update_account_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account__update_account_id
msgid "Account to update" msgid "Account to update"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account_ids #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__account_ids
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Accounts" msgid "Accounts"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_chart_template_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__account_matching_ids
msgid "Accounts matching"
msgstr ""
#. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__chart_template_id
msgid "Chart Template" msgid "Chart Template"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_chart_template_ids #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__chart_template_ids
msgid "Chart Templates" msgid "Chart Templates"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Chart of Accounts" msgid "Chart of Accounts"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Close" msgid "Close"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_company_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__company_id
msgid "Company" msgid "Company"
msgstr "" msgstr ""
@ -80,120 +90,120 @@ msgid "Configuration"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_continue_on_errors #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__continue_on_errors
msgid "Continue on errors" msgid "Continue on errors"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Create/Update" msgid "Create/Update"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:838 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:822
#, python-format #, python-format
msgid "Created account %s." msgid "Created account %s."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching_create_uid #: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching__create_uid
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching_create_uid #: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching__create_uid
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching_create_uid #: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching__create_uid
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching_create_uid #: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching__create_uid
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account_create_uid #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__create_uid
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_create_uid #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account__create_uid
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position_create_uid #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position__create_uid
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax_create_uid #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax__create_uid
msgid "Created by" msgid "Created by"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:943 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:927
#, python-format #, python-format
msgid "Created fiscal position %s." msgid "Created fiscal position %s."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching_create_date #: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching__create_date
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching_create_date #: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching__create_date
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching_create_date #: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching__create_date
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching_create_date #: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching__create_date
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account_create_date #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__create_date
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_create_date #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account__create_date
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position_create_date #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position__create_date
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax_create_date #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax__create_date
msgid "Created on" msgid "Created on"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:801 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:785
#, python-format #, python-format
msgid "Created tax %s." msgid "Created tax %s."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:796 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:780
#, python-format #, python-format
msgid "Deactivated tax %s." msgid "Deactivated tax %s."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_deleted_taxes #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__deleted_taxes
msgid "Deactivated taxes" msgid "Deactivated taxes"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts_tax_type_tax_use #: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts_tax__type_tax_use
msgid "Determines where the tax is selectable. Note : 'None' means a tax can't be used by itself, however it can still be used in a group." msgid "Determines where the tax is selectable. Note : 'None' means a tax can't be used by itself, however it can still be used in a group. 'adjustment' is used to perform tax adjustment."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:631 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:615
#, python-format #, python-format
msgid "Differences in these fields: %s." msgid "Differences in these fields: %s."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching_display_name #: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching__display_name
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching_display_name #: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching__display_name
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching_display_name #: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching__display_name
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching_display_name #: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching__display_name
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account_display_name #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__display_name
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_display_name #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account__display_name
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position_display_name #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position__display_name
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax_display_name #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax__display_name
msgid "Display Name" msgid "Display Name"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:847 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:831
#, python-format #, python-format
msgid "Exception creating account %s." msgid "Exception creating account %s."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:877 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:861
#, python-format #, python-format
msgid "Exception writing account %s." msgid "Exception writing account %s."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts_update_account #: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts__update_account
msgid "Existing accounts are updated. Accounts are searched by code." msgid "Existing accounts are updated. Accounts are searched by code."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts_update_fiscal_position #: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts__update_fiscal_position
msgid "Existing fiscal positions are updated. Fiscal positions are searched by name." msgid "Existing fiscal positions are updated. Fiscal positions are searched by name."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts_update_tax #: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts__update_tax
msgid "Existing taxes are updated. Taxes are searched by name." msgid "Existing taxes are updated. Taxes are searched by name."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Field options" msgid "Field options"
msgstr "" msgstr ""
@ -203,12 +213,12 @@ msgid "Fields"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fp_field_ids #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__fp_field_ids
msgid "Fiscal position fields" msgid "Fiscal position fields"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position_fiscal_position_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position__fiscal_position_id
msgid "Fiscal position template" msgid "Fiscal position template"
msgstr "" msgstr ""
@ -218,153 +228,161 @@ msgid "Fiscal position that needs to be updated (new or updated in the template)
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position_update_fiscal_position_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position__update_fiscal_position_id
msgid "Fiscal position to update" msgid "Fiscal position to update"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position_ids #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__fiscal_position_ids
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Fiscal positions" msgid "Fiscal positions"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts_lang #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__fp_matching_ids
msgid "Fiscal positions matching"
msgstr ""
#. module: account_chart_update
#: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts__lang
msgid "For records searched by name (taxes, fiscal positions), the template name will be matched against the record name on this language." msgid "For records searched by name (taxes, fiscal positions), the template name will be matched against the record name on this language."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "General options" msgid "General options"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Here you can select the fields you want to check if they have been updated in the templates." msgid "Here you can select the fields you want to check if\n"
" they have been updated in the templates."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Here you can set the matching order." msgid "Here you can set the matching order."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching__id
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching__id
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching__id
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching__id
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__id
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account__id
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position__id
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax__id
msgid "ID" msgid "ID"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts_continue_on_errors #: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts__continue_on_errors
msgid "If set, the wizard will continue to the next step even if there are minor errors." msgid "If set, the wizard will continue to the next step even if there are minor errors."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "If you leave these options set, the wizard will not just create new records, but also update records with changes (i.e. different tax amount)" msgid "If you leave these options set, the wizard will\n"
" not just create new records, but also update\n"
" records with changes (i.e. different tax amount)"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts_chart_template_ids #: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts__chart_template_ids
msgid "Includes all chart templates." msgid "Includes all chart templates."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_lang #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__lang
msgid "Language" msgid "Language"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching___last_update #: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching____last_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching___last_update #: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching____last_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching___last_update #: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching____last_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching___last_update #: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching____last_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts___last_update #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts____last_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account___last_update #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account____last_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position___last_update #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position____last_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax___last_update #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax____last_update
msgid "Last Modified on" msgid "Last Modified on"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching_write_uid #: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching__write_uid
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching_write_uid #: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching__write_uid
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching_write_uid #: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching__write_uid
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching_write_uid #: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching__write_uid
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account_write_uid #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__write_uid
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position_write_uid #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account__write_uid
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax_write_uid #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position__write_uid
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_write_uid #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax__write_uid
msgid "Last Updated by" msgid "Last Updated by"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching_write_date #: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching__write_date
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching_write_date #: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching__write_date
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching_write_date #: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching__write_date
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching_write_date #: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching__write_date
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account_write_date #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__write_date
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position_write_date #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account__write_date
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax_write_date #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position__write_date
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_write_date #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax__write_date
msgid "Last Updated on" msgid "Last Updated on"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Log" msgid "Log"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Matching" msgid "Matching"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching_matching_value #: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching__matching_value
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching_matching_value #: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching__matching_value
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching_matching_value #: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching__matching_value
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching_matching_value #: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching__matching_value
msgid "Matching Value" msgid "Matching Value"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_log #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__log
msgid "Messages and Errors" msgid "Messages and Errors"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:671 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:655
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:717 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:701
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:755 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:739
#, python-format #, python-format
msgid "Missing XML-ID." msgid "Missing XML-ID."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:662 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:646
#, python-format #, python-format
msgid "Name or description not found." msgid "Name or description not found."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_new_accounts #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__new_accounts
msgid "New accounts" msgid "New accounts"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_new_fps #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__new_fps
msgid "New fiscal positions" msgid "New fiscal positions"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_new_taxes #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__new_taxes
msgid "New taxes" msgid "New taxes"
msgstr "" msgstr ""
@ -376,41 +394,41 @@ msgid "New template"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Next" msgid "Next"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:709 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:693
#, python-format #, python-format
msgid "No account found with this code." msgid "No account found with this code."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:747 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:731
#, python-format #, python-format
msgid "No fiscal position found with this name." msgid "No fiscal position found with this name."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts_code_digits #: model:ir.model.fields,help:account_chart_update.field_wizard_update_charts_accounts__code_digits
msgid "No. of digits to use for account code. Make sure it is the same number as existing accounts." msgid "No. of Digits to use for account code"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Note: Only the changed fields are updated." msgid "Note: Only the changed fields are updated."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account_notes #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account__notes
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position_notes #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position__notes
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax_notes #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax__notes
msgid "Notes" msgid "Notes"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:349 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:333
#, python-format #, python-format
msgid "One or more errors detected!\n" msgid "One or more errors detected!\n"
"\n" "\n"
@ -418,38 +436,38 @@ msgid "One or more errors detected!\n"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Other options" msgid "Other options"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:900 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:884
#, python-format #, python-format
msgid "Post-updated tax %s." msgid "Post-updated tax %s."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Previous" msgid "Previous"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Records to create/update" msgid "Records to create/update"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_recreate_xml_ids #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__recreate_xml_ids
msgid "Recreate missing XML-IDs" msgid "Recreate missing XML-IDs"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_rejected_new_account_number #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__rejected_new_account_number
msgid "Rejected New Account Number" msgid "Rejected New Account Number"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_rejected_updated_account_number #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__rejected_updated_account_number
msgid "Rejected Updated Account Number" msgid "Rejected Updated Account Number"
msgstr "" msgstr ""
@ -459,46 +477,46 @@ msgid "Select records to update"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching_sequence #: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching__sequence
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching_sequence #: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching__sequence
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching_sequence #: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching__sequence
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching_sequence #: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching__sequence
msgid "Sequence" msgid "Sequence"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_state #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__state
msgid "Status" msgid "Status"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Summary of created objects" msgid "Summary of created objects"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Summary of updated objects" msgid "Summary of updated objects"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax_type_tax_use #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax__type_tax_use
msgid "Tax Scope" msgid "Tax Scope"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax_field_ids #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__tax_field_ids
msgid "Tax fields" msgid "Tax fields"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:636 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:620
#, python-format #, python-format
msgid "Tax is disabled." msgid "Tax is disabled."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax_tax_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax__tax_id
msgid "Tax template" msgid "Tax template"
msgstr "" msgstr ""
@ -513,53 +531,53 @@ msgid "Tax to deactivate"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax_update_tax_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax__update_tax_id
msgid "Tax to update" msgid "Tax to update"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax_ids #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__tax_ids
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Taxes" msgid "Taxes"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account_matching_ids #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__tax_matching_ids
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fp_matching_ids
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax_matching_ids
msgid "Taxes matching" msgid "Taxes matching"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "This wizard will update your accounts, taxes and fiscal positions according to the selected chart template" msgid "This wizard will update your accounts, taxes and\n"
" fiscal positions according to the selected chart\n"
" template"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:693 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:677
#, python-format #, python-format
msgid "To deactivate: not in the template" msgid "To deactivate: not in the template"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account_type #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account__type
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position_type #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position__type
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax_type #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax__type
msgid "Type" msgid "Type"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_res_config_settings #: model_terms:ir.ui.view,arch_db:account_chart_update.res_config_settings_view_form
msgid "Update Chart Template" msgid "Update Chart Template"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_res_config_settings #: model_terms:ir.ui.view,arch_db:account_chart_update.res_config_settings_view_form
msgid "Update Taxes, fiscal positions or chart of accounts." msgid "Update Taxes, fiscal positions or chart of accounts."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_update_account #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__update_account
msgid "Update accounts" msgid "Update accounts"
msgstr "" msgstr ""
@ -569,84 +587,84 @@ msgid "Update chart of accounts"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_res_config_settings #: model_terms:ir.ui.view,arch_db:account_chart_update.res_config_settings_view_form
msgid "Update chart template" msgid "Update chart template"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching_update_chart_wizard_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_account_matching__update_chart_wizard_id
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching_update_chart_wizard_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_fp_matching__update_chart_wizard_id
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching_update_chart_wizard_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_matching__update_chart_wizard_id
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching_update_chart_wizard_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_tax_matching__update_chart_wizard_id
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account_update_chart_wizard_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_account__update_chart_wizard_id
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position_update_chart_wizard_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_fiscal_position__update_chart_wizard_id
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax_update_chart_wizard_id #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_tax__update_chart_wizard_id
msgid "Update chart wizard" msgid "Update chart wizard"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_update_fiscal_position #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__update_fiscal_position
msgid "Update fiscal positions" msgid "Update fiscal positions"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart #: model_terms:ir.ui.view,arch_db:account_chart_update.view_update_multi_chart
msgid "Update records?" msgid "Update records?"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_update_tax #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__update_tax
msgid "Update taxes" msgid "Update taxes"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:860 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:844
#, python-format #, python-format
msgid "Updated account %s." msgid "Updated account %s."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:867 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:851
#, python-format #, python-format
msgid "Updated account %s. (Recreated XML-ID)" msgid "Updated account %s. (Recreated XML-ID)"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_updated_accounts #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__updated_accounts
msgid "Updated accounts" msgid "Updated accounts"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:949 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:933
#, python-format #, python-format
msgid "Updated fiscal position %s." msgid "Updated fiscal position %s."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:955 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:939
#, python-format #, python-format
msgid "Updated fiscal position %s. (Recreated XML-ID)" msgid "Updated fiscal position %s. (Recreated XML-ID)"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_updated_fps #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__updated_fps
msgid "Updated fiscal positions" msgid "Updated fiscal positions"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:809 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:793
#, python-format #, python-format
msgid "Updated tax %s." msgid "Updated tax %s."
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: code:addons/account_chart_update/wizard/wizard_chart_update.py:812 #: code:addons/account_chart_update/wizard/wizard_chart_update.py:796
#, python-format #, python-format
msgid "Updated tax %s. (Recreated XML-IDs)" msgid "Updated tax %s. (Recreated XML-IDs)"
msgstr "" msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts_updated_taxes #: model:ir.model.fields,field_description:account_chart_update.field_wizard_update_charts_accounts__updated_taxes
msgid "Updated taxes" msgid "Updated taxes"
msgstr "" msgstr ""
@ -657,6 +675,16 @@ msgstr ""
msgid "Updated template" msgid "Updated template"
msgstr "" msgstr ""
#. module: account_chart_update
#: model:ir.model,name:account_chart_update.model_wizard_matching
msgid "Wizard Matching"
msgstr ""
#. module: account_chart_update
#: model:ir.model,name:account_chart_update.model_wizard_update_charts_accounts
msgid "Wizard Update Charts Accounts"
msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: selection:wizard.update.charts.accounts,state:0 #: selection:wizard.update.charts.accounts,state:0
msgid "Wizard completed" msgid "Wizard completed"
@ -672,18 +700,8 @@ msgstr ""
msgid "wizard.fp.matching" msgid "wizard.fp.matching"
msgstr "" msgstr ""
#. module: account_chart_update
#: model:ir.model,name:account_chart_update.model_wizard_matching
msgid "wizard.matching"
msgstr ""
#. module: account_chart_update #. module: account_chart_update
#: model:ir.model,name:account_chart_update.model_wizard_tax_matching #: model:ir.model,name:account_chart_update.model_wizard_tax_matching
msgid "wizard.tax.matching" msgid "wizard.tax.matching"
msgstr "" msgstr ""
#. module: account_chart_update
#: model:ir.model,name:account_chart_update.model_wizard_update_charts_accounts
msgid "wizard.update.charts.accounts"
msgstr ""

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import ir_model_fields from . import ir_model_fields

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2018 Tecnativa - Pedro M. Baeza # Copyright 2018 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

View File

@ -1,5 +1,9 @@
* Pedro M. Baeza <pedro.baeza@tecnativa.com> * `Tecnativa <https://www.tecnativa.com>`_:
* Jairo Llopis <jairo.llopis@tecnativa.com>
* Pedro M. Baeza
* Jairo Llopis
* Ernesto Tejeda
* Jacques-Etienne Baudoux <je@bcim.be> * Jacques-Etienne Baudoux <je@bcim.be>
* Sylvain Van Hoof <sylvain@okia.be> * Sylvain Van Hoof <sylvain@okia.be>
* Nacho Muñoz <nacmuro@gmail.com> * Nacho Muñoz <nacmuro@gmail.com>

View File

@ -1,4 +1,4 @@
The wizard, accesible from *Accounting > Settings > Update chart of accounts*, The wizard, accesible from *Accounting > Settings > Update Chart Template*,
lets the user select what kind of objects must be checked/updated, and whether lets the user select what kind of objects must be checked/updated, and whether
old records must be checked for changes and updates. old records must be checked for changes and updates.

View File

@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !! !! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !! !! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/11.0/account_chart_update"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/account-financial-tools-11-0/account-financial-tools-11-0-account_chart_update"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/92/11.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/12.0/account_chart_update"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_chart_update"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/92/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This is a pretty useful tool to update Odoo installations after tax reforms <p>This is a pretty useful tool to update Odoo installations after tax reforms
on the official charts of accounts, or to apply fixes performed on the chart on the official charts of accounts, or to apply fixes performed on the chart
template.</p> template.</p>
@ -396,7 +396,7 @@ positions that got modified on the template.</li>
</div> </div>
<div class="section" id="usage"> <div class="section" id="usage">
<h1><a class="toc-backref" href="#id1">Usage</a></h1> <h1><a class="toc-backref" href="#id1">Usage</a></h1>
<p>The wizard, accesible from <em>Accounting &gt; Settings &gt; Update chart of accounts</em>, <p>The wizard, accesible from <em>Accounting &gt; Settings &gt; Update Chart Template</em>,
lets the user select what kind of objects must be checked/updated, and whether lets the user select what kind of objects must be checked/updated, and whether
old records must be checked for changes and updates.</p> old records must be checked for changes and updates.</p>
<p>It will display all the objects to be created / updated / deactivated with some <p>It will display all the objects to be created / updated / deactivated with some
@ -418,7 +418,7 @@ deactivate).</li>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-tools/issues">GitHub Issues</a>. <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-tools/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported. 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 If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_chart_update%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <a class="reference external" href="https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_chart_update%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p> <p>Do not contact contributors directly about support or help with technical issues.</p>
</div> </div>
<div class="section" id="credits"> <div class="section" id="credits">
@ -434,8 +434,12 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<div class="section" id="contributors"> <div class="section" id="contributors">
<h2><a class="toc-backref" href="#id6">Contributors</a></h2> <h2><a class="toc-backref" href="#id6">Contributors</a></h2>
<ul class="simple"> <ul class="simple">
<li>Pedro M. Baeza &lt;<a class="reference external" href="mailto:pedro.baeza&#64;tecnativa.com">pedro.baeza&#64;tecnativa.com</a>&gt;</li> <li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
<li>Jairo Llopis &lt;<a class="reference external" href="mailto:jairo.llopis&#64;tecnativa.com">jairo.llopis&#64;tecnativa.com</a>&gt;</li> <li>Pedro M. Baeza</li>
<li>Jairo Llopis</li>
<li>Ernesto Tejeda</li>
</ul>
</li>
<li>Jacques-Etienne Baudoux &lt;<a class="reference external" href="mailto:je&#64;bcim.be">je&#64;bcim.be</a>&gt;</li> <li>Jacques-Etienne Baudoux &lt;<a class="reference external" href="mailto:je&#64;bcim.be">je&#64;bcim.be</a>&gt;</li>
<li>Sylvain Van Hoof &lt;<a class="reference external" href="mailto:sylvain&#64;okia.be">sylvain&#64;okia.be</a>&gt;</li> <li>Sylvain Van Hoof &lt;<a class="reference external" href="mailto:sylvain&#64;okia.be">sylvain&#64;okia.be</a>&gt;</li>
<li>Nacho Muñoz &lt;<a class="reference external" href="mailto:nacmuro&#64;gmail.com">nacmuro&#64;gmail.com</a>&gt;</li> <li>Nacho Muñoz &lt;<a class="reference external" href="mailto:nacmuro&#64;gmail.com">nacmuro&#64;gmail.com</a>&gt;</li>
@ -449,7 +453,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and mission is to support the collaborative development of Odoo features and
promote its widespread use.</p> promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/11.0/account_chart_update">OCA/account-financial-tools</a> project on GitHub.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/12.0/account_chart_update">OCA/account-financial-tools</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div> </div>
</div> </div>

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import test_account_chart_update from . import test_account_chart_update

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields from odoo import fields
@ -67,6 +66,9 @@ class TestAccountChartUpdate(common.HttpCase):
'currency_id': self.env.ref('base.EUR').id, 'currency_id': self.env.ref('base.EUR').id,
'code_digits': 6, 'code_digits': 6,
'transfer_account_id': self.account_template.id, 'transfer_account_id': self.account_template.id,
'cash_account_code_prefix': '570',
'bank_account_code_prefix': '572',
'transfer_account_code_prefix': '100000',
}) })
self.account_template.chart_template_id = self.chart_template.id self.account_template.chart_template_id = self.chart_template.id
self.account_template_pl = self._create_account_tmpl( self.account_template_pl = self._create_account_tmpl(
@ -106,18 +108,10 @@ class TestAccountChartUpdate(common.HttpCase):
'name': 'Test account_chart_update company', 'name': 'Test account_chart_update company',
'currency_id': self.chart_template.currency_id.id, 'currency_id': self.chart_template.currency_id.id,
}) })
# Load chart of template into company company_user = self.env.user.copy({'company_id': self.company.id})
wizard = self.env['wizard.multi.charts.accounts'].create({ chart_by_company_user = self.chart_template.sudo(company_user)
'company_id': self.company.id, chart_by_company_user.try_loading_for_current_company()
'chart_template_id': self.chart_template.id,
'code_digits': self.chart_template.code_digits,
'transfer_account_id': self.account_template.id,
'currency_id': self.chart_template.currency_id.id,
'bank_account_code_prefix': '572',
'cash_account_code_prefix': '570',
})
wizard.onchange_chart_template_id()
wizard.execute()
self.tax = self.env['account.tax'].search([ self.tax = self.env['account.tax'].search([
('name', '=', self.tax_template.name), ('name', '=', self.tax_template.name),
('company_id', '=', self.company.id), ('company_id', '=', self.company.id),
@ -310,7 +304,7 @@ class TestAccountChartUpdate(common.HttpCase):
self.assertFalse(new_tax.active) self.assertFalse(new_tax.active)
wizard.unlink() wizard.unlink()
# Errors on account update # Errors on account update
self.account_template.reconcile = True self.account_template.currency_id = self.ref('base.USD')
self.env['account.move'].create({ self.env['account.move'].create({
'name': 'Test move', 'name': 'Test move',
'journal_id': self.env['account.journal'].search([ 'journal_id': self.env['account.journal'].search([
@ -323,6 +317,7 @@ class TestAccountChartUpdate(common.HttpCase):
'name': 'Test move line', 'name': 'Test move line',
'debit': 10, 'debit': 10,
'credit': 0, 'credit': 0,
'currency_id': self.ref('base.EUR'),
}), }),
(0, 0, { (0, 0, {
'account_id': self.account.id, 'account_id': self.account.id,
@ -340,13 +335,13 @@ class TestAccountChartUpdate(common.HttpCase):
# Errors on account update - continuing after that # Errors on account update - continuing after that
wizard.continue_on_errors = True wizard.continue_on_errors = True
wizard.action_update_records() wizard.action_update_records()
self.assertFalse(self.account.reconcile) self.assertFalse(self.account.currency_id)
self.assertEqual(self.tax.description, self.tax_template.description) self.assertEqual(self.tax.description, self.tax_template.description)
self.assertEqual(wizard.rejected_updated_account_number, 1) self.assertEqual(wizard.rejected_updated_account_number, 1)
self.assertEqual(wizard.updated_accounts, 0) self.assertEqual(wizard.updated_accounts, 0)
wizard.unlink() wizard.unlink()
# Errors on account_creation # Errors on account_creation
self.account_template.reconcile = False self.account_template.currency_id = False
new_account_tmpl_2 = self._create_account_tmpl( new_account_tmpl_2 = self._create_account_tmpl(
'Test account 3', '444444', self.account_type, self.chart_template, 'Test account 3', '444444', self.account_type, self.chart_template,
) )

View File

@ -1,21 +1,19 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- © 2016 Jairo Llopis <jairo.llopis@tecnativa.com> <!-- Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<record id="view_res_config_settings" model="ir.ui.view"> <field name="name">Open Account Chart Update Wizard 2</field>
<field name="name">Open Account Chart Update Wizard</field>
<field name="model">res.config.settings</field> <field name="model">res.config.settings</field>
<field name="inherit_id" ref="account.res_config_settings_view_form"/> <field name="inherit_id" ref="account.res_config_settings_view_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<div data-key="account" position="inside">
<div data-key="account_invoicing" position="inside">
<h2>Update Chart Template</h2> <h2>Update Chart Template</h2>
<div class="row mt16 o_settings_container"> <div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box"> <div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane"/> <div class="o_setting_left_pane"/>
<div class="o_setting_right_pane"> <div class="o_setting_right_pane">
<label string="Update Chart Template"/> <span class="o_form_label">Update Chart Template</span>
<div class="text-muted"> <div class="text-muted">
Update Taxes, fiscal positions or chart of accounts. Update Taxes, fiscal positions or chart of accounts.
</div> </div>

View File

@ -1,10 +1,10 @@
# © 2010 Jordi Esteve, Zikzakmedia S.L. (http://www.zikzakmedia.com) # Copyright 2010 Jordi Esteve, Zikzakmedia S.L. (http://www.zikzakmedia.com)
# © 2010 Pexego Sistemas Informáticos S.L.(http://www.pexego.es) # Copyright 2010 Pexego Sistemas Informáticos S.L.(http://www.pexego.es)
# Borja López Soilán # Borja López Soilán
# © 2013 Joaquin Gutierrez (http://www.gutierrezweb.es) # Copyright 2013 Joaquin Gutierrez (http://www.gutierrezweb.es)
# © 2015 Antonio Espinosa <antonioea@tecnativa.com> # Copyright 2015 Antonio Espinosa <antonioea@tecnativa.com>
# © 2016 Jairo Llopis <jairo.llopis@tecnativa.com> # Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
# © 2016 Jacques-Etienne Baudoux <je@bcim.be> # Copyright 2016 Jacques-Etienne Baudoux <je@bcim.be>
# Copyright 2018 Tecnativa - Pedro M. Baeza # Copyright 2018 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
@ -20,6 +20,7 @@ EXCEPTION_TEXT = "Traceback (most recent call last)"
class WizardUpdateChartsAccounts(models.TransientModel): class WizardUpdateChartsAccounts(models.TransientModel):
_name = 'wizard.update.charts.accounts' _name = 'wizard.update.charts.accounts'
_description = 'Wizard Update Charts Accounts'
state = fields.Selection( state = fields.Selection(
selection=[('init', 'Configuration'), selection=[('init', 'Configuration'),
@ -38,9 +39,7 @@ class WizardUpdateChartsAccounts(models.TransientModel):
compute="_compute_chart_template_ids", compute="_compute_chart_template_ids",
help="Includes all chart templates.") help="Includes all chart templates.")
code_digits = fields.Integer( code_digits = fields.Integer(
string='# of digits', required=True, related="chart_template_id.code_digits")
help="No. of digits to use for account code. "
"Make sure it is the same number as existing accounts.")
lang = fields.Selection( lang = fields.Selection(
lambda self: self._get_lang_selection_options(), 'Language', size=5, lambda self: self._get_lang_selection_options(), 'Language', size=5,
required=True, required=True,
@ -129,13 +128,13 @@ class WizardUpdateChartsAccounts(models.TransientModel):
account_matching_ids = fields.One2many( account_matching_ids = fields.One2many(
comodel_name="wizard.account.matching", comodel_name="wizard.account.matching",
inverse_name="update_chart_wizard_id", inverse_name="update_chart_wizard_id",
string="Taxes matching", string="Accounts matching",
default=lambda self: self._default_account_matching_ids(), default=lambda self: self._default_account_matching_ids(),
) )
fp_matching_ids = fields.One2many( fp_matching_ids = fields.One2many(
comodel_name="wizard.fp.matching", comodel_name="wizard.fp.matching",
inverse_name="update_chart_wizard_id", inverse_name="update_chart_wizard_id",
string="Taxes matching", string="Fiscal positions matching",
default=lambda self: self._default_fp_matching_ids(), default=lambda self: self._default_fp_matching_ids(),
) )
@ -204,9 +203,8 @@ class WizardUpdateChartsAccounts(models.TransientModel):
@api.multi @api.multi
@api.depends("chart_template_id") @api.depends("chart_template_id")
def _compute_chart_template_ids(self): def _compute_chart_template_ids(self):
self.chart_template_ids = ( all_parents = self.chart_template_id._get_chart_parent_ids()
self.env['wizard.multi.charts.accounts'] self.chart_template_ids = all_parents
._get_chart_parent_ids(self.chart_template_id))
@api.multi @api.multi
@api.depends('tax_ids') @api.depends('tax_ids')
@ -256,20 +254,6 @@ class WizardUpdateChartsAccounts(models.TransientModel):
def _onchage_company_update_chart_template(self): def _onchage_company_update_chart_template(self):
self.chart_template_id = self.company_id.chart_template_id self.chart_template_id = self.company_id.chart_template_id
@api.model
def _get_code_digits(self, company=None):
"""Returns the number of digits for the accounts, fetched from
the company.
"""
if company is None:
company = self.env.user.company_id
return company.accounts_code_digits or 6
@api.onchange('company_id')
def onchange_company_id(self):
"""Update the code digits when the company changes"""
self.code_digits = self._get_code_digits(company=self.company_id)
@api.multi @api.multi
def _reopen(self): def _reopen(self):
return { return {
@ -1030,6 +1014,7 @@ class WizardUpdateChartsAccountsFiscalPosition(models.TransientModel):
class WizardMatching(models.TransientModel): class WizardMatching(models.TransientModel):
_name = 'wizard.matching' _name = 'wizard.matching'
_description = 'Wizard Matching'
_order = 'sequence' _order = 'sequence'
update_chart_wizard_id = fields.Many2one( update_chart_wizard_id = fields.Many2one(

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- © 2016 Jairo Llopis <jairo.llopis@tecnativa.com> <!-- Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
@ -18,7 +18,13 @@
</header> </header>
<group attrs="{'invisible':[('state','!=','init')]}"> <group attrs="{'invisible':[('state','!=','init')]}">
<h3> <h3>
<p><center>This wizard will update your accounts, taxes and fiscal positions according to the selected chart template</center></p> <p>
<center>
This wizard will update your accounts, taxes and
fiscal positions according to the selected chart
template
</center>
</p>
</h3> </h3>
</group> </group>
<group string="Chart of Accounts" attrs="{'invisible':[('state','!=','init')]}"> <group string="Chart of Accounts" attrs="{'invisible':[('state','!=','init')]}">
@ -47,16 +53,29 @@
</group> </group>
<group> <group>
<h5> <h5>
<p>If you leave these options set, the wizard will not just create new records, but also update records with changes (i.e. different tax amount)</p> <p>
<p>Note: Only the changed fields are updated.</p> If you leave these options set, the wizard will
not just create new records, but also update
records with changes (i.e. different tax amount)
</p>
<p>
Note: Only the changed fields are updated.
</p>
</h5> </h5>
</group> </group>
</page> </page>
<page string="Field options" <page string="Field options"
attrs="{'invisible': [('update_tax', '=', False), ('update_account', '=', False), ('update_fiscal_position', '=', False)]}" attrs="{'invisible': [
('update_tax', '=', False),
('update_account', '=', False),
('update_fiscal_position', '=', False),
]}"
> >
<h3> <h3>
<p>Here you can select the fields you want to check if they have been updated in the templates.</p> <p>
Here you can select the fields you want to check if
they have been updated in the templates.
</p>
</h3> </h3>
<notebook> <notebook>
<page string="Taxes" <page string="Taxes"
@ -89,7 +108,11 @@
</notebook> </notebook>
</page> </page>
<page string="Matching" <page string="Matching"
attrs="{'invisible': [('update_tax', '=', False), ('update_account', '=', False), ('update_fiscal_position', '=', False)]}" attrs="{'invisible': [
('update_tax', '=', False),
('update_account', '=', False),
('update_fiscal_position', '=', False),
]}"
> >
<h3> <h3>
<p>Here you can set the matching order.</p> <p>Here you can set the matching order.</p>