Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
6104 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
0
Sep 15
4686
0
Jul 15
3606
0
Mar 15
3601
2
Apr 25
1600
3
Apr 23
3040