跳至內容
選單
此問題已被標幟
1 回覆
7676 瀏覽次數

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
4794
1
3月 15
5019
1
3月 15
8428
10
12月 23
36759
1
12月 21
9779