Skip to content

Commit

Permalink
[ADD] estate: add access policy
Browse files Browse the repository at this point in the history
Chapter 5
  • Loading branch information
mizosoft committed Mar 19, 2024
1 parent 606294c commit 7bef0d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions estate/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
'summary': 'Tracks RealEstate property and buyer offers',
'description': "Tracks RealEstate property and buyer offers",
'depends': ['base'],
'data': [
'security/ir.model.access.csv'
],
'application': True,
}
2 changes: 2 additions & 0 deletions estate/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_estate_property,"estate_property base.group_user",model_estate_property,base.group_user,1,0,0,0

0 comments on commit 7bef0d5

Please sign in to comment.