Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
8095 Lượt xem

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??

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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>

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 15
5420
1
thg 3 15
5497
1
thg 3 15
9022
10
thg 12 23
37508
1
thg 12 21
10544