Hi all, I try to overwrite originals buttons "save" and "save/create" which are in wizard opened in a one2many line, this for version openerp 6.1 . It is possible, and if yes, how to do that.
Thanks for your contribution.
I don't have any idea about web but I can give you another solution that you can override
create method will be called when you will create a record and
write will be called when you will update the record.
def create(cr, uid, vals, context=None): #Todo code super(your_class_name, self).create(cr, uid, vals, context=context) def write(cr, uid, ids, vals, context=None): #Todo code super(your_class_name, self).write(cr, uid, ids, vals, context=context)
Hope it will work for you.
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
|Asked: 3/28/13, 9:47 AM|
|Seen: 7420 times|
|Last updated: 11/2/16, 3:00 AM|