Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4002 Переглядів

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
1151
0
бер. 15
4705
2
бер. 15
10830
0
квіт. 24
1667
2
груд. 15
4547