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

[TRAINING] Getting Started Odoo Tutorial #43

Closed
wants to merge 28 commits into from

Commits on Mar 18, 2024

  1. Configuration menu
    Copy the full SHA
    29d0fd9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e3b445f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8006195 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. [ADD] estate: Chapter 6, add my first views and menus

    Playing with views and menus, adding my first views and menus to the estate module.
    Use of the Active reserved field to enable archive & unarchive records.
    Use of the State reserved field to enable lifecycle stages.
    Clement-Cardot committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    9e5e90e View commit details
    Browse the repository at this point in the history
  2. [REF] estate: refactor to match code review comments

    VSCode now manages the end of files Lines
    _compute_three_months_from_now has been rename to _get_default_date_availability
    all utf8 headers have been removed
    Clement-Cardot committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    34cf2e5 View commit details
    Browse the repository at this point in the history
  3. [IMP] estate: Chapter 7-Adding Tree, Form and Search Views

    This commit adds the tree, form and search views to the estate_property model.
    - The tree view is customize to add somes defined fields to the table view.
    - The form view is customized to display the properties in a form structure, Using sheet, group and notebook tags
    - The search view is used to customize default available filters and group-by options.
        -> Available filter : filter by state (only show New and Offer Received)
        -> By Postcode Group : Group by postcode
    Clement-Cardot committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    fd9931c View commit details
    Browse the repository at this point in the history
  4. [IMP] estate: Chapter 9-Add Property Types, Tags, Buyer & Salesman

    Types Many2One relation from Property
    Tags Many2Many relation from Property
    Buyer Many2One relation from Property
    Salesman Many2One relation from Property
    
    Implementation of Property offer with One2Many relation to Property
    Each Offer has a Price, a Status (Accepted, Refused), and a Partner
    Clement-Cardot committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    e6e7e10 View commit details
    Browse the repository at this point in the history
  5. [IMP] estate: Chapter 9-Best Offer, Validity & Garden toogle

    -Implement a computed field to get the best offer of a property in its offers list
    -Implement a computed/Inversed field to set the validity of an offer by Day from creation or by validity date
    -Implement a Onchange method so that when Garden is set to true, the garden area is set to 10 and the orientation to 'North'
    Clement-Cardot committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    27b61e2 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. [IMP] estate: Chapter 10 Property and Offer Actions

    Add actions to the properties to change the state to sold or canceled,
    raise an UserError if the user try to cancel a sold Property or sold a canceled Property.
    
    Add actions to the offers to change the state to accepted or refused,
    if accepted : update the property's buyer and selling price fields.
    raise a UserError if the user try to accept an offer for a property that has already a accepted offer
    Clement-Cardot committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    aee72ba View commit details
    Browse the repository at this point in the history
  2. [IMP] estate: Add contraints to amounts in property & offers

    Add sql contraints to only accept :
    - positive value for the selling price
    - striclty positive value for the expected price and offer price
    - unique name for tags and types
    
    Add python contraints to raise an error if the user try to accept an offer with a price lower than 90% of the expected price
    Clement-Cardot committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    5541c9c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dd849b3 View commit details
    Browse the repository at this point in the history
  4. [REF] estate: refactor method to avoid over-anticipation

    Most actions and public methods now use ensure_one function and are designed for one record only
    Clement-Cardot committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    6999752 View commit details
    Browse the repository at this point in the history
  5. [IMP] estate: Chapter 12-Inline Views Widgets List Order & Stat Button

    Add an inline view on the property type form view to display the list of properties related to this type.
    
    Add a status bar widget to the property form view to show and select the state of the property.
    
    Add some model order rules on :
    - property (ID desc)
    - property offer (Price desc)
    - property type (Name)
    - property tag (Name)
    Add a Manual order rule to the Property Type tree view thanks to a handle widget and a sequence field.
    
    Prevent creation and editing of property types from the property form view
    add a property tag color
    
    Hide Sold and Cancel button on the property form view if the property is already sold or canceled.
    
    Hide/Show Garden settings on the property form view depending on the garden field state.
    
    Make the property offer and property tag list views editable
    
    Make the date_availability optional and hidden by default on the property list view
    
    Add some decorations on property and property offer list views (green, bold, muted, red)
    
    Add default filter on the property list view to show only available properties
    
    Add a filter domain to the living_area to show only properties with a living area greater than the researched value.
    
    Add a stat button to the the property type form view to show the offers count and redirect to the offers list view populated with the related offers.
    Clement-Cardot committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    519a100 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2024

  1. [IMP] estate: Chapter 13-Python Model and View Inheritance

    Python Inheritance:
    - Prevent deletion of a property if its state is not ‘New’ or ‘Canceled’ with ondelete inheritance
    
    - At offer creation, set the property state to ‘Offer Received’.
    Also raise an error if the user tries to create an offer with a lower amount than an existing offer.
    
    Model Inheritance:
    - Add a property_ids field to the res.users model with a model inheritance to store the properties that the user is responsible for and that are available.
    
    View Inheritance:
    - Add a new tab to the user form view to display the properties from the property_ids field.
    Clement-Cardot committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    d83235a View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. [ADD] estate_account: Chapter 14-link module estate and accounting

    Override the sold action of the estate module to create an invoice
    when a property is sold.
    The invoice is a 6% down payement with a 100€ admin fees.
    Clement-Cardot committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    22f74cc View commit details
    Browse the repository at this point in the history
  2. [IMP] estate: Chapter 15-Add a Kanban view to the properties

    New Kanban view of the properties grouped by property types.
    showing the expected price and the property tags.
    If the state is offer_received : show the best_price
    If the state is offer_accepted : show the selling_price
    Clement-Cardot committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    8974bf8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aebb728 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. [IMP] awesome_owl: JS Framwork Chapter 1

    Play around with hooks, components, states, callbacks, props...
    
    Create a small todo list feature with todo list and todo item components.
    -> Add, remove & toogle items
    Clement-Cardot committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    7f634d0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    729b9b9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3741739 View commit details
    Browse the repository at this point in the history
  4. [IMP] awesome_dashboard: Part 1 to 5 of the tutorial

    Pratice with Layout, Buttons -> Actions, Dashboard & Dashboard Items, Display Statistics from back end, store data in cache with memoize
    Clement-Cardot committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    ef3d9de View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2024

  1. Configuration menu
    Copy the full SHA
    c391011 View commit details
    Browse the repository at this point in the history
  2. [FIX] awesome_owl: Apply PR review

    Co-authored-by: Killian Frappart <kfr@odoo.com>
    Clement-Cardot and kfr-odoo committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    486a76b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9e20b36 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4eba9b9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2957dac View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2024

  1. Configuration menu
    Copy the full SHA
    e34e72e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    701d7db View commit details
    Browse the repository at this point in the history