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] delivery_multi_destination: Migration to 16.0 #631

Closed

Commits on Dec 19, 2023

  1. [ADD] delivery_multi_destination

    ==================================================
    Multiple destinations for the same delivery method
    ==================================================
    
    Module `delivery` in version 8 allows to set different price rules depending
    on the destination. This is what is called a delivery grid.
    
    In version 9, for simplifying delivery methods, Odoo has plained the structure,
    lowering destinations at delivery method level, and removing delivery grid
    model.
    
    This is not usable when you have different prices according the destination
    of your delivery.
    
    This module restores the same concept, reusing the same model for nesting
    several "children" delivery methods, one per possible destination. It has been
    designed to reuse all possible extensions to the base delivery, without the
    need to create a glue module for having multiple destinations.
    
    This module also handles if you're migrating from version 8 and you had
    `delivery` module installed, to keep the delivery grids.
    
    Installation
    ============
    
    If you installed the module on a version 8 migrated database, some operations
    will be done for recovering delivery grids. If so, you need to have
    **openupgradelib** library installed.
    
    Configuration
    =============
    
    To configure delivery methods with multiple destinations:
    
    * Go to Inventory > Configuration > Delivery > Delivery Methods
    * Create or edit an existing record.
    * Select "Destination type" = "Multiple destinations".
    * Introduce a line for each destination in the new tab "Destinations"
    * Lines have priority, so you have to put first the lines with more restricted
      destinations.
    
    Usage
    =====
    
    * When using the delivery method in a Sales order, delivery address will be
      used for computing the delivery price according introduced destinations.
    pedrobaeza authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    d710e68 View commit details
    Browse the repository at this point in the history
  2. [10.0][ADD] delivery_multi_destination

    OCA Transbot updated translations from Transifex
    luismontalba authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    fc82b88 View commit details
    Browse the repository at this point in the history
  3. [FIX+IMP] delivery_multi_destination: Don't show children + demo (OCA…

    …#148)
    
    * Don't show children carriers on many2one selections
    * Don't search by default children carriers
    * Add demo data
    
    OCA Transbot updated translations from Transifex
    pedrobaeza authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    87ef61d View commit details
    Browse the repository at this point in the history
  4. [MIG] delivery_multi_destination: Migration to 11.0

    * Standard procedure
    * README by fragments
    * Code changed to follow v11 logic
    * Tests adapted and expanded
    pedrobaeza authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    b269ada View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8c23430 View commit details
    Browse the repository at this point in the history
  6. [FIX] delivery_multi_destination: Fix singleton error

    Incorrect use of variables
    pedrobaeza authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    bbb2183 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9ea1ce6 View commit details
    Browse the repository at this point in the history
  8. Translated using Weblate (Chinese (Simplified))

    Currently translated at 100.0% (16 of 16 strings)
    
    Translation: delivery-carrier-12.0/delivery-carrier-12.0-delivery_multi_destination
    Translate-URL: https://translation.odoo-community.org/projects/delivery-carrier-12-0/delivery-carrier-12-0-delivery_multi_destination/zh_CN/
    liweijie0812 authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    6aa8525 View commit details
    Browse the repository at this point in the history
  9. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 100.0% (16 of 16 strings)
    
    Translation: delivery-carrier-12.0/delivery-carrier-12.0-delivery_multi_destination
    Translate-URL: https://translation.odoo-community.org/projects/delivery-carrier-12-0/delivery-carrier-12-0-delivery_multi_destination/pt_BR/
    Rodrigo Macedo authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    cb76501 View commit details
    Browse the repository at this point in the history
  10. Translated using Weblate (German)

    Currently translated at 56.2% (9 of 16 strings)
    
    Translation: delivery-carrier-12.0/delivery-carrier-12.0-delivery_multi_destination
    Translate-URL: https://translation.odoo-community.org/projects/delivery-carrier-12-0/delivery-carrier-12-0-delivery_multi_destination/de/
    marylla authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    08f59b6 View commit details
    Browse the repository at this point in the history
  11. [IMP] delivery_multi_destination: Improve view for hiding undesired e…

    …lements
    
    On a multi-destination carrier, that fields shouldn't be shown
    pedrobaeza authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    75e2fae View commit details
    Browse the repository at this point in the history
  12. [FIX] delivery_multi_destination: available carriers must return the …

    …main one
    
    When testing available carriers, we must return the main one if one of the
    children matches, not returning the children itself.
    pedrobaeza authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    672a67c View commit details
    Browse the repository at this point in the history
  13. [FIX] delivery_multi_destination: Make delivery shipping properly wit…

    …h multi
    
    Handle the step of sending the shipping (triggered on picking validation) for
    multi destination delivery. This means to manually check for fixing prices (as
    the implementation doesn't check this part and always take the main carrier price,
    not the subcarrier one.
    
    Test for this use case done, although the rest of the cases are not covered by
    tests yet.
    pedrobaeza authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    c76425b View commit details
    Browse the repository at this point in the history
  14. Translated using Weblate (Slovenian)

    Currently translated at 5.9% (1 of 17 strings)
    
    Translation: delivery-carrier-12.0/delivery-carrier-12.0-delivery_multi_destination
    Translate-URL: https://translation.odoo-community.org/projects/delivery-carrier-12-0/delivery-carrier-12-0-delivery_multi_destination/sl/
    sysadminmatmoz authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    4412d4f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    84b6ca3 View commit details
    Browse the repository at this point in the history
  16. [MIG] delivery_multi_destination: Migration to v13.0

    [UPD] Update delivery_multi_destination.pot
    
    [UPD] README.rst
    CarlosRoca13 authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    bca34d3 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    f7acdb3 View commit details
    Browse the repository at this point in the history
  18. [MIG] delivery_multi_destination: Migration to 14.0

    [UPD] Update delivery_multi_destination.pot
    
    [UPD] README.rst
    jado95 authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    9b8a9a7 View commit details
    Browse the repository at this point in the history
  19. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 100.0% (17 of 17 strings)
    
    Translation: delivery-carrier-14.0/delivery-carrier-14.0-delivery_multi_destination
    Translate-URL: https://translation.odoo-community.org/projects/delivery-carrier-14-0/delivery-carrier-14-0-delivery_multi_destination/pt_BR/
    Rodrigo Macedo authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    21c1b3d View commit details
    Browse the repository at this point in the history
  20. [FIX] delivery_multi_destination: consider no carrier scenario

    When there is no carrier, destination_type is false and can cause error.
    In the case, `one` destination_type should be used.
    
    delivery_multi_destination 14.0.1.0.1
    hailangvn authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    d0afdba View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    1b2e671 View commit details
    Browse the repository at this point in the history
  22. Translated using Weblate (Spanish)

    Currently translated at 47.0% (8 of 17 strings)
    
    Translation: delivery-carrier-14.0/delivery-carrier-14.0-delivery_multi_destination
    Translate-URL: https://translation.odoo-community.org/projects/delivery-carrier-14-0/delivery-carrier-14-0-delivery_multi_destination/es/
    pedrobaeza authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    2ab420f View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    b547b5a View commit details
    Browse the repository at this point in the history
  24. [UPD] Update delivery_multi_destination.pot

    oca-ci authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    a277fc5 View commit details
    Browse the repository at this point in the history
  25. [UPD] README.rst

    OCA-git-bot authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    98b49c3 View commit details
    Browse the repository at this point in the history
  26. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: delivery-carrier-15.0/delivery-carrier-15.0-delivery_multi_destination
    Translate-URL: https://translation.odoo-community.org/projects/delivery-carrier-15-0/delivery-carrier-15-0-delivery_multi_destination/
    weblate authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    fc53270 View commit details
    Browse the repository at this point in the history
  27. [FIX] delivery_multi_destination: Avoid error in creation of a multip…

    …le carrier with UX
    
    TT42837
    victoralmau authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    b6bd73f View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    17e7fab View commit details
    Browse the repository at this point in the history
  29. Revert "[FIX] delivery_multi_destination: consider no carrier scenario"

    This reverts commit 0e28544.
    
    This ismixing in the same commit other things for a non related problem that has
    been fixed in a better way in the previous version, so we are reverting it and
    applying the rest of the patches.
    pedrobaeza authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    5917b9f View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    0600b4f View commit details
    Browse the repository at this point in the history
  31. [FIX] delivery_multi_destination: Get properly subcarrier price on ba…

    …sed on rules
    
    If the destination carrier line is based on rules, the price is not
    correctly fetched, as it's hardcoded to call `_get_price_available`
    using picking's carrier, no matter the recordset from which you call it
    (the self argument).
    
    Thus, the only solution to get the proper value is to temporarily
    replace the carrier on the picking on the calls chain, to restore it
    before returning.
    
    TT42862
    pedrobaeza authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    85d42e1 View commit details
    Browse the repository at this point in the history
  32. [FIX] delivery_multi_destination: Filter subdestination carriers from…

    … other companies
    
    In the context where `carrier.child_ids` is being examined, all
    existing subdestinations, no matter the company they have, are shown as
    being in a sudo environment, so we need to filter them out those from
    other companies.
    
    TT43596
    pedrobaeza authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    7d751d7 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    b04b4e3 View commit details
    Browse the repository at this point in the history
  34. Translated using Weblate (Spanish)

    Currently translated at 100.0% (16 of 16 strings)
    
    Translation: delivery-carrier-15.0/delivery-carrier-15.0-delivery_multi_destination
    Translate-URL: https://translation.odoo-community.org/projects/delivery-carrier-15-0/delivery-carrier-15-0-delivery_multi_destination/es/
    Ivorra78 authored and GabbasovDinar committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    77f82b5 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    bdb4d3c View commit details
    Browse the repository at this point in the history