Skip to Content
Menú
This question has been flagged
1 Respondre
2820 Vistes

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 Best Answer

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
Related Posts Respostes Vistes Activitat
4
de maig 25
2484
2
de maig 25
5833
1
de març 25
1661
4
de març 25
4448
3
de febr. 25
5446