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
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
4074
Views
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!
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Sep 15
|
3494 | ||
|
0
Jul 15
|
2523 | ||
|
0
Mar 15
|
2439 | ||
|
3
Apr 23
|
1393 | ||
Reordering Rule Calculus
Solved
|
|
3
May 24
|
4797 |