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

Hi,

Working on Odoo13, when creating a new contact (individual) in debug mode there is a field where it let you chose direction type (private, delivery...).

How can grant permission to a specific group of users to this field?

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

Hi, Kiko Rivera


groups="base.group_no_one"  is used for showing fields  only in debug mode
 
<field name="type" groups="base.group_no_one" attrs="{'invisible': [('is_company','=', True)], 'readonly': [('user_ids', '!=', [])]}"/>

If you want to  give access to any other groups assign multiple groups for that field ,

<field name="type" groups="base.group_no_one,base.user_admin" attrs="{'invisible': [('is_company','=', True)], 'readonly': [('user_ids', '!=', [])]}"/>
الصورة الرمزية
إهمال
الكاتب أفضل إجابة

How can I identify all groups available in Odoo?

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

Hello Kiko Rivera,

Yes, you can very well do this by assigning group to that particular field .

for reference, please consider this ...

<field name ="test" groups="group_name"/>

you can also define multiple group using comma
I hope you will understand this
Thank you....

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
أغسطس 25
795
0
يوليو 25
523
1
يوليو 25
751
0
يونيو 25
661
1
مايو 25
1311