Pablo Escobar
Pablo Escobar

Reputation: 685

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.

Upvotes: 1

Views: 849

Answers (1)

CZoellner
CZoellner

Reputation: 14768

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>

Upvotes: 2

Related Questions