[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:
@@ -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 []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user