Skip to content
Open
Show file tree
Hide file tree
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 Apr 21, 2026
46f010c
[ADD] estate: add model
dalio-odoo Apr 21, 2026
2a943c1
[ADD] estate: add estate_property
dalio-odoo Apr 22, 2026
25b1b95
[FIX] estate: fix style
dalio-odoo Apr 22, 2026
d9454fb
[ADD] estate: add access right for estate_property
dalio-odoo Apr 22, 2026
c767015
[FIX] estate: add author and license to manifest
dalio-odoo Apr 22, 2026
4faa6cd
[ADD] estate: add menus, actions and property fields logic
dalio-odoo Apr 22, 2026
c626a8c
[IMP] estate: add search features and apply style and security fixes
dalio-odoo Apr 22, 2026
f0442fb
[ADD] estate: add types and tags
dalio-odoo Apr 23, 2026
4ac7f31
[ADD] estate: add offers to properties
dalio-odoo Apr 23, 2026
3bd3578
[ADD] estate: add computed fields and onchanges
dalio-odoo Apr 23, 2026
7061f54
[ADD] estate: add 'Sold' and 'Canceled' buttons
dalio-odoo Apr 23, 2026
a3ebbc7
[ADD] estate: add business logic with buttons and constraints
dalio-odoo Apr 24, 2026
ae62f85
[IMP] estate: Change prices to monetary fields.
Mathilde411 Apr 24, 2026
5aea6e1
[IMP] estate: improve property type view and refactor code standards
dalio-odoo Apr 24, 2026
64b4e23
[IMP] estate: improve UI with editable lists and stat buttons
dalio-odoo Apr 27, 2026
6a5844e
[FIX] estate: add readonly to invisible status field in offer list
dalio-odoo Apr 27, 2026
67c3197
[FIX] estate: remove redundant invisible field
dalio-odoo Apr 27, 2026
6649480
[ADD] estate: add business logic for offers and extend user view
dalio-odoo Apr 28, 2026
9939864
[ADD] estate_account: automate invoices creation on sold properties
dalio-odoo Apr 28, 2026
dd2d610
[IMP] estate: add basic test cases
vandroogenbd Apr 28, 2026
6f8b1c7
[IMP] estate_account: improve syntax
dalio-odoo Apr 28, 2026
a161bf9
[FIX] estate: add missing garden information in test
dalio-odoo Apr 28, 2026
04e2c19
[ADD] estate: add grouped kanban view for properties
dalio-odoo Apr 29, 2026
e5ac3b6
[FIX] estate: fix business logic to ensure all tests are passed
dalio-odoo Apr 29, 2026
83a6497
[ADD] awsome_owl: add counters, counters' sum, cards and todo lists
dalio-odoo Apr 30, 2026
11820f7
[IMP] estate: apply suggestions for performance and constraints
dalio-odoo Apr 30, 2026
24f482b
[ADD] awesome_owl: add counters in cards
dalio-odoo Apr 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .vscode/settings.json
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"
}
Comment thread
Mathilde411 marked this conversation as resolved.
Outdated
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ tutorial's solutions, and one for the
[Master the Odoo web framework](https://www.odoo.com/documentation/latest/developer/tutorials/master_odoo_web_framework.html)
tutorial's solutions. For example, `17.0`, `17.0-discover-js-framework-solutions` and
`17.0-master-odoo-web-framework-solutions`.
# Test setup dalio
1 change: 1 addition & 0 deletions estate/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
15 changes: 15 additions & 0 deletions estate/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
'name': 'Real Estate',
'version': '1.0',
Comment thread
Mathilde411 marked this conversation as resolved.
Outdated
'depends': [
'base_setup'
Comment thread
Mathilde411 marked this conversation as resolved.
Outdated
],
'data': [
'security/ir.model.access.csv',
'views/estate_property_views.xml',
'views/estate_menus.xml'
Comment thread
Mathilde411 marked this conversation as resolved.
Outdated
],
'application': True,
'author': 'dalio',
'license': 'LGPL-3'
}
1 change: 1 addition & 0 deletions estate/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import estate_property
46 changes: 46 additions & 0 deletions estate/models/estate_property.py
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"
)
2 changes: 2 additions & 0 deletions estate/security/ir.model.access.csv
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
Comment thread
Mathilde411 marked this conversation as resolved.
Outdated
access_estate_property,access_estate_property,model_estate_property,base.group_user,1,1,1,1
Comment thread
Mathilde411 marked this conversation as resolved.
Outdated
6 changes: 6 additions & 0 deletions estate/views/estate_menus.xml
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"/>
Comment thread
Mathilde411 marked this conversation as resolved.
Outdated
Comment thread
Mathilde411 marked this conversation as resolved.
Outdated
</odoo>
8 changes: 8 additions & 0 deletions estate/views/estate_property_views.xml
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>