Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2097 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 25
1358
0
พ.ย. 24
1540
0
มิ.ย. 24
1585
0
ต.ค. 23
2143
2
มี.ค. 23
2794