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

by default two groups is showed odoo I want to add an third extra group 

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

Hi, 

In your security file in your module you can create another group as below,

<record id="group_your_group_name" model="res.groups">

    <field name="name">Custom Group</field>

    <field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>

</record>

And then you can add this group to your user role in Roles.

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

its working thanks 

الصورة الرمزية
إهمال

Happy to help!

أفضل إجابة

You can add group content filed using xml 

<xpath expr="//field[@name='content']" position="attributes">
    <attribute name="groups">base.group_no_one</attribute>
</xpath>
الصورة الرمزية
إهمال