Odoo Help

Welcome!

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.

1

Javascript click disabled in View mode

By
Sebastien Dante
on 12/31/15, 6:34 AM 300 views

Hi Guys,

I created a new page in the partner form with a button to change the type of an input field. I want it to work in edit and view mode.  The issue is that when I use it in Edit mode it is working fine but when I try to push it in View mode the Javascript is disabled. The edit button is bounced instead of executing my Javascript. I have implement my button extending a instance.web.form.AbstractField as a widget. How can I make my button works in view mode.

Thanks in advance


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)

Stats

Asked: 12/31/15, 6:34 AM
Seen: 300 times
Last updated: 2/19/16, 4:20 AM