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

I tried a multiple solutions i found everywhere, but none of it worked


 
​What system access to request?
​Request
​x_studio_stage_id in [2, 3, 4]

How can i insert the group in there? 

I also tried in field.




But it didn't work too.

아바타
취소
베스트 답변

Hi,

<record id="model_rule_specific_stages" model="ir.rule">
    <field name="name">Access to Specific Stages</field>
    <field name="model_id" ref="model_your_model"/>
<field name="domain_force">[('x_studio_stage_id', 'in', [2, 3, 4])]</field>
    <field name="groups" eval="[(4, ref('base.group_user'))]"/>
    <field name="perm_read" eval="True"/>
    <field name="perm_write" eval="True"/>
    <field name="perm_create" eval="True"/>
    <field name="perm_unlink" eval="False"/>
</record>


Hope it helps

아바타
취소
관련 게시물 답글 화면 활동
1
3월 25
1749
0
11월 24
1727
0
6월 24
1739
0
10월 23
2247
2
3월 23
2938