Christophe Simonis
e404e54e38
passing in GPL-3
...
bzr revid: christophe@tinyerp.com-20081103182716-6c6xyeewubx4uas0
2008-11-03 19:27:16 +01:00
Fabien Pinckaers
4e4e10b4c9
Renamed Model to Object
...
bzr revid: fp@tinyerp.com-20080821134955-iuoq8kwn17i6u4gn
2008-08-21 15:49:55 +02:00
Christophe Simonis
2eb6b8265b
add encoding comment and vim comment
...
bzr revid: christophe@tinyerp.com-20080723150127-fmitw7zgeokcualh
2008-07-23 17:01:27 +02:00
Christophe Simonis
2dd9723b8b
convert tabs to 4 spaces
...
bzr revid: christophe@tinyerp.com-20080722142436-143iu4ryy47w3av0
2008-07-22 16:24:36 +02:00
qdp
7641121ba9
*modified behavior of global rules: they are now at the same level than other rules (OR between the global rules and others)
...
bzr revid: qdp@tinyerp.com-20080715111504-irlodwg3pzaqnqjy
2008-07-15 13:15:04 +02:00
qdp
0d094852c4
*removed simple quote, bugfix
...
bzr revid: qdp-22af50442a5141715e63177d869ed8f681dfad8b
2008-06-19 08:59:03 +00:00
qdp
f49da35cab
*bugfix 1: there were too many arguments (uid was twice) removed one
...
*bugfix 2: simple quotes were missing
diff:
Index: 4.2/server/bin/addons/base/ir/ir_rule.py
===================================================================
--- 4.2/server/bin/addons/base/ir/ir_rule.py (revision 8632)
+++ 4.2/server/bin/addons/base/ir/ir_rule.py (working copy)
@@ -152,10 +152,10 @@
JOIN (ir_rule_group g
JOIN ir_model m ON (g.model_id = m.id))
ON (g.id = r.rule_group)
- WHERE m.model = %s
+ WHERE m.model = '%s'
AND (g.id IN (SELECT rule_group_id FROM group_rule_group_rel g_rel
JOIN res_groups_users_rel u_rel ON (g_rel.group_id = u_rel.gid)
- WHERE u_rel.uid = %d) OR g.global)""", (model_name, uid, uid))
+ WHERE u_rel.uid = %d) OR g.global)""", (model_name, uid))
bzr revid: qdp-ea1786beea6e242a9927c8f66323acb27a6b0755
2008-06-19 08:53:24 +00:00
Fabien Pinckaers
43e717ad30
Removed rules on users
...
bzr revid: fp@tinyerp.com-df7d77f75d29c1a746bba23c2807751a3c2a31ac
2008-06-19 05:09:48 +00:00
stw
7134784787
add Copyright and GPL license into the Header of Python files
...
bzr revid: stw-eb6ee9b006e577bda6338caa450ec9795b12f9bc
2008-06-16 11:00:21 +00:00
Fabien Pinckaers
c5c654f72d
Bugfix
...
bzr revid: fp@tinyerp.com-13cb74bdd675121ccde034da4a736497100cbe1e
2008-02-08 16:15:41 +00:00
Fabien Pinckaers
6215af103f
Modifs
...
bzr revid: fp@tinyerp.com-76633cac8ff236dd21695101c6e4a8e10057602c
2008-02-08 16:09:03 +00:00
Fabien Pinckaers
ffa98ae4e7
Improved Rules System
...
bzr revid: fp@tinyerp.com-e04f6fe9c0cc68d8aa49f010590d828fcb627a0a
2008-02-08 15:55:30 +00:00
ced
d57ffb41d2
Allow to use xxx2many in the rules and make the group rule that have no rule are always true
...
bzr revid: ced-724e5e82afdf750de193cb4dccd720220c01cb3a
2007-08-22 05:17:13 +00:00
ced
1d274fe2c4
Fix rule to have the same behavior if no global than the access control.
...
Global=> AND (restrictive)
Group/User=> OR (take the best)
bzr revid: ced-e6c223d3e7b08f7c2a4648f1810a495a2081505a
2007-08-22 05:17:08 +00:00
ced
6c4b31cf08
kernel,base,account: fix multi company rule and property
...
- provide the rule to add active condition
- add main company to property that are linked to object that have company_id
bzr revid: ced-c4efb4ec04d47883c4570266f63beace14387499
2007-07-23 05:16:24 +00:00
ced
7fda03b1d2
base: add flush rule cache when write rule group
...
bzr revid: ced-f244ec7f8a11e71f97e9cd4c71f8fb22abb6b5a9
2007-07-23 05:16:18 +00:00
ced
588fbd837f
KERNEL,BASE: fix _where_calc and domain get for rule
...
bzr revid: ced-7a8713933b54f837db2312e605a7afad7dbf91c5
2007-06-07 10:35:05 +00:00
ced
1edadd4f76
KERNEL, MULTI_COMPANY_*, STOCK, BASE: extend search child_of
...
bzr revid: ced-7181fea25ddbb261cae5d70e3cfae2b01a7795d9
2007-06-07 08:43:46 +00:00
ced
5ac07652b4
BASE, MULTI_COMPANY_*: improve rules
...
- prevent infinit recursion
- add global rules
- more generic rules
bzr revid: ced-9a1b5479e7a7349a82c2f45d3fff912867b2e1e1
2007-06-06 10:53:38 +00:00
bch
605fde9553
IR_RULES :
...
- new object to define versatile access rules.
- provide cache to keep fast access.
- associated with user or user group.
The orm layer is modified to use them. This modification and
pre-defined rules in xml data replace the most part of implicit magic
around company_id.
bzr revid: bch-73e82904c54c3ad4f5a7454a446af30572ae156d
2007-05-18 12:29:43 +00:00