Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
1460 Widoki

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!

Awatar
Odrzuć

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

Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.   

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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. 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
paź 22
2363
2
maj 25
2133
3
gru 24
6177
1
lip 24
2991
1
cze 24
2088