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

Hello all,

I am trying to create a new user group category but it is only shown in debug mode.

Also noticed that many of the groups permissions are hidden too and just shown whille in debug mode (extra rights - contacts creation, multi currencies, multi companies...).

I have setup my new category as:


<record model="ir.module.category" id="my_module_category">
    <field name="name">Category Name Here</field>
    <field name="sequence">100</field>
    <field name="visible" eval="True" />
</record>




And the groups:


<record id="my_group_user1" model="res.groups">
    <field name="name">My Group 1</field>
    <field name="category_id" ref="my_module.my_module_category"/>
</record>
<record id="my_group_user2" model="res.groups">
    <field name="name">My Group 2</field>
    <field name="category_id" ref="my_module.my_module_category"/>
</record>




The category and groups are still shown only in "debug mode".


PS: I can't find a way to post the correct code in this forum...


Any help?

Thank you in advance


Avatar
Descartar
Autor Mejor respuesta

Hello,

I have solved the issue.

For some reason I had to force group category visibility on the second module:

<record model="ir.module.category" id="my_module.my_module_category">
            <field name="visible" eval="True" />
        </record>

This solved the issue

Thank you very much

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
4
may 25
2482
2
may 25
5821
1
mar 25
1654
4
mar 25
4444
3
feb 25
5438