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

I am working on Odoo CRM. I inherited CRM.lead I added some functionality I added new user roles to them.

Admin thing is working fine when I given user roles which I created now it's throwing error.

File ".........base/res/res_users.py", in has_group assert group_ext_id and '.' in group_ext_id, "External ID must be fully qualified"

"AssertionError: External ID must be fully qualified"

I tried but can't.

Help me if you know your valuable suggestion very help full for me.

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

Indeed, you need to refer to the groups using the notation "module.group_id". For example if you wanna set an xml node to be able to see only by the "Employee" group defined on the module base like:

  <record model="res.groups" id="group_user">
<field name="name">Employee</field>
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>

, you need to add to your xml node:

groups="base.group_user"

The admin user bypass pretty much all the security checks

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
يناير 25
1324
0
مارس 19
3457
1
فبراير 18
3203
1
نوفمبر 24
1364
3
أبريل 23
17850