Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
5660 Ansichten

I have reordering rules on automatic for raw materials. But i don't need reordering rules for products for sale. Is it possible to make an automated action to remove reordering rules when the product category is updated to Product?

Avatar
Verwerfen
Beste Antwort

You can do this by defining an automated action like so. Replace "Test" with the actual name of your product category ("Product" in your example above)


Python code:

for rule in env['stock.warehouse.orderpoint'].search([('product_id', 'in', record.product_variant_ids.ids)]):
rule.unlink()
Avatar
Verwerfen
Autor

Wow! You really saved me! Thank you so much Paresh!

Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Sept. 15
4360
0
Juli 15
3375
0
März 15
3266
2
Apr. 25
1152
3
Apr. 23
2633