Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5666 มุมมอง

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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!

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ย. 15
4365
0
ก.ค. 15
3378
0
มี.ค. 15
3266
2
เม.ย. 25
1157
3
เม.ย. 23
2643