Odoo Help


How to create a sale quotation copy after confim sale button?

on 11/23/15, 12:26 AM 744 views

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.

Axel Mendoza
On 12/5/15, 3:09 AM

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]})


temp_id = self.copy(cr, uid, this.id, None, context=context)

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 11/23/15, 12:26 AM
Seen: 744 times
Last updated: 12/5/15, 3:09 AM