Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2810 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
kvě 25
2451
2
kvě 25
5786
1
bře 25
1626
4
bře 25
4420
3
úno 25
5400