Skip to content
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

[ADD] estate: add the real estate module #173

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

Commits on Oct 25, 2024

  1. Cover chepter1 to chepter5

    sahm-odoo committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    1f3f545 View commit details
    Browse the repository at this point in the history
  2. [ADD] estate_property: implemented upto chapter-7 (Relations Between …

    …Models)
    
    Completed the first three chapters of the Odoo developer tutorials.
    Set up the development environment.
    Created the real estate module and model with various fields.
    Established access rights for the model.
    Developed initial XML views for the module.
    Added relational models for estate properties, offers, tags, and types:
    Implemented One2many, Many2many, and Many2one relationships in models ()
    Created basic views (search, list, form) for these models
    Implemented filters, groupby, and domain functionalities.
    sahm-odoo committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    5f2df6c View commit details
    Browse the repository at this point in the history
  3. [IMP] estate_property: computed Fields And Onchanges

    - Added computed fields for total area and best offer in estate property model.
    - Implemented inverse method for offer validity date computation.
    - Created onchange method to auto-fill garden area and orientation based on
    garden field.
    sahm-odoo committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    2f380fa View commit details
    Browse the repository at this point in the history
  4. [IMP] estate_property: sql/python constraints and action buttons for …

    …property
    
    - Added 'Cancel' and 'Sold' buttons to estate.property model with business
    logic.
    - Ensured canceled properties cannot be sold and sold properties cannot be
    canceled.
    - Added 'Accept' and 'Refuse' buttons to estate.property.offer model.
    - Set buyer and selling price when an offer is accepted.
    - Added SQL constraints to enforce unique property tag and type names.
    - Ensured property expected price, selling price, and offer price are strictly
    positive using SQL constraints.
    - Added Python constraint to validate selling price is at least 90% of the
    expected price.
    sahm-odoo committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    6152cae View commit details
    Browse the repository at this point in the history
  5. [IMP] estate: completed chapter 11

    Chapter 11
    - Added inline list view for property types to display offers.
    - Implemented statusbar widget to show property states.
    - Established default sorting for property and offer models.
    - Introduced manual ordering for property types using a sequence field.
    - Enabled conditional display of buttons based on property state.
    - Applied color decorations to property and offer list views.
    - Made estate.property.offer and estate.property.tag list views editable.
    - Set default filter for 'Available' properties in the action.
    - Improved search functionality for living area filtering.
    - Added stat button to property type form to view related offers.
    sahm-odoo committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    e3806dd View commit details
    Browse the repository at this point in the history
  6. [IMP] estate: complete chapter 12, 13, 14

    - Prevent deletion of properties unless their state is 'New' or 'Canceled'.
    - Ensure that new offers cannot be created with a price lower than existing
    offers and setting the state to 'Offer Received' upon creation.
    - Introduce a property_ids field in the res.users model, establishing a
    one-to-many relationship with properties, and applying a domain filter to
    show only properties in states 'New' or 'Offer Received'.
    - Extend the user form view to include the property_ids in a new notebook page.
    
    - Created a new module to connect the real estate and invoicing.
    - Modified the property sold action to automatically create a customer
    invoice with two line items.
    
    - Created a basic Kanban view to display property names in clickable cards.
    - Added fields for expected price, best price, selling price, and tags, with
    conditional visibility for prices.
    - Grouped properties by type by default and disabled drag-and-drop functionality.
    sahm-odoo committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    87e4855 View commit details
    Browse the repository at this point in the history
  7. [IMP] estate: define module data chapter completed

    - Added standard Real Estate Property Types: Residential, Commercial,
    Industrial, and Land.
    - Created demo data for the estate module with properties like Big Villa and
    Trailer Home.
    - Created demo data offers for properties, using partners (use ref) defined in
    base.
    - Set Property Type to Residential for both demo properties (use ref).
    - Validated one demo offer and refused the others using the function and eval.
    - Created a new Property with offers added directly to the One2many field using
    Command methods.
    sahm-odoo committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    7d59de0 View commit details
    Browse the repository at this point in the history
  8. [IMP] estate: implemented security restrictions for the Real Estate m…

    …odule
    
    - Added groups for real estate agents and managers.
    - Defined access rights: agents can read types/tags but cannot delete properties
    - Created record rules to restrict agents to only see/manage their own
    properties.
    - Updated estate_account to bypass security for confirming sales without full
    invoicing access.
    sahm-odoo committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    0cd5a6d View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2024

  1. [IMP] estate: completed build pdf reports

    - Added a template to show property offers.
    - Enhanced the template to display a message if there are no offers.
    - Created a sub-template specifically for the offers table.
    - Built a report listing all properties for a user.
    - Used an inherited template and added a condition to display about invoice
    sahm-odoo committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    8a1e2c2 View commit details
    Browse the repository at this point in the history
  2. [IMP] estate: add 'add offer' wizard for bulk offer creation on prope…

    …rties
    
    - Implemented 'Add Offer' wizard for adding offers on multiple properties
    - Added button in estate property tree view header to open wizard
    - Wizard includes fields for price, buyer selection
    - Added 'Make an Offer' button to execute offer creation and 'Cancel' button to
    exit
    sahm-odoo committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    031723f View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2024

  1. [IMP] estate: controller for estate properties

    - Added a Properties menu to display unsold properties in a grid format.
    - Integrated image display for each property on the front-end.
    - Implemented pagination to display a maximum of 6 properties per page.
    - Ensured only properties that are not canceled or archived are listed.
    - Implement dedicated property page accessible via View Details link from
    property grid
    sahm-odoo committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    2205437 View commit details
    Browse the repository at this point in the history
  2. [ADD] stock_transport: link fleet management with batch transfers in …

    …inventory
    
    - Developed the stock_transport module to establish a connection between fleet
    management and batch transfers within the inventory system.
    - Introduced max_weight and max_volume fields in fleet categories to specify
    capacity limits.
    - Modified the fleet vehicle model's display_name to include maximum weight and
    volume values (max_w, max_v).
    - Added computed fields weight and volume in stock batch picking to calculate the
    cumulative weight and volume of items within each batch.
    - Created the stock_install module to handle the installation of stock_transport
    through inventory settings.
    sahm-odoo committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    779b0c3 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2024

  1. [IMP] stock_transport: integrate graph and gantt views

    - Added a Graph View to visualize key measures, including volume, weight,
    transfers, and lines.
    - Introduced a customized Gantt View
    - Modified the display name to provide better batch identification.
    - Set default grouping by Dock and Fleet together.
    - Included visual indicators such as decoration-success, decoration-info, and
    decoration-warning based on the batch’s status.
    sahm-odoo committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    3d906fb View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2024

  1. [ADD] stock_transport: restrict visibility of print label button and …

    …fields
    
    - Made Print Label button visible only to Michell admin (user_admin).
    - Restricted visibility of fields in stock_transport module (category, vehicle,
    progress bar, dock, max_volume, max_weight, volume column) to Michell admin
    (user_admin).
    sahm-odoo committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    fc67cf0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3018eb0 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2024

  1. [IMP] sub_product: perform final task feature

    - Added is_kit boolean field to identify kit products.
    - Added button to allow adding sub-products under main
    products.
    - Created wizard view to display sub-products.
    - Enabled addition of sub-products in order line, with automatic recalculation
    of unit price for main product.
    - Restricted editing of sub-product lines in order.
    - Implemented automatic deletion of sub-products when main product is deleted.
    - Added print_in_report boolean field to control display of sub-products in sale
    order, preview, and invoice reports.
    sahm-odoo committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    9e658b6 View commit details
    Browse the repository at this point in the history