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.

0

Why new menuitem dissapear with a user?

By
Anabela Damas
on 12/17/13, 3:35 PM 388 views

Hi,

I create a new module that work well with admin user. When I create a new user the menuitem for my new user dissapear. Why?

My file ir.model.access.csv:

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_calculator_price,access_calculator_price,model_calculator_price,group_calculator_price,1,1,1,1

My file xx_security.xml:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="0">

    <record model="ir.module.category" id="model_calculator_price">
        <field name="name">Folha de Cálculo</field>
        <field name="description">Something...</field>
        <field name="sequence">20</field>
    </record>

    <record model="res.groups" id="group_calculator_price">
        <field name="name">Manager</field>
        <field name="comment">Acesso Folha de Cálculo</field>
        <field name="category_id" ref="model_calculator_price"/>
    </record>


</data>

</openerp>

My file xml with view:

...
<menuitem id="menu_bionutrigal_calc" name="Test" groups="base.group_user"/>

<menuitem id="menu_bionutrigal_calc2" name="Calculator" parent="menu_bionutrigal_calc" groups="base.group_user" ></menuitem>

<menuitem action="action_calculator_price" string="Calculator Data" id="menu_bionutrigal_calc3" parent="menu_bionutrigal_calc2" groups="base.group_user"></menuitem>
....

My new user don't see the menu with name Test. With admin user is possible add the permission for my new user:

image description

But when the menuitem dissapear when I enter in openerp with this user.

Anyone helps me please?

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

0 follower(s)

Stats

Asked: 12/17/13, 3:35 PM
Seen: 388 times
Last updated: 3/16/15, 8:10 AM