[ADD] estate : implement estate module #1193
Conversation
aykhu-odoo
commented
Mar 10, 2026
- Configured manifest with required metadata and dependencies.
- It covers chapter- 2 and 3 task
- Added the required fields.
efdc8c4 to
abf9768
Compare
bit-odoo
left a comment
There was a problem hiding this comment.
Hello @aykhu-odoo
Good Work!
I have added some comments.
No need do separate commit for - 7285ddd, e8ca15e
Can you please follow commit message guidelines?
https://www.odoo.com/documentation/19.0/contributing/development/git_guidelines.html
Thanks
estate/models/estate_property.py
Outdated
| from odoo import fields, models | ||
| from dateutil.relativedelta import relativedelta |
There was a problem hiding this comment.
Can you please follow the coding import guidelines?
https://www.odoo.com/documentation/19.0/contributing/development/coding_guidelines.html#imports
estate/models/estate_property.py
Outdated
| selection=[('north', 'North'), | ||
| ('south', 'South'), | ||
| ('east', 'East'), | ||
| ('west', 'West')], |
estate/models/estate_property.py
Outdated
| selection=[("New", "New"), | ||
| ("Offer Received", "Offer Received"), | ||
| ("Offer Accepted", "Offer Accepted"), | ||
| ("Sold", "Sold"), | ||
| ("Cancelled", "Cancelled")], |
estate/security/ir.model.access.csv
Outdated
| @@ -0,0 +1,2 @@ | |||
| id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | |||
| estate.access_estate_property,access_estate_property,estate.model_estate_property,base.group_user,1,1,1,1 No newline at end of file | |||
There was a problem hiding this comment.
Should be one empty line at the end of the file.
estate/views/estate_menus.xml
Outdated
| <menuitem id = "estate_menu_advertisements_properties" name = "Properties" action="estate_property_action"/> | ||
| </menuitem> | ||
| </menuitem> | ||
| </odoo> No newline at end of file |
There was a problem hiding this comment.
Should be one empty line at the end of the file.
| <form> | ||
| <sheet> | ||
| <h1> | ||
| <field name="name"/> |
26297a2 to
5b473b9
Compare
…tion - Configured manifest with required metadata and dependencies. - It covers chapter- 2 and 3 task - Added the required fields.
- Completed Ch 4 task for Access Rights
- Created an action - Define main menu and submenus - Add views to manifest 'data' list - Completed Ch 5 Action and Menu part
- Added is_active and state fields in form - Added fields in list view - Improved and adjusted fields in Form View - Completed Ch 5 and Ch 6 List and Form Views
- Implemented search view - Added property types, tags, and offers models - Linked properties with buyer, salesperson, types, tags, and offers - Completed Ch 6 and Ch 7.
5b473b9 to
a3464a1
Compare
|
Changes Done |
bit-odoo
left a comment
There was a problem hiding this comment.
Hello,
Can you please update the tag in the commit message according to these guidelines?
https://www.odoo.com/documentation/19.0/contributing/development/git_guidelines.html#tag-and-module-name
Also, can you please improve your PR title and description?
Thanks
| name = fields.Char(string='Title', required=True, default='Unknown') | ||
| description = fields.Text(string='Description') | ||
| postcode = fields.Char(string='Postal Code') | ||
| last_seen = fields.Datetime( |
There was a problem hiding this comment.
Can you please tell me the use of this field? Why did you add this field?
| <?xml version="1.0" encoding="utf-8"?> | ||
| <odoo> | ||
| <record id="estate_property_action" model="ir.actions.act_window"> | ||
| <field name="name">Test action</field> |
| ) | ||
|
|
||
| @api.depends("living_area", "garden_area") | ||
| def _compute_area(self): |
There was a problem hiding this comment.
Can you please follow the coding guidelines for the compute method naming?
https://www.odoo.com/documentation/19.0/contributing/development/coding_guidelines.html#symbols-and-conventions
| @@ -0,0 +1,30 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <odoo> | |||
| <!-- List View--> | |||
There was a problem hiding this comment.
These comments are not required here.
| </field> | ||
| </record> | ||
|
|
||
| <!-- Form View --> |
There was a problem hiding this comment.
These comments are not required here.
| <field name="living_area"/> | ||
| <field name="facades"/> | ||
| <field name="property_type_id"/> | ||
| <filter name="state" string="Status" domain="['|', ('state', '=', 'New'), ('state', '=', 'Offer Received')]"/> |
- Added Best Offer and Total Area fields in property form view - Covers 2 tasks of chapter 8.
869ba73 to
afff7e1
Compare
