跳至内容
菜单
此问题已终结
1 回复
7651 查看

I created a new group with the help of XML. 

    <record id="group_custom_manager" model="res.groups">
        <field name="name">Custom Manager</field>
        <field name="category_id" ref="base.module_category_hidden"/>
        <field name="users" eval="[(4, ref('base.user_root'))]"/>
    </record>

but in my case, after creating this group.  I have to manually enable the group for other users.  

Is it possible to enable this group for all users automatically??

形象
丢弃
编写者 最佳答案

By inheriting the HR/Employee group to our user-defined group.

        <record id="group_custom_manager" model="res.groups">
              <field name="implied_ids" eval="[(4, ref('base.group_user'))]" />
        </record>

形象
丢弃
相关帖文 回复 查看 活动
0
11月 15
4730
1
3月 15
4990
1
3月 15
8403
10
12月 23
36725
1
12月 21
9734