Odoo Help


Edit and Create buttons by state

Pau Ubach
on 10/21/14, 2:12 AM 684 views


How can I display or not Edit and Create buttons in a form depending on state?

I know how to do it on a normal button, but not for these.



Techno-Functional Associate with 6+ years of experience in Odoo (formerly known as OpenERP).

On 10/21/14, 7:58 AM

Create / Save / Edit / Delete are ORM methods incorporated with Framework, hence those buttons are loaded along with the Framework/XML view, which will be loaded first ... and later the data is fetched from database..

hence, once the view is loaded, one cannot change it, based on single record's data...

Very clear explanation. Thanks. 2 beers. :p

Pau Ubach
on 10/21/14, 9:02 PM

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


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)


Asked: 10/21/14, 2:12 AM
Seen: 684 times
Last updated: 3/16/15, 8:10 AM