[Fix] account: fix field name in yml

bzr revid: sbh@tinyerp.com-20120227084611-29mx3m5awxivoa8i
This commit is contained in:
Bhumika (OpenERP)
2012-02-27 14:16:11 +05:30
parent d39fca9edd
commit 92015be276
+2 -2
View File
@@ -7,8 +7,8 @@
wiz = wizards.browse(cr, uid, ref('account.account_configuration_installer_todo'))
part = self.pool.get('res.partner').browse(cr, uid, ref('base.main_partner'))
# if we know the country and the wizard has not yet been executed, we do it
if (part.country.id) and (wiz.state=='open'):
mod = 'l10n_'+part.country.code.lower()
if (part.country_id.id) and (wiz.state=='open'):
mod = 'l10n_'+part.country_id.co7de.lower()
ids = modules.search(cr, uid, [ ('name','=',mod) ], context=context)
if ids:
wizards.write(cr, uid, [ref('account.account_configuration_installer_todo')], {