跳至內容
選單
此問題已被標幟
1 回覆
2039 瀏覽次數

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
1270
0
11月 24
1475
0
6月 24
1547
0
10月 23
2094
2
3月 23
2731