summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2011-12-23 09:31:08 +0100
committerRaphael Collet <rco@openerp.com>2011-12-23 09:31:08 +0100
commitae0eddfcbb4f91e87fac903093c69b7df54e85fa (patch)
tree925539f202d5875c29adfa85e15bdce39aaf524e
parent542486ab9508b0b41df9b7e71419f3c4cf26a224 (diff)
[FIX] account: fix malformed domain
bzr revid: rco@openerp.com-20111223083108-i8exaqx5ha7af5fh
-rw-r--r--addons/account/account.py2
1 files changed, 1 insertions, 1 deletions
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: