Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
2177 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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.

Avatar
Zrušit
Autor Nejlepší odpověď

its working thanks 

Avatar
Zrušit

Happy to help!

Nejlepší odpověď

You can add group content filed using xml 

<xpath expr="//field[@name='content']" position="attributes">
    <attribute name="groups">base.group_no_one</attribute>
</xpath>
Avatar
Zrušit