تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2034 أدوات العرض

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
مارس 25
1268
0
نوفمبر 24
1471
0
يونيو 24
1545
0
أكتوبر 23
2092
2
مارس 23
2727