Skip to content

Conversation

@mibav-odoo
Copy link

@mibav-odoo mibav-odoo commented Jan 1, 2026

Implements the functionality of Real estate module. Key features include the creation of models, fields, views and business logic for property and offer management.
The implementation focuses on optimizing property and offer workflow with computed fields, constrains and decorators.

-Define manifest file
-Define new model and security file

Chapter 1: Architecture Overview
Chapter 2: A New Application
Chapter 3: Models And Basic Fields
Chapter 4: Security - A Brief Introduction
@robodoo
Copy link

robodoo commented Jan 1, 2026

Pull request status dashboard

- Created estate property form and list view
- Created search bar fields

Chapter 5: Finally, Some UI To Play With
Chapter 6: Basic Views
@mibav-odoo mibav-odoo force-pushed the 19.0-estate-tutorial-mibav branch from 1e865d3 to ce13e13 Compare January 1, 2026 12:39
Copy link

@bit-odoo bit-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,
Great job so far!

i have added some comments, and can you please add a linter like Ruff.
Commit title like [ADD] estate: basic menus, form and list views
ce13e13

You can use this to write a proper commit message.
https://odoo-commit.firebaseapp.com/

Thanks

Comment on lines 1 to 2
from odoo import fields, models
from dateutil.relativedelta import relativedelta
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please follwe this guidelines?
4712d52

Comment on lines 22 to 27
garden_orientation = fields.Selection(
string='Garden Orientation',
selection=[('north', 'North'),
('south', 'South'),
('east', 'East'),
('west', 'West')])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
garden_orientation = fields.Selection(
string='Garden Orientation',
selection=[('north', 'North'),
('south', 'South'),
('east', 'East'),
('west', 'West')])
garden_orientation = fields.Selection(
string='Garden Orientation',
selection=[
('north', 'North'),
('south', 'South'),
('east', 'East'),
('west', 'West')
]
)

Comment on lines 28 to 38
state = fields.Selection(
string='State',
default='new',
required=True,
copy=False,
selection=[('new', 'New'),
('offer received', 'Offer Received'),
('offer accepted', 'Offer accepted'),
('sold', 'Sold'),
('cancelled', 'Cancelled')]
)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
state = fields.Selection(
string='State',
default='new',
required=True,
copy=False,
selection=[('new', 'New'),
('offer received', 'Offer Received'),
('offer accepted', 'Offer accepted'),
('sold', 'Sold'),
('cancelled', 'Cancelled')]
)
state = fields.Selection(
string='State',
default='new',
required=True,
copy=False,
selection=[
('new', 'New'),
('offer received', 'Offer Received'),
('offer accepted', 'Offer accepted'),
('sold', 'Sold'),
('cancelled', 'Cancelled')
]
)

Created search views for the estate.property model.
Added menu items and actions to open the property Type
Created new model estate.property.type
Chapter 6: Basic Views
@mibav-odoo mibav-odoo force-pushed the 19.0-estate-tutorial-mibav branch from 90db89e to c2aec78 Compare January 2, 2026 09:25
Created Many2one, Many2many, and One2many relations between models.
Added a new list and form view for the estate.property.offer model.
Updated the property view.

Chapter 7: Relations Between Models
@mibav-odoo
Copy link
Author

I have implemented all the suggested changes in the latest commits.

Define 'total_area' and 'best_price' as computed fields on the property model.
Add date_deadline and validity with inverse methods to handle offer durations.
Use onchange to update garden area and orientation when garden is toggled.

Chapter 8: Computed Fields And Onchanges
Copy link

@bit-odoo bit-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,
Good Work!

I have added some comments.
Can you please adapt your PR description.

Thanks

Comment on lines 54 to 55
total_area = fields.Integer(compute="_compute_total")
best_price = fields.Float(compute="_compute_maximum")
Copy link

@bit-odoo bit-odoo Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compute method name should be _compute_<field_name>.

access_estate_property,access_estate_property,model_estate_property,base.group_user,1,1,1,1
access_estate_property_type,access_estate_property_type,model_estate_property_type,base.group_user,1,1,1,1
access_estate_property_tag,access_estate_property_tag,model_estate_property_tag,base.group_user,1,1,1,1
access_estate_property_offer,access_estate_property_offer,model_estate_property_offer,base.group_user,1,1,1,1 No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be one empty line at EOF.

parent="estate_property_menu_root"
sequence="1"/>
<menuitem
id="estate_property_properties"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 20 to 24
<field name="expected_price"/>
<field name="selling_price"/>
<field name="garden_area"/>
<field name="garden_orientation"/>
<field name="state"/>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can make some fields optional for better readability.

…mments

-Add accept/refuse actions for property offers with validation.
-Update property state and selling price on offer acceptance
-Add action buttons for offers and properties
-Add SQL constraint

-Rename compute methods to follow naming conventions
-Fix XML IDs according to guidelines
-Make non-essential fields optional for better form readability
-Add missing newline at end of access rights CSV file

Chapter 9: Ready For Some Action
Chapter 10: Constraints
@mibav-odoo mibav-odoo force-pushed the 19.0-estate-tutorial-mibav branch from 5458010 to cfaae95 Compare January 7, 2026 18:41
@mibav-odoo
Copy link
Author

Thank You for your feedback. I have implemented the changes and updated the PR accordingly.

- Added Python constraints for validation
- Improved button styling
- Added widget and list order to enhance UI
- Added a default filter
@mibav-odoo mibav-odoo force-pushed the 19.0-estate-tutorial-mibav branch from 34536b2 to b8ed874 Compare January 9, 2026 12:28
- Added Stat button to XML views.
- Defined new relationship for Stat button
- Improved button UI design and integration within views
- Introduced Tags Color field and made it visible in the list view

Chapter 11: Add The Sprinkles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants