Commit Graph

15 Commits

Author SHA1 Message Date
Olivier Dony 6462c85f6c [IMP] start unifying the SUPERUSER_ID constant
bzr revid: odo@openerp.com-20110926090156-2smbh0ypzitauhmt
2011-09-26 11:01:56 +02:00
Vo Minh Thu b8a633e578 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20110831091325-t5gfm57tmkr0fbee
2011-08-31 11:13:25 +02:00
Antony Lesuisse 52a84f0758 [FIX] revert previous commit ir_rule clear_cache
bzr revid: al@openerp.com-20110824172237-arzved9kk54u3hwu
2011-08-24 19:22:37 +02:00
Antony Lesuisse 93f9a0b0cd [IMP] ir_rule distribute clear_cache
bzr revid: al@openerp.com-20110824161918-dkexqhuc1mzpx9fs
2011-08-24 18:19:18 +02:00
Antony Lesuisse fd83621463 [MERGE] trunk
bzr revid: al@openerp.com-20110824160936-ej26wcvgvku3lkm7
2011-08-24 18:09:36 +02:00
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
Antony Lesuisse b5bf0e8c1c [IMP] tools.cache cleanup, 15% speedup
bzr revid: al@openerp.com-20110608092515-gum2y4snkrcrpjqb
2011-06-08 11:25:15 +02:00
Antony Lesuisse 970b19b8b4 [IMP] new tools.cache cleaner, 10% speedup and more to come...
bzr revid: al@openerp.com-20110608030330-d0dsv2k6n0w3lyd5
2011-06-08 05:03:30 +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