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

The default of the button is invisible.

Access Right Scenario:
User: The button will show if create_uid is not equal to the partner_id
Manager: This button will always display.

What I did was:

attrs="{'visible':[('groups_ids','=','group_user'),('groups_ids','=','group_manager')]}"

Any idea on how to achieve it in another way?


الصورة الرمزية
إهمال
أفضل إجابة

Create a boolean computed field whose value is computed based on the conditions you need and use the value of that field to control the visibility of the button.

الصورة الرمزية
إهمال
الكاتب

thanks for this

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يونيو 23
3114
0
يوليو 23
1991
0
مايو 18
3739
0
يوليو 23
2
0
يوليو 23
5