diff options
| author | Fabien Pinckaers <fp@openerp.com> | 2012-09-16 19:10:15 +0200 |
|---|---|---|
| committer | Fabien Pinckaers <fp@openerp.com> | 2012-09-16 19:10:15 +0200 |
| commit | 5000fffb1e9462b01de17a7d5f07d19bc7bad3f7 (patch) | |
| tree | 710681d4aa681f84376255fe9e2c8fcb5e9ae524 /addons/note/security | |
| parent | 8985e6aea9fc4d10609bc93270ebf97d26a89062 (diff) | |
| parent | 378b77a5e4e79ac761e6c072591fd84a295eb1bf (diff) | |
[MERGE] merging notes + small cleaning
bzr revid: fp@openerp.com-20120916171015-e0n1lq2a5c10a0nb
Diffstat (limited to 'addons/note/security')
| -rw-r--r-- | addons/note/security/ir.model.access.csv | 5 | ||||
| -rw-r--r-- | addons/note/security/ir.rule.xml | 12 | ||||
| -rw-r--r-- | addons/note/security/note_security.xml | 12 | ||||
| -rw-r--r-- | addons/note/security/res.groups.csv | 3 |
4 files changed, 18 insertions, 14 deletions
diff --git a/addons/note/security/ir.model.access.csv b/addons/note/security/ir.model.access.csv index fdd6030ca51..cbe11cba94e 100644 --- a/addons/note/security/ir.model.access.csv +++ b/addons/note/security/ir.model.access.csv @@ -1,3 +1,4 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
-access_note_stage_user,note.stage user,model_note_stage,base.group_user,1,1,1,1
-access_note_note_user,note.note user,model_note_note,base.group_user,1,1,1,1
+access_note_stage,note.stage,model_note_stage,base.group_user,1,1,1,1
+access_note_note,note.note,model_note_note,base.group_user,1,1,1,1
+access_note_tag,note.tag,model_note_tag,base.group_user,1,1,1,1
diff --git a/addons/note/security/ir.rule.xml b/addons/note/security/ir.rule.xml new file mode 100644 index 00000000000..3d2f0d242f6 --- /dev/null +++ b/addons/note/security/ir.rule.xml @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<openerp> +<data> + <record id="note_note_rule_global" model="ir.rule"> + <field name="name">Only followers can access a sticky notes</field> + <field model="ir.model" ref="model_note_note" name="model_id"/> + <field name="domain_force">['|',('message_follower_ids','=',False),('message_follower_ids','=',user.partner_id.id)]</field> + <field eval="True" name="global"/> + </record> +</data> +</openerp> + diff --git a/addons/note/security/note_security.xml b/addons/note/security/note_security.xml deleted file mode 100644 index 46eebee629c..00000000000 --- a/addons/note/security/note_security.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0"?> -<openerp> -<data> - <record id="note_note_global" model="ir.rule"> - <field name="name">My notes</field> - <field ref="model_note_note" name="model_id"/> - <field eval="1" name="global"/> - <field name="domain_force">[('follower_ids','=',user.id)]</field> - </record> -</data> -</openerp> - diff --git a/addons/note/security/res.groups.csv b/addons/note/security/res.groups.csv new file mode 100644 index 00000000000..61c54c964ff --- /dev/null +++ b/addons/note/security/res.groups.csv @@ -0,0 +1,3 @@ +id,name,implied_ids/id
+group_note_tags,Memo / Display tags,
+group_note_fancy,Memo / Fancy mode,
|
