-
Notifications
You must be signed in to change notification settings - Fork 3.3k
surap - Technical Training #1418
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?
Changes from all commits
dc64d10
2fb7c3f
9b34aef
933a256
96115d5
4507a29
8e9e61e
9b2f068
9c44b0a
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': 'estate', | ||
| 'depends': [ | ||
| 'base' | ||
| ], | ||
| 'application': True, | ||
| 'installable': True, | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| from . import estate_property | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We try to always have an empty line at the end of every file. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| from odoo import fields, models | ||
|
|
||
|
|
||
| class EstateProperty(models.Model): | ||
| _name: str = "estate.property" | ||
|
|
||
| _description: str | None = None | ||
| name: fields.Char = fields.Char() | ||
| description: fields.Text = fields.Text() | ||
| postcode: fields.Char = fields.Char() | ||
| date_availability: fields.Date = fields.Date('Creation Date') | ||
| expected_price: fields.Float = fields.Float() | ||
| selling_price: fields.Float = fields.Float() | ||
| bedroom: fields.Integer = fields.Integer() | ||
| living_area: fields.Integer = fields.Integer() | ||
| facades: fields.Integer = fields.Integer() | ||
| garden: fields.Boolean = fields.Boolean() | ||
| garden_area: fields.Integer = fields.Integer() | ||
| garage: fields.Boolean = fields.Boolean() | ||
| garden_orientation: fields.Selection = fields.Selection( | ||
| selection=[("north", "North"), ("south", "South"), ("east", "East"), ("west", "West")], | ||
| string='Type', | ||
| help="Type is used to separate Leads and Opportunities", | ||
| ) |
| 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,model_estate_property,base.group_user,1,1,1,1 |
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.
it's best not to push .gitkee, pycache, ...