Odoo Help

1

How add drop down box in users application form

By
sridhar
on 3/18/14, 1:28 AM 1,096 views

Now i creating a module, I want to set access rights for the users. I followed the base way it come in check box for manager and user this one i dont want. I want Quality is a title User and Managers are in the group how to do it. Here is the code. <openerp> <data noupdate="0">

 <record model="ir.module.category" id="module_category_quality_management">
        <field name="name">Qualitysss</field>
        <field name="description">Quality Management</field>
        <field name="sequence">24</field>
    </record>

<record id="group_quality_user" model="res.groups">
    <field name="name">User</field>
    <field name="category_id" ref="module_category_quality_management"/>
    <field name="model_id" ref="model_quality_control"/>
    <field name="implied_ids" eval="[(4, ref('module_category_quality_management'))]"/>

</record>
<record id="group_quality_manager" model="res.groups">
    <field name="name">Manager</field>
    <field name="model_id" ref="model_quality_control"/>
    <field name="category_id" ref="module_category_quality_management"/>
    <field name="implied_ids" eval="[(4, ref('module_category_quality_management'))]"/>

</record>

</data> </openerp> Help me...

1
Tai Le Thanh
On 6/22/17, 12:14 AM

implied_ids: These are the other groups to inherit permissions from.

module_category_quality_management : is just a category and you will see that in Users > Groups (for search, etc)

So group Manager : <field name="implied_ids" eval="[(4, ref('group_quality_user'))]"/>
so both group will be add to a drop down box, and group Manager have all atributes of 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.

Register

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)

Stats

Asked: 3/18/14, 1:28 AM
Seen: 1096 times
Last updated: 7/13/17, 5:28 AM