odoo/odoo#194947

Created by fw-bot
Merged at 26b840bcbe81e98156a1e08ce10a1879ad1ce31e

Statuses:

label
odoo-dev:18.0-16.0-fix-service-to-purchase-multi-company-xC5v-fw
head
58196233fec4eda9adf2eec5b32c628bbd32eceb
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: #194432
Forward-Port-Of: #177659