콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5228 화면

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?

아바타
취소
베스트 답변

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.

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

관련 게시물 답글 화면 활동
5
4월 16
13971
0
8월 15
4104
0
3월 15
3845
1
8월 25
423
2
7월 25
601