Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

How to create a new subgroup in user security settings like the group 'Others', 'Applications',...

By
Pieter Paulussen
on 11/2/16, 4:53 AM 129 views

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:

 

2
Ameera PP
On 11/2/16, 9:54 AM

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>

1
Artem
On 11/2/16, 7:46 AM

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>


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/2/16, 4:53 AM
Seen: 129 times
Last updated: 11/2/16, 9:54 AM