Skip to content

[ADD] estate: initialize estate tutorial module#1329

Draft
dhruvikalariyaa wants to merge 7 commits into
odoo:19.0from
odoo-dev:19.0-tutorial-training-dhkal
Draft

[ADD] estate: initialize estate tutorial module#1329
dhruvikalariyaa wants to merge 7 commits into
odoo:19.0from
odoo-dev:19.0-tutorial-training-dhkal

Conversation

@dhruvikalariyaa

Copy link
Copy Markdown

create the directory structure and main manifest file for the estate real estate business module. This module will serve as the base for developing the property advertisement and offer management application.

create the directory structure and main manifest file for the estate
real estate business module. This module will serve as the base for
developing the property advertisement and offer management application.
@robodoo

robodoo commented Jun 5, 2026

Copy link
Copy Markdown

Pull request status dashboard

Create the foundation of the 'estate' module (Real Estate application).
Define the core model 'estate.property' to represent properties in the system.
This model includes fields to track basic property information such as:
- Name
- Description
- Postcode
- Date of availability
- Expected price
- Selling price
- Bedrooms, living area, facades, garage, and garden details
- Create `ir.model.access.csv` to define access control rules.
- Grant full CRUD (read, write, create, delete) permissions to the base user
group (`base.group_user`).
- Register the security CSV file inside the manifest `__manifest__.py`.
- Add window action for estate.property model
- Add 3-level menu hierarchy (Root, Advertisements) with web_icon
- Set selling_price as read-only and non-copyable
- Set default values for bedrooms (2) and date_availability (3 months from today)
- Add active and state reserved fields with default values
- Create security/security_groups.xml to define the Real Estate category,
  Access privilege, and user groups (Agent, Buyer, Owner)
- Add list, form, and search views for the estate.property model
  in views/estate_property_views.xml

@bit-odoo bit-odoo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hello @dhruvikalariyaa
Good Work!

Can you please improve all your commit titles and messages according to the guidelines?
Also, improve your PR description.

Thanks

Comment thread estate/models/estate_property.py Outdated
Comment on lines +1 to +2
from odoo import fields, models
from dateutil.relativedelta import relativedelta

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Comment thread estate/views/estate_menus.xml Outdated
Comment on lines +20 to +30
<!-- Settings Main Menu item -->
<!-- <menuitem
id="menu_estate_settings"
name="Settings"
parent="estate_menu_root"/>
Property Type sub menu of Settings Menu item
<menuitem
id="menu_estate_property_type"
name="Property Type"
parent="menu_estate_settings"
action="estate_property_action"/> -->

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No need to push dead code into the PR.

Comment thread estate/views/estate_menus.xml Outdated
id="menu_estate_advertisement"
name="Advertisements"
parent="estate_menu_root"/>
<!-- Properties sub menu of Advertisements Menu item -->

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No need to add comments for all. It's only necessary when the code is complex, etc.

Comment thread estate/views/estate_property_views.xml Outdated
Comment thread estate/security/security_groups.xml Outdated
Comment on lines +9 to +10
<field name="category_id"
ref="model_category_real_estate"/>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Two lines are not needed.

Introduce property types, tags, and offers to expand module capabilities,
while refactoring existing code to comply with Odoo standards.
- Add new models and views for property types, tags, and offers.
- Rename Many2one fields 'buyer' and 'salesperson' to 'buyer_id' and
  'salesperson_id' in 'estate.property'.
- Rename XML view and action record IDs to use '[model_name]_view_[type]'
  and '[model_name]_action' naming patterns.
- Move security configurations to 'security/estate_security.xml'.
- Align Python imports and XML files formatting.
- Add demo data files for property types (demo_types.xml), property tags
   (demo_tags.xml), and properties (demo_property.xml).
- Add tag_ids field with widget 'many2many_tags' to property list view.
- Add 'Has garden' and 'Has garage' filters to the property search view.
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