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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
5573
查看
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
9月 15
|
4303 | ||
|
0
7月 15
|
3334 | ||
|
0
3月 15
|
3210 | ||
|
2
4月 25
|
1082 | ||
|
3
4月 23
|
2568 |