From 92015be2766bf3d3e5d86478f4fd0c73de4d5e86 Mon Sep 17 00:00:00 2001 From: "Bhumika (OpenERP)" Date: Mon, 27 Feb 2012 14:16:11 +0530 Subject: [PATCH] [Fix] account: fix field name in yml bzr revid: sbh@tinyerp.com-20120227084611-29mx3m5awxivoa8i --- addons/account/account_pre_install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/account_pre_install.yml b/addons/account/account_pre_install.yml index 13adbe8108f..744a8c4bc99 100644 --- a/addons/account/account_pre_install.yml +++ b/addons/account/account_pre_install.yml @@ -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')], {