summaryrefslogtreecommitdiff
path: root/addons/note/security
diff options
context:
space:
mode:
authorPinakin Nayi (OpenERP) <pna@tinyerp.com>2012-09-12 17:46:14 +0530
committerPinakin Nayi (OpenERP) <pna@tinyerp.com>2012-09-12 17:46:14 +0530
commitbb9046f74c53d4c76c04f74bef52b7f5fde710cb (patch)
tree811b8e126251861dbf1dc6c6cbd244139cbff7f2 /addons/note/security
parentf65d6ffbcfc046fef1c9706f136b4505f10c952a (diff)
parented34adf9b0e5aabd0b8d755b88c419661c257721 (diff)
[MERGE]:merge with parent branch
bzr revid: pna@tinyerp.com-20120912121614-j9cj8yy2prraah1g
Diffstat (limited to 'addons/note/security')
-rw-r--r--addons/note/security/ir.model.access.csv3
-rw-r--r--addons/note/security/note_security.xml12
2 files changed, 15 insertions, 0 deletions
diff --git a/addons/note/security/ir.model.access.csv b/addons/note/security/ir.model.access.csv
new file mode 100644
index 00000000000..fdd6030ca51
--- /dev/null
+++ b/addons/note/security/ir.model.access.csv
@@ -0,0 +1,3 @@
+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
diff --git a/addons/note/security/note_security.xml b/addons/note/security/note_security.xml
new file mode 100644
index 00000000000..46eebee629c
--- /dev/null
+++ b/addons/note/security/note_security.xml
@@ -0,0 +1,12 @@
+<?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>
+