[FIX] base : Record Rules being ended in a single group now

lp bug: https://launchpad.net/bugs/766982 fixed

bzr revid: ach@tinyerp.com-20110516120818-56d17xau3bwo26lt
This commit is contained in:
Anup (OpenERP)
2011-05-16 17:38:18 +05:30
parent f06bea272f
commit 1d746d88e1
+4 -3
View File
@@ -126,10 +126,11 @@ class ir_rule(osv.osv):
if group_domain:
group_domains += group_domain
count += 1
if count and global_domain:
return ['&'] + global_domain + ['|'] * (count-1) + group_domains
if count:
return ['|'] * (count-1) + group_domains
dom = ['&'] * (count-1) + group_domains
if global_domain:
return ['&'] + global_domain + dom
return dom
return global_domain
return []