Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2840 Представления

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


Аватар
Отменить
Автор Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
4
мая 25
2538
2
мая 25
5916
1
мар. 25
1699
4
мар. 25
4528
3
февр. 25
5530