-
Notifications
You must be signed in to change notification settings - Fork 3.1k
dalio - Technical Training #1233
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
dalio-odoo
wants to merge
28
commits into
odoo:19.0
Choose a base branch
from
odoo-dev:19.0-technical-training-dalio
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 7 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
3c4ec5c
[REF] Internal: test setup dalio
dalio-odoo 46f010c
[ADD] estate: add model
dalio-odoo 2a943c1
[ADD] estate: add estate_property
dalio-odoo 25b1b95
[FIX] estate: fix style
dalio-odoo d9454fb
[ADD] estate: add access right for estate_property
dalio-odoo c767015
[FIX] estate: add author and license to manifest
dalio-odoo 4faa6cd
[ADD] estate: add menus, actions and property fields logic
dalio-odoo c626a8c
[IMP] estate: add search features and apply style and security fixes
dalio-odoo f0442fb
[ADD] estate: add types and tags
dalio-odoo 4ac7f31
[ADD] estate: add offers to properties
dalio-odoo 3bd3578
[ADD] estate: add computed fields and onchanges
dalio-odoo 7061f54
[ADD] estate: add 'Sold' and 'Canceled' buttons
dalio-odoo a3ebbc7
[ADD] estate: add business logic with buttons and constraints
dalio-odoo ae62f85
[IMP] estate: Change prices to monetary fields.
Mathilde411 5aea6e1
[IMP] estate: improve property type view and refactor code standards
dalio-odoo 64b4e23
[IMP] estate: improve UI with editable lists and stat buttons
dalio-odoo 6a5844e
[FIX] estate: add readonly to invisible status field in offer list
dalio-odoo 67c3197
[FIX] estate: remove redundant invisible field
dalio-odoo 6649480
[ADD] estate: add business logic for offers and extend user view
dalio-odoo 9939864
[ADD] estate_account: automate invoices creation on sold properties
dalio-odoo dd2d610
[IMP] estate: add basic test cases
vandroogenbd 6f8b1c7
[IMP] estate_account: improve syntax
dalio-odoo a161bf9
[FIX] estate: add missing garden information in test
dalio-odoo 04e2c19
[ADD] estate: add grouped kanban view for properties
dalio-odoo e5ac3b6
[FIX] estate: fix business logic to ensure all tests are passed
dalio-odoo 83a6497
[ADD] awsome_owl: add counters, counters' sum, cards and todo lists
dalio-odoo 11820f7
[IMP] estate: apply suggestions for performance and constraints
dalio-odoo 24f482b
[ADD] awesome_owl: add counters in cards
dalio-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
Some comments aren't visible on the classic Files Changed page.
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,8 @@ | ||
| { | ||
| "python.analysis.extraPaths": [ | ||
| "/home/odoo/src/venv", | ||
| "/home/odoo/src/odoo", | ||
| "/home/odoo/src/enterprise" | ||
| ], | ||
| "python.defaultInterpreterPath": "/home/odoo/src/venv/bin/python3.12" | ||
| } | ||
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
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,15 @@ | ||
| { | ||
| 'name': 'Real Estate', | ||
| 'version': '1.0', | ||
|
Mathilde411 marked this conversation as resolved.
Outdated
|
||
| 'depends': [ | ||
| 'base_setup' | ||
|
Mathilde411 marked this conversation as resolved.
Outdated
|
||
| ], | ||
| 'data': [ | ||
| 'security/ir.model.access.csv', | ||
| 'views/estate_property_views.xml', | ||
| 'views/estate_menus.xml' | ||
|
Mathilde411 marked this conversation as resolved.
Outdated
|
||
| ], | ||
| 'application': True, | ||
| 'author': 'dalio', | ||
| 'license': 'LGPL-3' | ||
| } | ||
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 |
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,46 @@ | ||
| from odoo import models, fields | ||
| from dateutil.relativedelta import relativedelta | ||
|
|
||
|
|
||
| class EstateProperty(models.Model): | ||
|
|
||
| _name = "estate.property" | ||
| _description = "Real Estate Property" | ||
|
|
||
| name = fields.Char(required=True) | ||
| description = fields.Text() | ||
| postcode = fields.Char() | ||
| date_availability = fields.Date(default=lambda self: fields.Date.today() + relativedelta(months=3), copy=False) | ||
| expected_price = fields.Float(required=True) | ||
| selling_price = fields.Float(readonly=True, copy=False) | ||
| bedrooms = fields.Integer(default=2) | ||
| living_area = fields.Integer() | ||
| facades = fields.Integer() | ||
| garage = fields.Boolean() | ||
| garden = fields.Boolean() | ||
| garden_area = fields.Integer() | ||
| garden_orientation = fields.Selection( | ||
| string="Orientation", | ||
| selection=[ | ||
| ('north', 'North'), | ||
| ('south', 'South'), | ||
| ('west', 'West'), | ||
| ('east', 'East') | ||
| ], | ||
| help="Orientation of the garden" | ||
| ) | ||
| active = fields.Boolean(default=True) | ||
| state = fields.Selection( | ||
| string="State", | ||
| selection=[ | ||
| ('new', 'New'), | ||
| ('offer received', 'Offer Received'), | ||
| ('offer accepted', 'Offer Accepted'), | ||
| ('sold', 'Sold'), | ||
| ('cancelled', 'Cancelled') | ||
| ], | ||
| help="State of the property", | ||
| required=True, | ||
| copy=False, | ||
| default="new" | ||
| ) |
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 | ||
|
Mathilde411 marked this conversation as resolved.
Outdated
|
||
| access_estate_property,access_estate_property,model_estate_property,base.group_user,1,1,1,1 | ||
|
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,6 @@ | ||
| <?xml version="1.0"?> | ||
| <odoo> | ||
| <menuitem id="estate_menu_root" name="Real Estate"/> | ||
| <menuitem id="estate_first_level_menu" name="Advertisements" parent="estate_menu_root"/> | ||
| <menuitem id="estate_property_menu_action" parent="estate_first_level_menu" action="estate_property_action"/> | ||
|
Mathilde411 marked this conversation as resolved.
Outdated
Mathilde411 marked this conversation as resolved.
Outdated
|
||
| </odoo> | ||
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,8 @@ | ||
| <?xml version="1.0"?> | ||
| <odoo> | ||
| <record id="estate_property_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.