Skip to content

Commit e5c07e0

Browse files
committed
[IMP] estate: Implemented the Security Logic
Enhanced the Security Logic for improved protection. Added the access control rights for the estate_property.py file
1 parent 4da5a7b commit e5c07e0

File tree

7 files changed

+14
-12
lines changed

7 files changed

+14
-12
lines changed

Estate/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
from . import models
1+
from . import models
2+

Estate/__manifest__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
'depends':['base'],
44
'application': True,
55
'installable': True,
6+
'author':'estate',
67
'category': 'Tutorials',
7-
'license': 'AGPL-3'
8+
'license': 'AGPL-3',
9+
'data': [
10+
'security/ir.model.access.csv'
11+
'views/estate_property_views.xml'
12+
]
813
}

Estate/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
from . import estate_property
2+

Estate/models/estate_property.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
1-
#always check for odoo import from venv due to which errors in psql might arise
2-
#structure module name
3-
4-
#Models
5-
# init
6-
# module property - this consist of all files u wanna add and substract
7-
#init
8-
#manifest
9-
10-
111

122
from odoo import models, fields
133

4+
145
class EstateProperty(models.Model):
156
_name = "estate.property"
167
_description = "Real Estate Property"
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

Estate/views/estate_menus.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<odoo>
2+
<record id=""

Estate/views/estate_property_views.xml

Whitespace-only changes.

0 commit comments

Comments
 (0)