OCA / operating-unit

Manage Operating Units in Odoo
GNU Affero General Public License v3.0
72 stars 237 forks source link

[15.0][FIX] purchase_request_operating_unit: operating unit when purchase request is created based on procurements #597

Closed AaronHForgeFlow closed 1 year ago

AaronHForgeFlow commented 1 year ago

Enable the route MTO or dropship in a product. Then try to create a sales order for that product in another operating unit than the main operating unit. This constraint will raise: https://github.com/OCA/operating-unit/blob/15.0/purchase_request_operating_unit/model/purchase_request.py#L56, because it will try to create the purcahse request for the main operating unit, instead the operating unit of the procurement, which is the operating unit of the sales order.

cc @ForgeFlow @BT-pcavero

AaronHForgeFlow commented 1 year ago

/ocabot merge patch

OCA-git-bot commented 1 year ago

On my way to merge this fine PR! Prepared branch 15.0-ocabot-merge-pr-597-by-AaronHForgeFlow-bump-patch, awaiting test results.

OCA-git-bot commented 1 year 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 1 year ago

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