Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
5014 Переглядів

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?

Аватар
Відмінити
Найкраща відповідь

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()
Аватар
Відмінити
Автор

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

Related Posts Відповіді Переглядів Дія
0
вер. 15
4048
0
лип. 15
3067
0
бер. 15
2968
2
квіт. 25
583
3
квіт. 23
2216