Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5600 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
0
sep. 15
4338
0
jul. 15
3348
0
mrt. 15
3241
2
apr. 25
1110
3
apr. 23
2582