Odoo Help


This community 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.


Why my custom copy button functionality is not working?

on 4/13/15, 7:51 AM 382 views

def revision_new(self, cr, uid, ids, default={}, context=None):

if not default:

default = {}

default.update({'name': "Revised"+self.pool.get('sale.order').browse(cr, uid, ids[0], context=context).name,


return self.pool.get('sale.order').copy(cr, uid, id, default, context=context)

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 4/13/15, 7:51 AM
Seen: 382 times
Last updated: 4/13/15, 8:24 AM