Skip to content

[ADD] estate:estate module creation and model implementation.#1194

Draft
habar-odoo wants to merge 12 commits intoodoo:19.0from
odoo-dev:19.0-tutorials-estate-habar
Draft

[ADD] estate:estate module creation and model implementation.#1194
habar-odoo wants to merge 12 commits intoodoo:19.0from
odoo-dev:19.0-tutorials-estate-habar

Conversation

@habar-odoo
Copy link
Copy Markdown

1.Configured manifest with required metadata.
2.Covers chapter 2 and 3.
3.Added all the required fields & attributes.

…ured manifest with required metadata.

2.Covers chapter 2 and 3.
3.Added all the required fields & attributes.
@robodoo
Copy link
Copy Markdown

robodoo commented Mar 10, 2026

Pull request status dashboard

1)  Add missing white spaces after  ','.
2) Update parameter String to string.
3) Update manifest file.
1)  Add missing white spaces after  ','.
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 @habar-odoo
Nice work!

I have added some comments.
No need to separate commit for this - 9394ad6, e69355a, bc2d081 , dede429

Can you please follow commit message guidelines?
https://www.odoo.com/documentation/19.0/contributing/development/git_guidelines.html

Thanks

Comment on lines +1 to +2
from odoo import models, fields
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.

@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_estate_property,access_estate_property,model_estate_property,base.group_user,1,1,1,1 No newline at end of file
Copy link
Copy Markdown

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 the end of the file.

Comment on lines +11 to +14
'security/ir.model.access.csv',
'views/estate_property_views.xml',
'views/estate_menus.xml',
],
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

indentation issue.

Comment on lines +30 to +31
('offerreceived', 'Offer Received'),
('offeraccepted', 'Offer Accepted'),
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
('offerreceived', 'Offer Received'),
('offeraccepted', 'Offer Accepted'),
('offer_received', 'Offer Received'),
('offer_accepted', 'Offer Accepted'),

A little bit readable 😅

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

All changes done!

@habar-odoo habar-odoo force-pushed the 19.0-tutorials-estate-habar branch 2 times, most recently from 0726f45 to 80c5943 Compare March 21, 2026 08:36
1) Add security file give access rules
2) Update manifest
Create views folder and define actions & menus for the model
Declare it in the manifest
1) Create Form view & Search view for the estate model.
@habar-odoo habar-odoo force-pushed the 19.0-tutorials-estate-habar branch 2 times, most recently from fba649c to 7781522 Compare March 21, 2026 09:01
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,
Great Work!

Can you please add a description to this commit - 7781522

Also, can you please improve all your commit titles and messages according to the guidelines - https://www.odoo.com/documentation/19.0/contributing/development/git_guidelines.html#

Can you please improve the PR description?

Thanks

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

Choose a reason for hiding this comment

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

Can you please follow the import coding guidelines?

Comment on lines +17 to +19
facades = fields.Integer(string="Facades")
garage = fields.Boolean(string="Garage")
garden = fields.Boolean(string="Garden")
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 a string if your technical name and string name are the same because Odoo is generating the string by default.

</group>
</page>
<page string="Offers">
<field name="offer_ids"/>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

indentation issue.

<field name="name">estate.property.list</field>
<field name="model">estate.property</field>
<field name="arch" type="xml">
<list string="Properties" limit="20">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What is the purpose of adding limit=20?

@habar-odoo habar-odoo force-pushed the 19.0-tutorials-estate-habar branch from 3dfdf02 to f685be3 Compare March 26, 2026 13:30
1) create estate property type, estate property tag & estate property
offer models.
2) creates relations between them using m2o, m2m & o2m.
3) create views, actions & menus.
1) add total area field set compute method inside.
2) apply logic, used decorator for dependent fields.
1) add best price offers field
2) define logic set computed field
1) Define two fields validity and deadline.
2) Create compute & inverse method for them
3) Also added search functionality in the estate property model for best offers.
@habar-odoo habar-odoo force-pushed the 19.0-tutorials-estate-habar branch from f685be3 to 41768c1 Compare March 26, 2026 15:40
1) Define _onchange_garden() to automatically set default garden_area and
 garden_orientation when the garden is enabled.
2) Clear these fields when the garden is disabled.
3) Add a warning notification when the garden checkbox is checked.
@habar-odoo habar-odoo force-pushed the 19.0-tutorials-estate-habar branch from d4b4165 to 57fb096 Compare March 27, 2026 13:20
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