Skip to content

[ADD] estate: add module to sell property#1187

Open
prsan-odoo wants to merge 9 commits intoodoo:19.0from
odoo-dev:19.0-tutorials-estate-prsan
Open

[ADD] estate: add module to sell property#1187
prsan-odoo wants to merge 9 commits intoodoo:19.0from
odoo-dev:19.0-tutorials-estate-prsan

Conversation

@prsan-odoo
Copy link
Copy Markdown

@prsan-odoo prsan-odoo commented Mar 10, 2026

-Created a new app called Estate.
-Set up the estate addon with a proper manifest file.
-Added estate property model with all required fields.
-Access rights assigned to base groups.
-CH2 , CH3 Completed.

@robodoo
Copy link
Copy Markdown

robodoo commented Mar 10, 2026

Pull request status dashboard

@prsan-odoo prsan-odoo force-pushed the 19.0-tutorials-estate-prsan branch from 506d60c to 42dea24 Compare March 10, 2026 13:29
@prsan-odoo prsan-odoo marked this pull request as ready for review March 13, 2026 04:03
Copy link
Copy Markdown

@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 @prsan-odoo
Good Work!

I have added some comments.
Can you please follow the commit message guidelines?
https://www.odoo.com/documentation/19.0/contributing/development/git_guidelines.html

Thanks

@prsan-odoo prsan-odoo force-pushed the 19.0-tutorials-estate-prsan branch 2 times, most recently from 2ccf395 to 0bb3d15 Compare March 17, 2026 13:18
@prsan-odoo prsan-odoo force-pushed the 19.0-tutorials-estate-prsan branch 4 times, most recently from 7f6eb45 to 94858ce Compare March 25, 2026 04:38
Copy link
Copy Markdown

@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!
Can you please update your commit message according to the guidelines?
https://www.odoo.com/documentation/19.0/contributing/development/git_guidelines.html#commit-message-full-description

Also, can you please improve the PR title and PR description?

Thanks

@prsan-odoo prsan-odoo force-pushed the 19.0-tutorials-estate-prsan branch from de1ab64 to b086120 Compare March 27, 2026 04:58
-Created a new app called Estate.
-Set up the estate addon with a proper manifest file.
-Added estate property model with all required fields.
-Access rights assigned to base groups.
-CH2 , CH3 Completed.
@prsan-odoo prsan-odoo changed the title [ADD] estate: set up real estate advertisement module(CH2,CH3 Done) [ADD] estate: add module to sell property Mar 27, 2026
@prsan-odoo prsan-odoo force-pushed the 19.0-tutorials-estate-prsan branch 4 times, most recently from 40f40c8 to 379a448 Compare March 27, 2026 06:47
The tutorial uses base groups, giving all rights to every user. Instead,
Two dedicated groups are defined:

- Agent: read and write access only
- Manager: full CRUD access, implies Agent group
- Admin user is automatically assigned the Manager group
- CH4 Done
- Selling Price field is set as readonly so users cannot edit it
  manually; it is determined through the offer validation flow.
- Selling Price and State fields are not duplicated when a property
  is copied, to avoid carrying over stale data.
- Availability Date field is not duplicated so a fresh date is
  always required for new listings.
- Bedrooms field defaults to 2 as a sensible starting point.
- Active field defaults to True so properties are visible by default
  in list views.
- State field is required and defaults to 'New' to track the
  property through its lifecycle.
- CH5 done
@prsan-odoo prsan-odoo force-pushed the 19.0-tutorials-estate-prsan branch from 379a448 to 61d8d94 Compare March 27, 2026 06:48
Add basic UI views for the estate.property model to allow
users to interact with property records.

- Add list view to display properties in a tabular format.
- Add form view to create, edit, and view individual properties.
- Chapter 6 partially done (list and form views).
@prsan-odoo prsan-odoo force-pushed the 19.0-tutorials-estate-prsan branch from 61d8d94 to 20b113c Compare March 27, 2026 06:53
Improve the estate.property views to make property browsing
more efficient for users.

- Add search view with filters for available properties
  and properties by current user.
- Add group by postcode option in search view.
- Apply domain filters on list and form views to refine
  displayed records.

Chapter 6 completed.
@prsan-odoo prsan-odoo force-pushed the 19.0-tutorials-estate-prsan branch from 20b113c to 458dcb2 Compare March 27, 2026 06:56
The estate module needed relational fields to link properties
to other records, demo data for easier development and testing,
and an app logo for better identification in the app list.

- Add Many2one fields for property type, buyer, and salesperson.
- Add Many2many field for property tags.
- Add One2many field for property offers.
- Add demo data with 5 sample properties for testing.
- Add app logo to identify the module in the app list.

Chapter 7 completed.
@prsan-odoo prsan-odoo force-pushed the 19.0-tutorials-estate-prsan branch from 458dcb2 to d244688 Compare March 27, 2026 07:00
…line

Computed fields are needed to automatically calculate values
that depend on other fields, avoiding manual input errors.

- Add total area computed field combining living area and garden area.
- Add best price computed field to show the highest offer received.
- Add offer deadline computed field based on creation date and
  validity duration, with inverse to allow direct date editing.

Chapter 8 partially done (computed fields only).
@prsan-odoo prsan-odoo force-pushed the 19.0-tutorials-estate-prsan branch from d244688 to 75dfa75 Compare March 27, 2026 07:03
When a user enables the garden option, the garden area and
orientation fields should be auto-filled with sensible defaults
to reduce manual input. When disabled, both fields should be
cleared to avoid stale data.

- Add onchange method on garden field to set default garden
  area and orientation when garden is enabled.
- Clear garden area and orientation when garden is disabled.

Chapter 8 completed.
@prsan-odoo prsan-odoo force-pushed the 19.0-tutorials-estate-prsan branch from 75dfa75 to f1b3862 Compare March 27, 2026 07:05
- Add optional hide on living area, seller, and buyer columns
  in list view to reduce visual clutter.
- Add domain filters in search view to refine property results.
- Set default search to show properties with offers received.
@prsan-odoo prsan-odoo force-pushed the 19.0-tutorials-estate-prsan branch from f1b3862 to 042e840 Compare March 27, 2026 07:07
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