İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
5640 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Eyl 15
4352
0
Tem 15
3370
0
Mar 15
3259
2
Nis 25
1138
3
Nis 23
2610