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

[MIG] stock_location_zone: Migration to 14.0 #1077

Merged
merged 17 commits into from Sep 14, 2021

Commits on Feb 10, 2021

  1. [ADD] stock_location_zone

    jbaudoux authored and phuctranfxvn committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    8144f43 View commit details
    Browse the repository at this point in the history
  2. Add corrections to stock_location_zone

    * Allow copy of stock locations (was blocked by constraint on unique name)
    * Correct loop in _compute_name returning too early if a record had no
    parent with a 'location_name_format'
    * Rename field pick_type_id to picking_type_id for coherency
    * Add missing _description on stock.picking.zone
    * Correct location_name_format format when the record is a NewId
    guewen authored and phuctranfxvn committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    bc2babe View commit details
    Browse the repository at this point in the history
  3. Set Alpha development status

    * Add copyright header
    * Add myself as contributor of stock_location_zone
    * Fix lint
    guewen authored and phuctranfxvn committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    df90f22 View commit details
    Browse the repository at this point in the history
  4. Rework stock_location_zone

    grindtildeath authored and phuctranfxvn committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    ef77322 View commit details
    Browse the repository at this point in the history
  5. Remove unique constraint on location's name

    It prevents other addons to work properly such as the vertical lift.
    We remove the constraint for now, maybe to be re-introduced later in a
    more permissive way.
    guewen authored and phuctranfxvn committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    21f2f94 View commit details
    Browse the repository at this point in the history
  6. Improve performance

    * Compute the 'zone' fields in the same method
    * Remove the dependency on 'zone_location_id', which seems to take
      a lot of time if not an infinite loop
    guewen authored and phuctranfxvn committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    a29a178 View commit details
    Browse the repository at this point in the history
  7. Add area location relation

    So we can use it in group-by and filters. Note that we can have several
    levels of areas... only the top-level will be used.
    
    This commit fixes the computed field dependencies:
    _compute_location_kind should have a dependency on both it's parent's
    location_kind and on its child_ids to know if we are in a bin. This
    can't work without triggering an infinite loop. The trick used here is
    to split the computation of 'zone_location_id + area_location_id' in one
    computed method, and move the computation of the kind in a different
    method with triggers an the current record's zone_location +
    area_location_id, but not on the parent.
    
    Plus the zone_location_id and area_location_id do not depend anymore on
    the parent's kind, which is the reason for the infinite loop.
    guewen authored and phuctranfxvn committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    38b60fb View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    acc6eec View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    855a2ae View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ced75a2 View commit details
    Browse the repository at this point in the history
  11. run pre-commit with new prettiers

    guewen authored and phuctranfxvn committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    2f6da0d View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    236f078 View commit details
    Browse the repository at this point in the history
  13. [UPD] README.rst

    OCA-git-bot authored and phuctranfxvn committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    5476a43 View commit details
    Browse the repository at this point in the history
  14. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: stock-logistics-warehouse-13.0/stock-logistics-warehouse-13.0-stock_location_zone
    Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_location_zone/
    oca-transbot authored and phuctranfxvn committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    40391bd View commit details
    Browse the repository at this point in the history
  15. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: stock-logistics-warehouse-13.0/stock-logistics-warehouse-13.0-stock_location_zone
    Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_location_zone/
    oca-transbot authored and phuctranfxvn committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    260dc6c View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    ac8cc4e View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    e371b70 View commit details
    Browse the repository at this point in the history