Skip to content

Commit f265d33

Browse files
committed
[IMP] (Chapter : 4) Estate: Implemented security for model access.
- Added a security CSV file in the `security` folder - Granted users access to the `estate.property` model
1 parent 1840534 commit f265d33

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

estate/__manifest__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@
66
'author': 'snrav-odoo',
77
'license': 'LGPL-3',
88
'description': 'Real estate purchase & sales',
9+
'data': [
10+
'security/ir.model.access.csv'
11+
],
912
'application': True,
1013
}
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+
estate.access_estate_property,access_estate_property,model_estate_property,base.group_user,1,1,1,1

0 commit comments

Comments
 (0)