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

Hello there,

Each time a new picking is created, a new line is created in stock.pack.operation.

How to avoid this stock.pack.operation line? What is his utility?

Thanks for your idea.

อวตาร
ละทิ้ง
ผู้เขียน

Little up here... somebody would have an idea?

คำตอบที่ดีที่สุด

Hi,

Firstly when you confirm sale order it will create Draft Delivery Order and its line. Now, line object would be stock.move, after that when you perform any kind of operation on that DO, you will see object changed. It is now stock.pack.operation.


It is coming from this method:

do_prepare_partial() of class stock_picking

you will find this line.: pack_operation_obj.create(cr, uid, vals, context=context) 

It is creating pack operation from move, and where pack_operation_obj = self.pool.get('stock.pack.operation')

Now if you want to stop this You have to customise the code, override method do_prapare_partial or try by commenting line where pack operation is created. 

Thanks,

Chandni




อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
พ.ย. 23
2270
0
พ.ค. 19
3599
1
พ.ค. 18
8476
1
พ.ค. 15
5704
1
มี.ค. 15
4323