تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3972 أدوات العرض

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
أكتوبر 24
1109
0
مارس 15
4674
2
مارس 15
10775
0
أبريل 24
1598
2
ديسمبر 15
4516