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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Бухгалтерия
- Склад
- PoS
- Проекты
- MRP
Этот вопрос был отмечен
1
Ответить
6474
Представления
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!
Не оставайтесь в стороне – присоединяйтесь к обсуждению!
Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!
Регистрация| Похожие посты | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
|
0
сент. 15
|
4996 | ||
|
|
0
июл. 15
|
3820 | ||
|
|
0
мар. 15
|
3845 | ||
|
|
2
апр. 25
|
1875 | ||
|
|
3
апр. 23
|
3278 |