-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[ADD] estate: basic module creation #1245
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
Open
simal-odoo
wants to merge
18
commits into
odoo:19.0
Choose a base branch
from
odoo-dev:19.0-technical-training-simal
base: 19.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
94ed96c
[ADD] estate: basic module creation
simal-odoo 3702745
[ADD] estate: models and basic fields
simal-odoo ef29dbe
[ADD] estate: add access rights for property model
simal-odoo 2ba81c0
[ADD] estate: add basic user interface
simal-odoo 6aa8bbe
[CLN] estate: implemented requested changes
simal-odoo 70fa394
[ADD] estate: add views
simal-odoo 32f65b1
[ADD] estate: add models and relations
simal-odoo 00ddb13
[ADD] estate: computed fields and onchanges
simal-odoo 3cb24f9
[ADD] estate: added actions
simal-odoo 149b4e5
[FIX] estate: cleaned and fixed code
simal-odoo c2166b8
[ADD] estate: add constraints
simal-odoo 9d33bd0
[IMP] estate: add basic test cases
vandroogenbd 3aa2c7a
[ADD] estate: Add the sprinkles
simal-odoo c585ab1
[ADD] estate: Add the sprinkles
simal-odoo 5d80f29
[ADD] estate: Inheritance
simal-odoo 60938a8
[ADD] estate_account: creation and link with estate
simal-odoo a320c8f
[ADD] estate: creation of kanban view
simal-odoo f843fb9
[ADD] awesome_owl: playground
simal-odoo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| from . import models | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { | ||
| 'name': "Estate", | ||
| 'summary': """ | ||
| The Real Estate Advertisement module | ||
| """, | ||
|
|
||
| 'description': """ | ||
| The Real Estate Advertisement module | ||
| """, | ||
| 'author': "Odoo", | ||
| 'website': "https://www.odoo.com/", | ||
| 'category': 'Tutorials', | ||
| 'version': '0.1', | ||
|
Mathilde411 marked this conversation as resolved.
Outdated
|
||
| 'application': True, | ||
| 'installable': True, | ||
|
Mathilde411 marked this conversation as resolved.
Outdated
|
||
| 'depends': ['base'], | ||
|
Mathilde411 marked this conversation as resolved.
Outdated
|
||
| 'data': [ | ||
| 'data/ir.model.access.csv', | ||
| 'views/estate_property_views.xml', | ||
| 'data/estate_menus.xml', | ||
| ], | ||
| 'license': 'AGPL-3' | ||
|
Mathilde411 marked this conversation as resolved.
Outdated
|
||
| } | ||
|
Mathilde411 marked this conversation as resolved.
Outdated
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| <odoo> | ||
| <menuitem id="estate_menu_root" name="Estate"> | ||
| <menuitem id="estate_first_level_menu" name="Advertisements"> | ||
| <menuitem id="estate_model_menu_action" action="estate_model_action"/> | ||
|
Mathilde411 marked this conversation as resolved.
Outdated
|
||
| </menuitem> | ||
| </menuitem> | ||
| </odoo> | ||
|
Mathilde411 marked this conversation as resolved.
Outdated
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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,access_estate_property,model_estate_property,base.group_user,1,1,1,1 | ||
|
Mathilde411 marked this conversation as resolved.
Outdated
Mathilde411 marked this conversation as resolved.
Outdated
Mathilde411 marked this conversation as resolved.
Outdated
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| from . import estate_property | ||
|
Mathilde411 marked this conversation as resolved.
Outdated
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| from odoo import fields, models | ||
|
|
||
|
|
||
| class EstateProperty(models.Model): | ||
| _name = "estate.property" | ||
| _description = "Estate Property" | ||
| active = True | ||
|
Mathilde411 marked this conversation as resolved.
Outdated
Mathilde411 marked this conversation as resolved.
Outdated
|
||
| name = fields.Char('Property Name', required=True) | ||
| description = fields.Text('Description') | ||
| postcode = fields.Char('Postcode') | ||
| date_availability = fields.Date('Availability Date', copy=False, default=fields.Date.add(fields.Date.today(), months=3)) | ||
|
Mathilde411 marked this conversation as resolved.
Outdated
|
||
| expected_price = fields.Float('Expected Price', required=True) | ||
| selling_price = fields.Float('Selling Price', readonly=True, copy=False) | ||
| bedrooms = fields.Integer('Bedrooms', default=2) | ||
| living_area = fields.Integer('Living Area') | ||
| facades = fields.Integer('Facades') | ||
| garage = fields.Boolean('Garage') | ||
| garden = fields.Boolean('Garden') | ||
| garden_area = fields.Integer('Garden Area') | ||
| garden_orientation = fields.Selection( | ||
| string='Garden Orientation', | ||
| selection=[ | ||
| ('north', 'North'), | ||
| ('south', 'South'), | ||
| ('east', 'East'), | ||
| ('west', 'West'), | ||
| ], | ||
| ) | ||
| state = fields.Selection( | ||
| string='State', | ||
| selection=[ | ||
| ('new', 'New'), | ||
| ('offer received', 'Offer Received'), | ||
| ('offer accepted', 'Offer Accepted'), | ||
| ('sold', 'Sold'), | ||
| ('cancelled', 'Cancelled'), | ||
| ], | ||
| default='new', | ||
| required=True, | ||
| ) | ||
|
Mathilde411 marked this conversation as resolved.
Outdated
Mathilde411 marked this conversation as resolved.
Outdated
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| <odoo> | ||
| <record id="estate_model_action" model="ir.actions.act_window"> | ||
| <field name="name">Properties</field> | ||
| <field name="res_model">estate.property</field> | ||
| <field name="view_mode">list,form</field> | ||
| </record> | ||
| </odoo> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.