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

[15.0][FIX] delivery_multi_destination: Several fixes + revert #653

Merged

Conversation

pedrobaeza
Copy link
Member

Forward-port of #652

This PR is bringing parity with 13.0 and 14.0 versions and handling correctly the multi destination scenarios.

There's in this branch a patch that fixes a missing gap with no carrier, but mixing in the same one 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.

@Tecnativa

@pedrobaeza pedrobaeza added this to the 15.0 milestone May 30, 2023
@pedrobaeza pedrobaeza changed the title [14.0][FIX] delivery_multi_destination: Several fixes + revert [15.0][FIX] delivery_multi_destination: Several fixes + revert May 30, 2023
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.
…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
… 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 pedrobaeza force-pushed the 15.0-fix-delivery_multi_destination-rule_price branch from d4d35ee to f7430fa Compare May 30, 2023 22:59
@pedrobaeza
Copy link
Member Author

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 15.0-ocabot-merge-pr-653-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 7613f42 into OCA:15.0 Jun 1, 2023
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 8ffbe98. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants