Odoo Help

0

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

By
vadivel
on 11/23/15, 12:26 AM 707 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.

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

or

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.

Register

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)

Stats

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