Search code examples
xmlodooodoo-10

How to create group and add to checkbox rather than selection in Odoo 10?


I have tried to create the security group as check box. But it is coming as a selection only. The code is give below.

    <record model="ir.module.category" id="module_category_ga">
        <field name="name">GA Access Rights</field>
        <field name="sequence">205</field>
    </record>

    <record id="group_directors" model="res.groups">
        <field name="name">Directors</field>
        <field name="category_id" ref="module_category_ga"/>
    </record>

This is the code.


Solution

  • Just don't use a module category if you want it as a checkbox.

        <record id="group_directors" model="res.groups">
            <field name="name">Directors</field>
        </record>