跳至内容
菜单
此问题已终结
1 回复
3934 查看

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)
形象
丢弃
相关帖文 回复 查看 活动
0
10月 24
1080
0
3月 15
4622
2
3月 15
10730
0
4月 24
1526
2
12月 15
4467