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