Commit Graph

8 Commits

Author SHA1 Message Date
Vo Minh Thu 51117db344 [REF] osv: replace isinstance(m,osv_memory) by m.is_transient().
bzr revid: vmt@openerp.com-20110816095755-2g5cblolcvchtewx
2011-08-16 11:57:55 +02:00
Olivier Dony ce029f887e [FIX] ir.rule: must eval the rule domain as user, but browse the rule's groups as admin
bzr revid: odo@openerp.com-20110601135526-gk7zfiylnhlpvlod
2011-06-01 15:55:26 +02:00
Olivier Dony 6bbe8c7200 [IMP] ir.rule: local rules will be combined with OR within the same group
This makes it more intuitive: global rules are restrictions and
always combined with AND, while local rules are always combined
with OR, regardless if they are in the same group or different
groups. It makes it also easier to add rules in an existing group
to grant more rights.

bzr revid: odo@openerp.com-20110601130156-c0swo9w21zqun2gl
2011-06-01 15:01:56 +02:00
Olivier Dony e10e8073db [IMP] ir.rule,expression: merged improved rule computation mechanism, suggested by RCO
bzr revid: odo@openerp.com-20110531144318-vut0opufvqd5mu07
2011-05-31 16:43:18 +02:00
Olivier Dony 8ab9bac2b1 [IMP] ir.rule: added util methods for working with domain literals
bzr revid: odo@openerp.com-20110408140241-jotm4lsr1savrr3a
2011-04-08 16:02:41 +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
Vo Minh Thu f8572e5c60 [IMP] openerp python module.
- Some logging code moved from netsvc.py to loglevels.py
- Changed imports to use the new openerp module
- config and netsvc initialization calls move to openerp-server.py
- Moved openerp-server.py outside the old bin directory
- Some imports in tools moved inside the methods to break mutual-dependencies

bzr revid: vmt@openerp.com-20110207125723-ooee7d7ng5elmkso
2011-02-07 13:57:23 +01:00