summaryrefslogtreecommitdiff
path: root/addons/note/security
diff options
context:
space:
mode:
authorAnael Closson <acl@openerp.com>2012-08-13 19:04:29 +0200
committerAnael Closson <acl@openerp.com>2012-08-13 19:04:29 +0200
commit87c4a3a3b7406cd8bba071846e230f48d7c03da8 (patch)
tree184d591d9453108313eddfa3de6d84abb4059dda /addons/note/security
parent36aaaf4a32ab2eeadec780f784cf697989ac3f69 (diff)
initial note push
bzr revid: acl@openerp.com-20120813170429-91dibb1dpe32j6w2
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>
+