Commit Graph

3 Commits

Author SHA1 Message Date
Olivier Dony 26f73ce7e8 [IMP] base: update ir.rule tests for new combination semantics
(Rules from the same local group are now OR'ed, instead of AND'ed.

bzr revid: odo@openerp.com-20110601143921-g3tv46krsa01y4tv
2011-06-01 16:39:21 +02:00
Olivier Dony 444df6affa [FIX] ir.rule,expression: domain expressions must be normalized before they can be safely combined
This adds a normalize_domain() method to osv.expression, which ir.rule calls
before combining expressions due to multiple rules or groups being applicable
to a certain user.
YAML tests are also added with a trivial unit test of normalize_domain() and
some additional tests for ir_rule in order to verify that unnormalized domains
are properly normalized before being combined by ir.rule.

bzr revid: odo@openerp.com-20110324111757-uwuoqvm3lxkipr08
2011-03-24 12:17:57 +01:00
Vo Minh Thu dd1943c45e [MERGE] merge 6.0 branch.
bzr revid: vmt@openerp.com-20110303133011-758wfx7zompu5ugq
2011-03-03 14:30:11 +01:00