Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5623 Vues

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
Ignorer
Meilleure réponse

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

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

Publications associées Réponses Vues Activité
0
sept. 15
4347
0
juil. 15
3364
0
mars 15
3251
2
avr. 25
1118
3
avr. 23
2594