Skip to content

[ADD] estate : implement estate module #1193

Draft
aykhu-odoo wants to merge 7 commits intoodoo:19.0from
odoo-dev:19.0-tutorials-estate-aykhu
Draft

[ADD] estate : implement estate module #1193
aykhu-odoo wants to merge 7 commits intoodoo:19.0from
odoo-dev:19.0-tutorials-estate-aykhu

Conversation

@aykhu-odoo
Copy link
Copy Markdown

  • Configured manifest with required metadata and dependencies.
  • It covers chapter- 2 and 3 task
  • Added the required fields.

@robodoo
Copy link
Copy Markdown

robodoo commented Mar 10, 2026

Pull request status dashboard

@aykhu-odoo aykhu-odoo force-pushed the 19.0-tutorials-estate-aykhu branch from efdc8c4 to abf9768 Compare March 16, 2026 04:35
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 @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

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 on lines +29 to +32
selection=[('north', 'North'),
('south', 'South'),
('east', 'East'),
('west', 'West')],
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 +36 to +40
selection=[("New", "New"),
("Offer Received", "Offer Received"),
("Offer Accepted", "Offer Accepted"),
("Sold", "Sold"),
("Cancelled", "Cancelled")],
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.

@@ -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
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.

<menuitem id = "estate_menu_advertisements_properties" name = "Properties" action="estate_property_action"/>
</menuitem>
</menuitem>
</odoo> 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.

<form>
<sheet>
<h1>
<field name="name"/>
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.

@aykhu-odoo aykhu-odoo force-pushed the 19.0-tutorials-estate-aykhu branch from 26297a2 to 5b473b9 Compare March 17, 2026 13:20
…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.
@aykhu-odoo aykhu-odoo force-pushed the 19.0-tutorials-estate-aykhu branch from 5b473b9 to a3464a1 Compare March 18, 2026 13:34
@aykhu-odoo
Copy link
Copy Markdown
Author

Changes Done

@aykhu-odoo aykhu-odoo changed the title [ADD] estate : implement estate module and estate_property table creation [ADD] estate : implement estate module Mar 23, 2026
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,
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(
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 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>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please use the proper name.

)

@api.depends("living_area", "garden_area")
def _compute_area(self):
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 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-->
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

These comments are not required here.

</field>
</record>

<!-- Form View -->
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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')]"/>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You can combine these two domains.

- Added Best Offer and Total Area fields in property form view
- Covers 2 tasks of chapter 8.
@aykhu-odoo aykhu-odoo force-pushed the 19.0-tutorials-estate-aykhu branch 2 times, most recently from d0870ae to 55c78d6 Compare March 27, 2026 13:08
…nction

- Added Validity and date_deadline fields with inverse function
- Implemented onchange logic for garden_area and garden_orientation
- Suggested fixes implemented
- Covers last 2 tasks of chapter 8.
@aykhu-odoo aykhu-odoo force-pushed the 19.0-tutorials-estate-aykhu branch from 55c78d6 to 3426c8b Compare March 27, 2026 13:19
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