Skip to Content
Menu
This question has been flagged
3 Replies
1274 Views

Hey Folks,


I'm trying to disable the default behavior in Odoo 18 where line items on a purchase order are automatically grouped by product. For my use case, I need purchase order lines to be discrete regardless of if they are for the same product. I've been trying to find where this grouping is happening with no luck. The specific context that I'm working through now is for products that have the MTO + Buy route. When the SO is confirmed, the MO gets generated using products on the BOM. Those products have the MTO + Buy route so they are automatically added to a PO. If for some reason the same product(s) exists on the PO already, Odoo groups the lines and sums the qty. I do not want this to happen.


Any help would be much appreciated - Thanks!

Avatar
Discard

You want separate Purchase Orders or separate lines on the same PO?

Best Answer

Check out this OCA module to see if it solves it for you.  
https://github.com/OCA/purchase-workflow/tree/18.0/procurement_purchase_no_grouping

Here is a copy/paste from the github page about the features:

Go to each product category, and select one of these values in the field "Procured purchase grouping":

  • Standard grouping: With this option, procurements will generate purchase orders as always, grouping lines and orders when possible.
  • No line grouping: With this value, if there are any open purchase order for the same supplier, it will be reused, but lines won't be merged.
  • No order grouping: This option will prevent any kind of grouping.
  • <empty>: If you select nothing, default value set up in System settings will be applied.
  • Product category grouping: This option groups products in the same purchase order that belongs to the same product category.

System default behaviour can be set up in System settings / Purchase / Procurement Purchase Grouping

Avatar
Discard
Best Answer

Have you found a solution? 

I am also looking for something similar.  

I have a workaround.  I have added a variant ( name ) free text no index. On the SO I can add a description and this will ungroup the lines.   

Avatar
Discard
Author Best Answer

I want different lines on the same PO. Even if they are the same product. So basically if another like of the same product gets added later to the same PO, I do not want Odoo to group them into a single line. 

Avatar
Discard
Related Posts Replies Views Activity
1
Oct 22
2198
2
May 25
1845
3
Dec 24
5705
1
Jul 24
2651
1
Jun 24
1871