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.

0

Edit and Create buttons by state

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

Hi,

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.

Thanks,
Pau

1

deep

--deep--
1617
| 5 4 7
Bengaluru, India
--deep--

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

deep
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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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