diff --git a/account_chart_update/README.rst b/account_chart_update/README.rst index 7e83fc20b..49e2d1c88 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 +* Nacho Muñoz Maintainer ---------- diff --git a/account_chart_update/__openerp__.py b/account_chart_update/__openerp__.py index 42ca45e6a..19fdb97a7 100644 --- a/account_chart_update/__openerp__.py +++ b/account_chart_update/__openerp__.py @@ -7,7 +7,7 @@ { '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': "9.0.1.0.1", 'author': "Tecnativa, " "BCIM," "Odoo Community Association (OCA)", @@ -18,6 +18,7 @@ 'Pedro M. Baeza', 'Jairo Llopis', 'Jacques-Etienne Baudoux', + 'Nacho Muñoz', ], '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 32e7c2b23..c74f32595 100644 --- a/account_chart_update/wizard/wizard_chart_update.py +++ b/account_chart_update/wizard/wizard_chart_update.py @@ -303,7 +303,7 @@ class WizardUpdateChartsAccounts(models.TransientModel): """Find a real fiscal position from a template.""" return self.env['account.fiscal.position'].search( [('name', 'in', templates.mapped("name")), - ('company_id', '=', self.company_id.id)]) + ('company_id', '=', self.company_id.id)], limit=1) @api.multi @tools.ormcache("templates", "current_fp_accounts")