From ae0eddfcbb4f91e87fac903093c69b7df54e85fa Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Fri, 23 Dec 2011 09:31:08 +0100 Subject: [PATCH] [FIX] account: fix malformed domain bzr revid: rco@openerp.com-20111223083108-i8exaqx5ha7af5fh --- addons/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index cfe2d7c19c8..a73fb3d5d1c 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -2524,7 +2524,7 @@ class account_account_template(osv.osv): #deactivate the parent_store functionnality on account_account for rapidity purpose ctx = context.copy() ctx.update({'defer_parent_store_computation': True}) - children_acc_template = self.search(cr, uid, ['|', ('chart_template_id','=', [chart_template_id]),'&',('parent_id','child_of', [template.account_root_id.id]),('chart_template_id','=', False), ('nocreate','!=',True)], order='id') + children_acc_template = self.search(cr, uid, ['|', ('chart_template_id','=', chart_template_id),'&',('parent_id','child_of', [template.account_root_id.id]),('chart_template_id','=', False), ('nocreate','!=',True)], order='id') for account_template in self.browse(cr, uid, children_acc_template, context=context): # skip the root of COA if it's not the main one if (template.account_root_id.id == account_template.id) and template.parent_id: