I want to create a new security subgroup where I can group my custom security rules.
Suppose I want to create a group 'Company' which is the same as 'Extra Rights' and a new rule 'test rule 1' as 'Multi Companies'. Image for example:
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I want to create a new security subgroup where I can group my custom security rules.
Suppose I want to create a group 'Company' which is the same as 'Extra Rights' and a new rule 'test rule 1' as 'Multi Companies'. Image for example:
Try this:
<record id="module_category_company" model="ir.module.category">
<field name="name">Company</field>
<field name="sequence" eval="20" />
</record>
<record id="group_test_rule_1" model="res.groups">
<field name="name">test rule 1</field>
<field name="category_id" ref="module_category_company"/>
</record>
Probably you are looking for it.
<record id="expense_ticket_module" model="ir.module.category">
<field name="name">Expense ticket access</field>
<field name="description">User access level for Expense ticket</field>
<field name="sequence">40</field>
</record>
<record id="group_expense_ticket" model="res.groups">
<field name="name">User</field>
<field name="category_id" ref="expense_ticket.expense_ticket_module"/>
<field name="users" eval="[(4, ref('base.user_root'))]"/>
<field name="implied_ids" eval="[(4, ref('base.group_user') )]"/>
</record>
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 6 16
|
3413 | ||
Question - Odoo v8 or v9
Đã xử lý
|
|
8
thg 2 16
|
5050 | |
|
0
thg 5 20
|
3779 | ||
|
0
thg 5 16
|
4907 | ||
|
1
thg 12 15
|
3773 |