OCA / multi-company

GNU Affero General Public License v3.0
101 stars 281 forks source link

[14.0][FIX] Picking sync should also work for dropshipping #637

Closed thomaspaulb closed 3 months ago

thomaspaulb commented 3 months ago

In case of dropshipping, picking.partner_id is the end customer (picking.sale_id.partner_shipping_id) so this partner's ref_company_ids will be empty and the picking will not sync. Use sale_id.partner_id instead, which is always the intercompany partner.

OCA-git-bot commented 3 months ago

Hi @aleuffre, @renda-dev, some modules you are maintaining are being modified, check this out!

Deriman-Alonso commented 3 months ago

Code review LGTM 👍.

aleuffre commented 3 months ago

/ocabot merge patch

OCA-git-bot commented 3 months ago

Hey, thanks for contributing! Proceeding to merge this for you. Prepared branch 14.0-ocabot-merge-pr-637-by-aleuffre-bump-patch, awaiting test results.

OCA-git-bot commented 3 months ago

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

OCA-git-bot commented 3 months ago

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