Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
321 Vistas

Hi,

I'm using Odoo 18. I selected the Replenish on Order (MTO) and Buy routes for a product. When I create a sales order, I see a Purchase Order button, and it creates a purchase order as expected.

But I want to buy the products from multiple vendors. So I duplicate the purchase order, change the vendor, quantity, and set the Sales Order number in the Source Document.

However, when I receive the products, the duplicate purchase order is not linked to the sales order. Is there any configuration needed to make this work? Or is this not possible in standard Odoo 18?

Thanks for your help!

Avatar
Descartar
Mejor respuesta

Hi,

Yes, purchasing products from multiple vendors through a single sales order is possible in standard Odoo 18.

To achieve this, you need to properly configure each product with its corresponding vendors, quantities, and prices. 


1. Configure vendor, quantities, price, and routes in the product 


Example:

Product A

Routes are set as MTO and BUY in the inventory tab of the product form view.


Product B


Assign a different vendor for product B

Set Routes



2. Create a sales order


When you confirm the sales order, two purchase orders are automatically created for the different vendors assigned to the products.


Purchase Order

Hope it helps

Avatar
Descartar
Autor

Suppose the product is A, and I want to sell 1,000 units. When I create a sales order, a purchase order is generated for this product. However, the vendor does not have enough stock. In this case, I want to buy 500 units from Vendor A and 500 units from Vendor B. Is this possible?

Mejor respuesta

1. Use MTO with Buy Route

  • Configure product with:
    • Route: Make to Order + Buy
    • Vendor: Assigned properly
  • Odoo will automatically create separate POs per vendor when SO is confirmed.

2. Link POs to SO Manually or via Custom Module

  • Create a custom field (sale_order_id) in purchase.order.
  • Override PO creation logic or use Studio to manually tag them.
  • Add a smart button on SO to see related POs.

3. Reporting & Traceability

  • Use Procurement Group (created per SO).
  • All related POs will share the same procurement_group_id as the originating SO.
  • You can trace these using filters or custom reports.

Avatar
Descartar
Autor

So, there is no other way to link multiple Purchase Orders to one Sales Order without using customization or Studio?