Odoo Help

0

Why my custom copy button functionality is not working?

By
Odoo
on 4/13/15, 7:51 AM 442 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)

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

1 follower(s)

Stats

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