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
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
5311
Widoki
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!
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
0
wrz 15
|
4156 | ||
|
0
lip 15
|
3178 | ||
|
0
mar 15
|
3080 | ||
|
2
kwi 25
|
814 | ||
|
3
kwi 23
|
2391 |