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

hello, i want to create a Button that only visible to ADMIN only. if other than admin logged in , the button would be INVISIBLE...

thanks a lot in advance

Regards, Ali..

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

Hello,

You can do like:

<button string="Cancel all" groups="base.group_erp_manager"/>

In groups you have to assign the group to whom you want to display button.

Thanks.

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

how to give access right programmatically...???

In xml add groups="base.group_erp_manager" to the button you have created. This group already exist so no need to add other code.

الكاتب

thanks a lot.....!!!!

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
نوفمبر 24
1927
1
يناير 24
14268
3
يوليو 22
14989
1
مايو 21
9692
2
يونيو 19
15920