odoo/odoo#194432

Created by fw-bot
Merged at 9b854120ad68ab011bd9bfafb47ac4ad4cb5ca87

Statuses:

label
odoo-dev:saas-17.2-16.0-fix-service-to-purchase-multi-company-9pma-fw
head
a25f25e3d12246e3146f9c4c8112ebfaf13bd1e8
merged
9 months ago by Logistics, Tiffany Chang (tic)
odoo/odoo
16.0 #177659
17.0 #192561
saas-17.2 #194432
saas-17.4 #194934
18.0 #194947
saas-18.1 #195088
saas-18.2
saas-18.3
saas-18.4
19.0
master #195256

[FW][FIX] sale_purchase: read service_to_purchase from the order's company

Steps to reproduce:

  1. Create two companies: Company A and Company B
  2. Create a service product
  3. Configure the product to be purchased on Company A and not on Company B
  4. Create a sales order on Company B, while logged in Company A
  5. Confirm the order

Expected result:

The service PO is created on Company B, even though it was configured not to.


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #192561
Forward-Port-Of: #177659