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

Hello, I'm using odoo studio to create 4 buttons and 5 stage.

if the buttons clicked, it will change the stage but i want the button is hide is on some stage.


Button 1 : i want hide in stage 1 , stage 3 , stage 4 and stage 5

i'm using this attribute

button string="Submit" name="189" type="action" invisible="x_studio_stage_id == 1 and x_studio_stage_id == 3 and x_studio_stage_id == 4 and x_studio_stage_id == 5"

after save that is not working. The button will show in every stage.


but if i change this :

button string="Submit" name="189" type="action" invisible="x_studio_stage_id == 1"

it is working and the button hide in stage 1.


Please help if any mistake from my code or rules.

아바타
취소
베스트 답변

Hello yuda azis,

you have applied invisible condition with "AND". it should be logical "OR" operation

button string="Submit" name="189" type="action" invisible="x_studio_stage_id == 1 or x_studio_stage_id == 3 or x_studio_stage_id == 4 or x_studio_stage_id == 5"

you can check condition with "IN" operator as well

button string="Submit" name="189" type="action" invisible="x_studio_stage_id in [1,3,4,5]"

Thanks & Regards,


CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209

Email: info@candidroot.com

아바타
취소
작성자 베스트 답변

Hello ...

Thank you very much, it's work.


Sorry i can make your answer best answer or reply your answer. becuase any notif you KARMA is not enough

아바타
취소
관련 게시물 답글 화면 활동
0
6월 24
841
0
6월 24
884
1
3월 15
8963
0
7월 24
741
0
6월 24
713