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

[14.0][FIX] delivery_auto_refresh #849

Open
wants to merge 16 commits into
base: 14.0
Choose a base branch
from

Commits on Jul 8, 2024

  1. [FIX] delivery_auto_refresh: Don't fail on fixed rate carriers

    Steps to reproduce:
    
    - Create a delivery method (delivery.carrier) with a fixed rate.
    - Enable the system parameter "delivery_auto_refresh.refresh_after_picking".
    - Create a sales order with such delivery method and storable products.
    - Confirm the sales order.
    - Validate the picking.
    
    Result: It can't be validated with the message "There is no matching
    delivery rule.".
    
    Explanation: Previous code computes the shipping values and call
    directly to `_get_price_from_picking`, which uses rules and doesn't
    take into account the rest of possibilities (integration or fixed
    price).
    
    We keep such computation for carriers based on rules, as they are not
    properly updated, but added the possibility of writing back the price
    for other carriers with fixed price or integrations, using the
    `carrier_price` field that contains it.
    
    TT43533
    pedrobaeza authored and toita86 committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    eb5213e View commit details
    Browse the repository at this point in the history
  2. delivery_auto_refresh: docstring

    Don't modify standard method docstring
    jbaudoux authored and toita86 committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    94bcaaa View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    597bd8d View commit details
    Browse the repository at this point in the history
  4. delivery_auto_refresh: fix write & discount

    Limit change of write to calling the auto refresh feature
    Prevent to call auto refresh multiple times
    
    Don't pass discount variable in context
    jbaudoux authored and toita86 committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    ad4c614 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d968a37 View commit details
    Browse the repository at this point in the history
  6. delivery_auto_refresh: refresh the minimum

    Create or delete line only if necessary
    Update existing line if necessary
    jbaudoux authored and toita86 committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    095265d View commit details
    Browse the repository at this point in the history
  7. delivery_auto_refresh: set carrier

    jbaudoux authored and toita86 committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    e1f60bb View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ea43bd1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6ac4ea3 View commit details
    Browse the repository at this point in the history
  10. delivery_auto_refresh: add tests

    jbaudoux authored and toita86 committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    2414160 View commit details
    Browse the repository at this point in the history
  11. delivery-carrier: postpone new dependency to 17.0

    This commit can be reverted in the migration to 17.0
    jbaudoux authored and toita86 committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    bf2f48f View commit details
    Browse the repository at this point in the history
  12. delivery_auto_refresh: multi-company

    Move config to company level
    Prefix config settings by sale
    jbaudoux authored and toita86 committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    16787fc View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0657929 View commit details
    Browse the repository at this point in the history
  14. delivery_auto_refresh: method copied from 16.0

    Odoo SA authored and toita86 committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    4785c77 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    87d34ab View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. Configuration menu
    Copy the full SHA
    ba54be3 View commit details
    Browse the repository at this point in the history