Skip to content

[ADD] Estate: Adding the new Real Estate Module's directory. #778

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 14 commits into
base: 18.0
Choose a base branch
from

Conversation

karygauss03
Copy link

In this PR, I initialized the basic structure of the new Estate module directory (manifest and init files).
This work is related to the second chapter of the server framework 101 official documentation by Odoo.

@robodoo
Copy link

robodoo commented May 19, 2025

Pull request status dashboard

@karygauss03 karygauss03 force-pushed the 18.0-tutorial-kaom branch from af94d67 to 7593caa Compare May 19, 2025 12:57
In this PR, I initialized the basic structure of the new Estate module directory (manifest and init files).
This work is related to the second chapter of the server framework 101 official documentation by Odoo.
@karygauss03 karygauss03 force-pushed the 18.0-tutorial-kaom branch from 7593caa to 24780a6 Compare May 19, 2025 12:58
In this PR, I added the main structure of the Estate model in order to create the estate_property table.
This work is related to the third chapter of the technical onboarding (Server framework 101) from Odoo.
@karygauss03 karygauss03 force-pushed the 18.0-tutorial-kaom branch 2 times, most recently from ba36917 to 1a7cb79 Compare May 20, 2025 07:11
In this PR, I added the security access csv file (ir.model.access.csv) for the new Estate Model inorder to remove the undesired warning: WARNING rd-demo odoo.modules.loading: The models ['estate.property'] have no access rules in module estate, consider adding some, like:
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink.
This commit is related to the 4th chapter of the Server Framework 101 from Odoo's documentation.
@karygauss03 karygauss03 force-pushed the 18.0-tutorial-kaom branch from 1a7cb79 to 7f3c578 Compare May 20, 2025 07:29
In this commit, I added the estate property view and menus in order to start interacting with our new model using the UI.
I also added two new attributes to the estate property model, which are active and state, and I set some attributes to have a default values and to not be copied when a duplication is created.
This is related to the 5th chapter of the Server Framework 101 Odoo's course.
@karygauss03 karygauss03 force-pushed the 18.0-tutorial-kaom branch from a6d5ddf to fac8089 Compare May 20, 2025 11:57
In this commit, I added a customizable list view for the estate property view. Also, I added the search, filter and group by feature using specific attributes of the estate property.
This part is based on the 6th chapter of Server Framework 101 Odoo's documentation.
@karygauss03 karygauss03 force-pushed the 18.0-tutorial-kaom branch from fac8089 to 830ba91 Compare May 20, 2025 12:49
Copy link

@amah-odoo amah-odoo left a comment

Choose a reason for hiding this comment

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

Great job!! Thanks for your work 🚀
Just couple of tiny comments

@karygauss03 karygauss03 force-pushed the 18.0-tutorial-kaom branch from 31fb2ad to d604277 Compare May 20, 2025 15:10
In this commit, I added the needed relationships between types, tags and offers using Many2one, Many2many and One2many.
I also added the needed views, forms and actions (only for tags and types).
I added a new notebook page within the estate property view model to display and edit the list of offers.
This commit is related to the 7th chapter of Server Framework 101 in Odoo's documentation.
@karygauss03 karygauss03 force-pushed the 18.0-tutorial-kaom branch 4 times, most recently from b70bb04 to 422a131 Compare May 21, 2025 13:29
karygauss03 added 3 commits May 22, 2025 10:35
In this commit, I added the following computed fields:
- Estate Property: best_price and total_area
- Estate Offer: validaty and date_deadline
Also, I introduced the onchange method to set default values of the garden area and garden orientation when the garden attribute is set to True.
This commit is related to the 8th chapter of Server Framework 101 Odoo's official documentation.
In this commit, I added buttons to the estate form view in order to set an estate as sold or canceled. Also, I did the same thing within the offer line, to accept or reject offers.
This work is related to the 9th chapter of Server Framework 101 from Odoo's documentation.
…els.

In this commit, I added the sql and python constraints for the prices of the estate and the offers.
This commit is related to the 10th chapter of the Server Framework 101 Odoo's documentation.
@karygauss03 karygauss03 force-pushed the 18.0-tutorial-kaom branch from 422a131 to bb3b38e Compare May 22, 2025 08:36
In this commit, I improved the UI to adapt it to the business needs of the estate module.
I added decorations based on conditions, status bar widget, managing orders display in the list, manual ordering, and a stat button for related fields.
This commit is related to the 11th chapter of Server Framework 101 from Odoo's official documentation.
@karygauss03 karygauss03 force-pushed the 18.0-tutorial-kaom branch from 094bfa3 to 5782795 Compare May 22, 2025 08:49
Copy link

@amah-odoo amah-odoo left a comment

Choose a reason for hiding this comment

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

Great work 🚀
one tiny nitpicking which is the xml files does not follow an defined order like search, list, form, action.

@karygauss03 karygauss03 force-pushed the 18.0-tutorial-kaom branch from 9bd5ed9 to 5354f7b Compare May 22, 2025 11:53
In this commit, I created a new model inherited from the res.users and its view which is inherited from the parent view base.view_users_form.
I also overrided the unlink (using ondelete decoration) for the property and the create for the property offer.
I fixed the comment from ABHA to keep the same order of the records in the views (search, form, list, and actions).
This commit is related to the 12th chapter of Server Framework 101 from Odoo's official documentation.
@karygauss03 karygauss03 force-pushed the 18.0-tutorial-kaom branch from 5354f7b to 8d30b55 Compare May 22, 2025 19:01
karygauss03 added 2 commits May 23, 2025 10:00
In this commit, I created the link between the estate and invoicing modules using a bridge module 'Estate Account'.
I also overrided the 'action_set_sold' to create an invoice when a property sold.
This work is related to the 13th chapter of Server Framework 101 from Odoo's official documentation.
In this commit, I added the kanban view to the estate property with the ability to display some information under specific conditions using the template conditions.
Also, properties are grouped by property type and the drag and drop is disabled.
This work is related to the 14th chapter of Server Framework 101 from Odoo's official documentation.
@karygauss03 karygauss03 force-pushed the 18.0-tutorial-kaom branch from 6017c6c to 05f168d Compare May 23, 2025 09:39
Copy link

@amah-odoo amah-odoo left a comment

Choose a reason for hiding this comment

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

Thanks for your work 🤩
Great job just some tiny comments

In this commit, I fixed the received comments from ABHA.
@karygauss03 karygauss03 force-pushed the 18.0-tutorial-kaom branch from 6511276 to 3d26bd8 Compare May 30, 2025 14:06
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants