Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5580 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

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

Related Posts Odpovědi Zobrazení Aktivita
0
zář 15
4305
0
čvc 15
3336
0
bře 15
3214
2
dub 25
1084
3
dub 23
2568