Skip to content

[ADD] real_estate: add complete real estate management module #839

New issue

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

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

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: 18.0
Choose a base branch
from

Conversation

metu-odoo
Copy link

@metu-odoo metu-odoo commented Jul 9, 2025

This branch introduces a complete Real Estate management module to handle
property listings, offers, access control, invoicing, and website integration.
Key Features:

Property Management: Configure and manage estate properties with clean form,
list, and kanban views.
Offer Handling: Enable offer submission with business validations and acceptance
workflows.
Access Control: Define model-level access and permissions for real estate roles.
Website Integration: Display listings and allow users to submit offers online.
Accounting: Seamlessly integrate with invoicing through the
estate_account module
Standards Compliance: Includes test coverage and follows Odoo best practices.

This module offers an end-to-end Real Estate solution within the Odoo ecosystem.

metu-odoo added 4 commits July 3, 2025 13:03
Created the initial file architecture for the real_estate module,
including the necessary directories and manifest file.

Implemented the estate.property model using Odoo ORM to
define the database table structure required for storing property-related data.

This commit sets up the foundation for the module, making it ready for
further development of features such as property management, views,
and business logic.
Added access control rules for the real_estate module to restrict and manage
user permissions.

Implemented list and form views for the estate.property model,
including search functionality.

Customized list and form views with additional fields.

These enhancements provide the necessary security and
user interface elements..
…buttons

- Linked models using One2many, Many2one, and Many2many fields
- Added computed fields like best_offer and offer_deadline
- Implemented onchange methods for dynamic field updates
- Created type='object' buttons:
  • Sold / Cancelled on properties
  • Accept / Refuse on offers
…ttons

- Added inline views, statusbar, widget options
- Set SQL & Python constraints for data validity
- Defined default ordering for all models
- Conditional button visibility & field behaviors
- Editable/color-coded list views with decorations
- Stat button for offer count on property type
@robodoo
Copy link

robodoo commented Jul 9, 2025

Pull request status dashboard

@metu-odoo metu-odoo marked this pull request as draft July 9, 2025 09:02
…ration

- Enforced business rules for property deletion and offer validation
- Linked available properties to users via domain and UI integration
- Introduced estate_account as a modular extension for invoicing
  with commission and fixed administrative charges
@metu-odoo metu-odoo force-pushed the 18.0-training-metu branch from ab10458 to 7a4879a Compare July 10, 2025 04:54
Copy link

@maad-odoo maad-odoo left a comment

Choose a reason for hiding this comment

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

First pass ... 🚀 ,
Not in depth technical review.

  • The PR title is not appropriate. The PR title should be describe more about why the
    PR is made on the first place.
  • The diff contains alot of unnecessary diff.

Please adapt this change and do not leave unnecesary diffs 🙏
Thank you 🙂

Contains a lot of unnecessary diff which is not required.

@@ -0,0 +1 @@
from . import models

Choose a reason for hiding this comment

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

Missing licensing info

Applies throughout the diff

Copy link
Author

@metu-odoo metu-odoo Jul 10, 2025

Choose a reason for hiding this comment

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

-- coding: utf-8 --
Part of Odoo. See LICENSE file for full copyright and licensing details.
sir do you mean this ?

Copy link
Author

Choose a reason for hiding this comment

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

runbot is failing because of these lines

Choose a reason for hiding this comment

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

it will be failing because of encode declaration and not for the licensing part.
you can remove the encoding part and keep the licensing part

@metu-odoo metu-odoo changed the title 18.0 training metu [ADD] estate: add complete real estate management module Jul 10, 2025
@metu-odoo metu-odoo changed the title [ADD] estate: add complete real estate management module [ADD] real_estate: add complete real estate management module Jul 10, 2025
@metu-odoo metu-odoo force-pushed the 18.0-training-metu branch 3 times, most recently from 64b8a3e to 5c94fc5 Compare July 10, 2025 12:35
@metu-odoo
Copy link
Author

metu-odoo commented Jul 10, 2025 via email

- Renamed methods and variables to follow naming conventions
- Reviewed and aligned code with Odoo coding standards
- Studied and applied key security practices:
  - Avoided unsafe public methods
  - Prevented direct SQL and ensured ORM usage
  - Avoided unsafe attribute access patterns
@metu-odoo metu-odoo force-pushed the 18.0-training-metu branch from 5c94fc5 to b02961b Compare July 10, 2025 12:51
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