Skip to content

[ADD] estate,*: added real estate module #846

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

zadh-odoo
Copy link

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

*=estate_account

  • Initialize estate module.
  • Define property model with key fields
  • Add basic list and form views for properties
  • Set up menu items and actions for navigation
  • Implement model inheritance as required
  • Create invoice upon property sale

zadh-odoo added 4 commits July 2, 2025 19:02
- Created new 'estate' module.
- Added base model 'estate.property' with fields mentioned in exercise.
- Set up module structure.
- Set 'name' and 'expected_price' as required fields.
- Added security rules for the estate.
- Registered the security files in __manifest__.py to enable permission.
- Created menu items for the estate.property model.
- Added XML files for actions and menus.
- Added basic views for the estate.property model, including form and list views.
- Set default values for fields, made certain fields readonly.
-Created new models for property offers,tags and types.
-Defined relation between these data models for accessing data across the model.
-Created new views for property types,property tags.
-Defined action on button click , created computed fields .
- Added SQL constraints to ensure:
  - Property expected price is strictly positive
  - Property selling price is positive
  - Offer price is strictly positive
  - Property tag name and property type name are unique

- Added Python constraint to prevent selling price from being set below 90% of expected price

- Changes in UI:
  - Added inline list view for properties on property type form
  - Used statusbar widget for property state display
  - Defined default ordering for models and enabled manual ordering for property types via sequence field
  - Applied widget options to restrict creation/editing of property types from property form
@robodoo
Copy link

robodoo commented Jul 9, 2025

Pull request status dashboard

@zadh-odoo zadh-odoo force-pushed the 18.0-training-zadh branch 3 times, most recently from d7e6602 to 824ce8f Compare July 9, 2025 13:36
…module

Applied model and view inheritance patterns to extend core functionality

Enabled interactions between modules for enhanced business workflows

Updated business logic to support new integration features
@zadh-odoo zadh-odoo force-pushed the 18.0-training-zadh branch from 824ce8f to 756fc9e Compare July 10, 2025 04:48
@zadh-odoo zadh-odoo changed the title [ADD] estate: Added real estate module [ADD] estate: added real estate module Jul 10, 2025
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.

Quick pass.

There are of unwanted diff in the code base.
Also the PR message is not appropriate, please adapt this as well.

Comment on lines 8 to +10
view_mode = fields.Selection(selection_add=[
('gallery', "Awesome Gallery")
], ondelete={'gallery': 'cascade'})
], ondelete={'gallery': 'cascade'})

Choose a reason for hiding this comment

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

why this change ?

@zadh-odoo zadh-odoo force-pushed the 18.0-training-zadh branch 2 times, most recently from 58239c2 to 9066f95 Compare July 14, 2025 05:07
…module data

- Added security groups, access rights, and record rules to both estate and estate_account modules.
- Defined and updated security XML files: created agent and manager groups, set appropriate access permissions for each model.
- Added record rules to restrict agents to their own properties and ensure managers have global access.
- Populated initial group and access data using XML data files.
- Updated module manifests to reference new security and data files.
- estate_account inherits and respects estate security, and applied access rules to accounting-related features.
- Create demo records for estate properties and link them to the appropriate property types. These records will be used for testing and demonstration purposes.
- Add demo offers related to the demo properties, ensuring each offer is associated with a valid property and partner.
- Add initial master data for property types, including Residential, Commercial, Industrial, and Land. This provides the base categories for estate properties.
@zadh-odoo zadh-odoo force-pushed the 18.0-training-zadh branch from 9066f95 to 4562c04 Compare July 14, 2025 05:10
@zadh-odoo zadh-odoo changed the title [ADD] estate: added real estate module [ADD] estate,*: added real estate module Jul 14, 2025
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