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

Hi friends,

Have to duplicate sale quotation record of same even after confirms the sale order.How to achieve it when confim sale button clicks.

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

You could call to the copy method wich will create a copy of the current record and return you the new id. The copy method also could receive a dict of values for the new record if you wanna change something for the new record values like:

move_id = self.copy(cr, uid, move.id, {'product_uos_qty': product_uos_qty, 'product_qty': r[0], 'location_id': r[1]})

or

temp_id = self.copy(cr, uid, this.id, None, context=context)
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ต.ค. 24
1284
0
มี.ค. 15
4828
2
มี.ค. 15
10998
0
เม.ย. 24
1819
2
ธ.ค. 15
4707