Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3726 Tampilan

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?


Avatar
Buang
Jawaban Terbai

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.

Avatar
Buang
Penulis

thanks for this

Post Terkait Replies Tampilan Aktivitas
1
Jun 23
3097
0
Jul 23
1988
0
Mei 18
3717
0
Jul 23
2
0
Jul 23
5