diff --git a/addons/account/account.py b/addons/account/account.py index 37455e59cd1..8dc3f98ff02 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -2784,7 +2784,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): data = data_pool.browse(cr, uid, data_id[0]) account_id = data.res_id acc_ids = obj_acc._get_children_and_consol(cr, uid, [account_id]) - if account_id: + if acc_ids: cr.execute("update account_account set active='f' where id in " + str(tuple(acc_ids))) wizard_multi_charts_accounts() diff --git a/addons/account/account_demo.xml b/addons/account/account_demo.xml index a082a10747c..5ef0ee4992d 100644 --- a/addons/account/account_demo.xml +++ b/addons/account/account_demo.xml @@ -1,6 +1,6 @@ - + + @@ -27,6 +28,7 @@ + @@ -35,6 +37,7 @@ + @@ -43,6 +46,7 @@ + @@ -51,6 +55,7 @@ + @@ -59,6 +64,7 @@ + @@ -67,6 +73,7 @@ + @@ -75,6 +82,7 @@ + @@ -83,6 +91,7 @@ + @@ -91,6 +100,7 @@ + @@ -99,6 +109,7 @@ + @@ -107,6 +118,7 @@ + diff --git a/addons/account/installer.py b/addons/account/installer.py index b8d0192770c..6684e2b8554 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -490,7 +490,7 @@ class account_installer(osv.osv_memory): data = data_pool.browse(cr, uid, data_id[0]) account_id = data.res_id acc_ids = obj_acc._get_children_and_consol(cr, uid, [account_id]) - if account_id: + if acc_ids: cr.execute("update account_account set active='f' where id in " + str(tuple(acc_ids))) @@ -546,4 +546,4 @@ class account_installer_modules(osv.osv_memory): account_installer_modules() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: