Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
7650 Vistas

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??

Avatar
Descartar
Autor Mejor respuesta

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>

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
nov 15
4729
1
mar 15
4990
1
mar 15
8401
10
dic 23
36724
1
dic 21
9733