From b89261ef3bc85eedc09f2de39d96832c640b217c Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Fri, 21 Dec 2012 11:32:42 +0100 Subject: [PATCH] [FIX] l10n_ch: typo in last merge bzr revid: odo@openerp.com-20121221103242-7tavx2vd2hq6iu6w --- addons/l10n_ch/account_wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/l10n_ch/account_wizard.py b/addons/l10n_ch/account_wizard.py index 26acd362e35..e0a9e84b90a 100644 --- a/addons/l10n_ch/account_wizard.py +++ b/addons/l10n_ch/account_wizard.py @@ -32,8 +32,8 @@ class WizardMultiChartsAccounts(TransientModel): # 0 is evaluated as False in python so we have to do this # because original wizard test code_digits value on a float widget if chart_template_id: - sterchi_template = self.pool.get('ir.model.data').get_object('l10n_ch','l10nch_chart_template') - if sterchi_template.id == template_id: + sterchi_template = self.pool.get('ir.model.data').get_object(cursor, uid, 'l10n_ch', 'l10nch_chart_template') + if sterchi_template.id == chart_template_id: res['value']['code_digits'] = 0 return res