Skip to Content
Menu
This question has been flagged
1 Atsakyti
7698 Rodiniai

I created a new group with the help of XML. 

    <record id="group_custom_manager" model="res.groups">
        <field name="name">Custom Manager</field>
        <field name="category_id" ref="base.module_category_hidden"/>
        <field name="users" eval="[(4, ref('base.user_root'))]"/>
    </record>

but in my case, after creating this group.  I have to manually enable the group for other users.  

Is it possible to enable this group for all users automatically??

Portretas
Atmesti
Autorius Best Answer

By inheriting the HR/Employee group to our user-defined group.

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
lapkr. 15
4861
1
kov. 15
5067
1
kov. 15
8463
10
gruod. 23
36823
1
gruod. 21
9834