Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4150 Zobrazení

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.

Avatar
Zrušit
Nejlepší odpověď

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)
Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
říj 24
1313
0
bře 15
4866
2
bře 15
11039
0
dub 24
1864
2
pro 15
4740