diff --git a/account_chart_update/README.rst b/account_chart_update/README.rst index 7e83fc20..2407f0e1 100644 --- a/account_chart_update/README.rst +++ b/account_chart_update/README.rst @@ -57,6 +57,7 @@ Contributors * Pedro M. Baeza * Jairo Llopis * Jacques-Etienne Baudoux +* Sylvain Van Hoof Maintainer ---------- diff --git a/account_chart_update/__openerp__.py b/account_chart_update/__manifest__.py similarity index 85% rename from account_chart_update/__openerp__.py rename to account_chart_update/__manifest__.py index a564da38..cb41a289 100644 --- a/account_chart_update/__openerp__.py +++ b/account_chart_update/__manifest__.py @@ -2,14 +2,16 @@ # Copyright 2015-2017 Pedro Manuel Baeza # Copyright 2016 Jairo Llopis # Copyright 2016 Jacques-Etienne Baudoux +# Copyright 2016 Sylvain Van Hoof # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': "Detect changes and update the Account Chart from a template", "summary": "Wizard to update a company's account chart from a template", - 'version': "9.0.1.0.0", + 'version': "10.0.1.0.0", 'author': "Tecnativa, " - "BCIM," + "BCIM, " + "Okia, " "Odoo Community Association (OCA)", 'website': "http://odoo-community.org", 'depends': ["account"], @@ -18,6 +20,7 @@ 'Pedro M. Baeza', 'Jairo Llopis', 'Jacques-Etienne Baudoux', + 'Sylvain Van Hoof' ], 'license': "AGPL-3", "data": [ diff --git a/account_chart_update/wizard/wizard_chart_update.py b/account_chart_update/wizard/wizard_chart_update.py index 32e7c2b2..90bc7aa3 100644 --- a/account_chart_update/wizard/wizard_chart_update.py +++ b/account_chart_update/wizard/wizard_chart_update.py @@ -400,10 +400,9 @@ class WizardUpdateChartsAccounts(models.TransientModel): def diff_fields(self, template, real): """Get fields that are different in template and real records. - :param openerp.models.Model template: + :param odoo.models.Model template: Template record. - - :param openerp.models.Model real: + :param odoo.models.Model real: Real record. :return dict: @@ -561,6 +560,7 @@ class WizardUpdateChartsAccounts(models.TransientModel): """Load fiscal position templates to create/update.""" wiz_fp = self.env['wizard.update.charts.accounts.fiscal.position'] self.fiscal_position_ids.unlink() + # Search for new / updated fiscal positions templates = self.env['account.fiscal.position.template'].search( [('chart_template_id', 'in', self.chart_template_ids.ids)])