Odoo Help


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

Pieter Paulussen
on 11/2/16, 4:53 AM 444 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:



Ameera PP

--Ameera PP--
--Ameera PP--

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 id="group_test_rule_1" model="res.groups">  

          <field name="name">test rule 1</field>  

          <field name="category_id" ref="module_category_company"/> 


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 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') )]"/>

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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