Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
5593 Представления

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
4315
0
июл. 15
3338
0
мар. 15
3235
2
апр. 25
1102
3
апр. 23
2571