Skip to content

[ADD] Estate: Created new estate module#1191

Draft
adpaw-odoo wants to merge 20 commits intoodoo:19.0from
odoo-dev:19.0-tutorial-estate-adpaw
Draft

[ADD] Estate: Created new estate module#1191
adpaw-odoo wants to merge 20 commits intoodoo:19.0from
odoo-dev:19.0-tutorial-estate-adpaw

Conversation

@adpaw-odoo
Copy link
Copy Markdown

Initial setup completed for creating a new estate module. Created the base estate module and installed it.
Initialized model and model fields which generates tables using odoo ORM.

Initial setup completed for creating a new estate module.
Created the base estate module and installed it.
Initialized model and model fields which generates tables using odoo ORM.
@robodoo
Copy link
Copy Markdown

robodoo commented Mar 10, 2026

Pull request status dashboard

@adpaw-odoo adpaw-odoo force-pushed the 19.0-tutorial-estate-adpaw branch 2 times, most recently from 80ed6b6 to c168b5b Compare March 12, 2026 04:43
Fixed issues and errors raised by the first push.
Defined access rights by creating security/ir.model.access.csv file in estate.
Defined the csv file in manifest.
@adpaw-odoo adpaw-odoo force-pushed the 19.0-tutorial-estate-adpaw branch from c168b5b to 09c816f Compare March 12, 2026 04:51
Added actions and menus in the module.
Created estate_property_views.xml for the window action.
Added estate_property_menus.xml to define the 3-level menu structure.
Registered new XML files in the manifest data list.
Implemented  fields, attributes and views.
Configure field attributes: 'readonly' for selling_price and 'copy=False'
where needed.
set default value for bedrooms and dynamic default for availability date.
Implement reserved fields: 'active' and 'state'
Fixed issues in the previous commit.
@adpaw-odoo adpaw-odoo force-pushed the 19.0-tutorial-estate-adpaw branch from 7b006d7 to 3b2951c Compare March 16, 2026 17:28
@adpaw-odoo adpaw-odoo force-pushed the 19.0-tutorial-estate-adpaw branch from 3b2951c to 5b1412b Compare March 16, 2026 17:36
Copy link
Copy Markdown

@mash-odoo mash-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 start on the app..
Here are a few comments..mostly nits..
Also please update the PR title

Comment thread awesome_gallery/models/ir_action.py Outdated
Comment thread estate/models/estate_property.py Outdated
Comment thread estate/models/estate_property.py
Comment thread estate/security/ir.model.access.csv Outdated
Comment thread estate/__manifest__.py
@adpaw-odoo adpaw-odoo changed the title [ADD] Estate: Chapter 2 & 3 [ADD] Estate: Created new estate module Mar 17, 2026
Created new model called estate_property_type.py.
Added actions and menus.
Implemented list, form and search views in estate_property_types.xml
@adpaw-odoo adpaw-odoo force-pushed the 19.0-tutorial-estate-adpaw branch from ad43920 to a7fc97b Compare March 18, 2026 04:55
Implemented Many2many and One2many relations.
Added estate.property.tag model with Many2many relation to estate.property
Added offer_ids One2many field to display offers on property form
Created corresponding views, menus, actions and access to above models and files
@adpaw-odoo adpaw-odoo force-pushed the 19.0-tutorial-estate-adpaw branch from b3fe6f7 to 68e69b0 Compare March 19, 2026 04:43
@adpaw-odoo adpaw-odoo force-pushed the 19.0-tutorial-estate-adpaw branch from 7267343 to 84f9abd Compare March 30, 2026 17:06
Understood the concept of computed and relational fields.
Imported api from odoo to supports depends decorator.
Calculated total area by adding living area and garden area.
And best price by selecting the highest offer price using mapped method.
@adpaw-odoo adpaw-odoo force-pushed the 19.0-tutorial-estate-adpaw branch from 84f9abd to 8e1e942 Compare March 30, 2026 17:24
Implemented inverse function on validity_date to compute deadline from
date_availability and vice versa.
Added @api.onchange on garden field to auto-set area (10) and
orientation (North) when enabled.
When garden is disabled, garden area and orientation are cleared automatically.
@adpaw-odoo adpaw-odoo force-pushed the 19.0-tutorial-estate-adpaw branch from 5d1e49f to a6d7c9c Compare April 3, 2026 13:04
Implement action_sold and action_cancel logic with UserError guards
Add Accept/Refuse buttons to property offers using fa-icons
Link offer acceptance to property selling_price and buyer_id
Update UI with statusbar widget and button visibility rules
@adpaw-odoo adpaw-odoo force-pushed the 19.0-tutorial-estate-adpaw branch from 69d88cf to 6d7d356 Compare April 4, 2026 19:42
Enforce strictly positive expected and offer prices via SQL constraints
Set non-negative selling price constraint
Added UNIQUE constraints on property type and property tag names.
Added Python constraint using float_compare to prevent selling price from being
lower than 90% of expected price
Added inline list view for properties within property types
Implemented statusbar widget for property state management
Set deterministic model ordering for properties, offers, and tags
Enable manual reordering for property types using sequence handle
@adpaw-odoo adpaw-odoo force-pushed the 19.0-tutorial-estate-adpaw branch 3 times, most recently from a35d70b to d56fc04 Compare April 10, 2026 08:46
@adpaw-odoo adpaw-odoo force-pushed the 19.0-tutorial-estate-adpaw branch from d56fc04 to 1142151 Compare April 11, 2026 14:37
@adpaw-odoo adpaw-odoo force-pushed the 19.0-tutorial-estate-adpaw branch 3 times, most recently from 3bebb00 to 4291512 Compare April 13, 2026 17:40
Add ondelete constraint to prevent deletion of non-new/cancelled properties
Set property state to 'offer_received' on offer creation and blocked offers
lower than existing best offer
Add property_ids field to res.users via model inheritance
Add Real Estate Properties tab to user form view via view inheritance
@adpaw-odoo adpaw-odoo force-pushed the 19.0-tutorial-estate-adpaw branch from 4291512 to cef3ce1 Compare April 13, 2026 17:51
@adpaw-odoo adpaw-odoo force-pushed the 19.0-tutorial-estate-adpaw branch from 4ebece1 to 7159ec2 Compare April 14, 2026 16:36
Added estate_property_issues so we can report any issues in the property
Added computed SLA deadline and overdue logic based on issue priority.
Implemented restriction in action_sold to prevent selling properties with
unresolved high-priority issues.
@adpaw-odoo adpaw-odoo force-pushed the 19.0-tutorial-estate-adpaw branch from 6ba9907 to 39aea92 Compare April 16, 2026 07:25
Completed ch 13.
Created a new module called estate_account that depends on estate and account.
Inherited estate.property to override action_sold.
Used the inherited model to create customer invoice as a property gets sold.
Implemented kanban view
Added additional fields and attributes to improve the view.
Added default group by so the properties are grouped in kanban view according to
their property type.
Polished the code according to coding guidelines.
Improved the readability of the code.
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