Skip to content

Commit a86daf1

Browse files
committed
[IMP] configure access rights for estate_property model
created ir.model.access.csv add access rights (read, write, create, unlink) for base.group_user on estate_property model Server Framework 101 Chapter 4
1 parent 48651ba commit a86daf1

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,6 @@ dmypy.json
127127

128128
# Pyre type checker
129129
.pyre/
130+
131+
# VS Code
132+
.vscode

estate/__manifest__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
'depends': [
44
'base',
55
],
6+
'data': [
7+
'security/ir.model.access.csv',
8+
],
69
'application': True,
710
'license': 'AGPL-3'
811
}

estate/security/ir.model.access.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
2+
access_estate_property,estate_property,model_estate_property,base.group_user,1,1,1,1

0 commit comments

Comments
 (0)