[FIX]l10n_ch:solved configuration wizard traceback

bzr revid: kbh@tinyerp.com-20120921061643-5p25uqu3yidpppf5
This commit is contained in:
Khushboo Bhatt (Open ERP) 2012-09-21 11:46:43 +05:30
parent fa9b5c7dc3
commit aab48f93a5
1 changed files with 2 additions and 1 deletions

View File

@ -36,8 +36,9 @@ class WizardMultiChartsAccounts(osv.osv_memory):
def execute(self, cr, uid, ids, context=None):
"""Override of code in order to be able to link journal with account in XML"""
res = super(WizardMultiChartsAccounts, self).execute(cr, uid, ids, context)
path = addons.get_module_resource(os.path.join('l10n_ch','sterchi_chart','account_journal_rel.xml'))
path = addons.get_module_resource('l10n_ch','sterchi_chart','account_journal_rel.xml')
tools.convert_xml_import(cr, 'l10n_ch', path, idref=None, mode='init', noupdate=True, report=None)
res.update({'type': 'ir.actions.act_window_close'})
return res
WizardMultiChartsAccounts()