Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2832 Vizualizări

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


Imagine profil
Abandonează
Autor Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
4
mai 25
2511
2
mai 25
5867
1
mar. 25
1689
4
mar. 25
4475
3
feb. 25
5478