-
Notifications
You must be signed in to change notification settings - Fork 2.6k
JEDEL Onboarding #998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 19.0
Are you sure you want to change the base?
JEDEL Onboarding #998
Changes from 4 commits
f8e1bc0
c558c6b
cd52496
8cb8dc5
a0182ea
a449045
ded2b66
286c828
fa3f1ea
f9ed8a6
2ff906f
67147af
a0a6f39
abc4cdf
1c19652
c5e045e
3ef6943
6a76b10
dd2110b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
'name': "Real Estate", | ||
'depends': ['base'], | ||
'application' : True, | ||
'data' : [ | ||
'security/ir.model.access.csv' | ||
], | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import estate_property | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from odoo import models, fields | ||
|
||
class EstateProperty(models.Model): | ||
_name = "estate.property" | ||
_description = "Property for the Real Estate app" | ||
|
||
|
||
#Adding fields | ||
name = fields.Char(required=True) | ||
description = fields.Text() | ||
postcode = fields.Char() | ||
date_availability = fields.Date() | ||
expected_price = fields.Float(required=True) | ||
selling_price = fields.Float() | ||
bedrooms = fields.Integer() | ||
living_area = fields.Integer() | ||
facades = fields.Integer() | ||
garage = fields.Boolean() | ||
garden = fields.Boolean() | ||
garder_area = fields.Integer() | ||
garden_orientation = fields.Selection(selection=[("North", "north"), ("South", "south"), ("East", "east"), ("West", "west")]) | ||
|
||
|
||
|
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 | ||||||
estate.access_estate_property,access_estate_property,estate.model_estate_property,base.group_user,1,0,0,0 | ||||||
|
estate.access_estate_property,access_estate_property,estate.model_estate_property,base.group_user,1,0,0,0 | |
estate.access_estate_property,access_estate_property,model_estate_property,base.group_user,1,0,0,0 |
It's an xmlid from your own module so you can remove the module part :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
End of file line is missing here