Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
5572 Vistas

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?

Avatar
Descartar
Mejor respuesta

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()
Avatar
Descartar
Autor

Wow! You really saved me! Thank you so much Paresh!

Publicaciones relacionadas Respuestas Vistas Actividad
0
sept 15
4303
0
jul 15
3333
0
mar 15
3210
2
abr 25
1082
3
abr 23
2568