[Fix] account: fix field name in yml
bzr revid: sbh@tinyerp.com-20120227084611-29mx3m5awxivoa8i
This commit is contained in:
@@ -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')], {
|
||||
|
||||
Reference in New Issue
Block a user