[FIX] l10n_ch: solved the issue of unable to configure swiss chart

lp bug: https://launchpad.net/bugs/1045842 fixed

bzr revid: cha@tinyerp.com-20120913090117-whym4hu1q4w23p2m
This commit is contained in:
Ajay Chauhan (OpenERP)
2012-09-13 14:31:17 +05:30
parent 74df8d0147
commit 211c7c6a46
+2 -1
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()