[FIX]l10n_ch:solved configuration wizard traceback
bzr revid: kbh@tinyerp.com-20120921061643-5p25uqu3yidpppf5
This commit is contained in:
parent
fa9b5c7dc3
commit
aab48f93a5
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue