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

I would like to have an automation rule that increases the quantity to produce for every manufacturing order that's created by 10% . 

Could someone help with the compute code to multiply the quantity to product by 1.1 ? This is for V18.

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

Create an automation rules for manufacturing orders, with "on save" trigger, and select the "id" on "When updating"  field, this will trigger only when the MO is being created

edit the product_qty with this code

record['product_qty'] = round(product_qty * 1.1)


assuming that the item is only whole, otherwise remove the round function

note this this will have an issue if you implement an auto-replenishment



อวตาร
ละทิ้ง