Odoo Help


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.


Avoid State's change if record is in edit mode (Odoo 8.0)

Fernando La Chica Mera
on 4/7/16, 8:26 AM 426 views

Hi, if I have a record in edit mode, Odoo allows me to use the buttons to the state change proposed by the wrokflow's. Is there any way to prevent use these buttons from the status bar if the record is in edit mode?



| 6 5 7
Tbilisi, Georgia
On 4/7/16, 11:47 AM

there is css class "oe_read_only", It's considered to be kind of opposite of "oe_edit_only" class, see following thread. you can add this class to the button, that you want to disable during the edit process, it'll simply hide the button, so user can't click on it while editing a document. This way, your requirement will be fulfilled. 

Thank you for your answers but I think it does not serve me. What I'm trying to do is just something in reverse. I want to get that you can not change state associated with wroflows (top status bar) any record that is in "edit mode". However, his contribution certainly have the opportunity to use.

Fernando La Chica Mera
on 4/7/16, 11:55 AM

Exactly, "oe_read_only" will hide element it's used for, while user is editing a document, and if user do not has any button that can change the state, how you think state will be changed then? User will have to save the document first in order to get back hidden buttons, and then click on some button in order to change state

on 4/8/16, 3:57 AM

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)


Asked: 4/7/16, 8:26 AM
Seen: 426 times
Last updated: 4/7/16, 11:47 AM