Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
5638 Prikazi

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
Opusti
Best Answer

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
Opusti
Avtor

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

Related Posts Odgovori Prikazi Aktivnost
0
sep. 15
4352
0
jul. 15
3370
0
mar. 15
3258
2
apr. 25
1137
3
apr. 23
2605