Odoo Help


Why my new menu option is not visible for non admin users?

Juan Formoso
on 12/29/14, 7:12 AM 2,142 views

I've created a new module named event_extended, which depends on the module named event. In my module, I've created a class ee.diploma. I created a new menu option to access to the views of this projects:

<menuitem name="Diplomas"
            id="menu_action_event_diploma" parent="base.menu_event_main"
            action="action_event_diploma" sequence="11"

As you can see, I've set some groups to the menuitem: I copied them from other existing menuitem which was set on the event module code. I did this because I want my menu option to bevahe like that menuitem.

As I want to use the same user groups as the ones declared in the module event, I didn't create any XML file in the security folder. I've only created a CSV file (which I've included in the array data of __openerp__.py). This is my CSV:

id, name, model_id:id, group_id:id, perm_read, perm_write, perm_create, perm_unlink

access_ee_diploma, ee.diploma, model_ee_diploma, event.group_event_user, 1, 1, 1, 1

The problem is: I can't see the menu option if I'm logged as a normal user (it doesn't mind if my user belongs to event.group_event_manager or event.group_event_user).

Can anyone help me, please? I've seen several questions which ask the same as I do, and I've tried their answers with no result. There must be something I'm missing.


The rows I write in my CSV are being ignored. I have the next structure in my module

|_ controllers
|_ i18n
|_ report
|_ security
|_ static
|_ wizard
|_ __openerp__.py
... etc

And my __openerp__.py is:

    "name": "Extended Events",
    "version": "0.1",
    "depends": [
    "author": "Juan Formoso <xxx@xxx.es>",
    "category": "Events",
    "description": """
    'demo': [],
    'data': [
    'installable': True,

If you got to your settings menu, in the event user group, is the menu defined? Also, under the access rules, is the line created that you made in your CSV? Just regular checks. I have experienced the same sort of error before but did not find a solution. Also, this might sound stupid, but did you try to remove the "parent" tag from the menu item? If you do, your menu item will appear in the top bar. If THAT occurs, then we have the exact same problem and I would be more than curious to find the solution as well.

21south, Ludo - 21South
on 12/29/14, 7:19 AM

Thank you very much @Ludo! I did what you said, removed the parent tag and my menu item appears on the top bar, but once again, only for admin, not for non admin users.

Juan Formoso
on 12/29/14, 9:41 AM

If I go to Settings -> Technical -> Security -> Access Controls List, I can't see the row I added in my CSV file. Why?

Juan Formoso
on 12/29/14, 10:32 AM

Are you 100% sure that you added the CSV file to the __openerp__.py file of your module? Otherwise, the CSV contents might not be valid. Try adding a second line for the event manager group as well.

21south, Ludo - 21South
on 12/29/14, 10:36 AM

The problem must be that I'm not adding the access rights properly, because I've just created a new record from the interface with the data of my CSV row, and now, it works. Is my CSV file wrong?

Juan Formoso
on 12/29/14, 10:39 AM

Ok, I'll do it now!

Juan Formoso
on 12/29/14, 10:39 AM

I added a second line in my CSV for event.group_event_manager with the same permissions, and it's beeing ignored too. I'm going to edit my question to show my __openerp__.py and module folder structure.

Juan Formoso
on 12/29/14, 10:49 AM

Not quite sure if it makes a difference, but in my configurations the csv file is always the last file of the "update" column, not the "data" column. Also, as Aitor mentioned you should use commas, but my assumption is that you just used those here to clarify what was filled in?

21south, Ludo - 21South
on 12/30/14, 2:11 AM

Ok, I've been said to remove the update_xml and use data instead (I'm working on v7). But I'm having the same problem. I'm not using slashes (I've only written them here to show my CSV content). I copied a CSV from other module, opened and modified it with LibreOffice.

Juan Formoso
on 12/31/14, 7:13 AM
Aitor Bouzas
On 12/29/14, 11:09 AM

Hi Juan,

Try to use ',' (commas) instead of '/' (slashes) in your .csv file.

Thank you @Aitor! I didn't use slashes, I've only written them to show here the content of the CSV. I copied the CSV from other module, and then opened and modified it with LibreOffice. Could be that a problem?

Juan Formoso
on 12/31/14, 7:20 AM

Hi @Juan, It shouldn't be the problem. Anyway check the file with a plain text editor like (Linux) vi, nano or (Windows) notepad++, notepad itself...

Aitor Bouzas
on 12/31/14, 7:49 AM

Thank you very much @Aitor!!! Sorry for the delay, I was on a holiday, but I've started the day opening the csv with nano and there were semicolons instead of commas! I changed them and now it's working! :)

Juan Formoso
on 1/12/15, 3:56 AM



| 5 3 6
Jakarta, Indonesia
On 12/29/14, 7:34 AM

I would do @Ludo's advice to remove the parent tag first. That will inherently test whether your access rules and menu item access are in order. If you can't see the menu without parent, then you need to check the access rules, etc. If it appears, check on the groups of all the parent menus, starting from base.menu_event_main. The user need to have access to all parent menus (if there is no group, then it is accessible to all users).

Thank you @Ivan! I removed the parent tag, and the behaviour is exactly the same, except for my menu item is now on the top bar. I can only see it if I am logged as an admin. I've created the CSV with only one line (the one I posted earlier). And I guess I shouldn't create any XML files in security folders because I only want to use the ones declared in the security folder of the module which my module depends on. Am I right? Which could be the problem?

Juan Formoso
on 12/29/14, 10:07 AM

As @Aitor had mentioned, are you using '/' instead of ','? You need to use ',' as separator. You can group text that is to be read as one column with double quotes. Also, you are mixing the use of update_xml and data. Not sure how it would turn out, but the sequence of data loading is important. I would advise that you choose one between update_xml or data.

on 12/30/14, 12:57 AM

Thank you @Ivan! Ok, I've removed the update_xml and use data instead, I've edited the code above. But I'm having the same problem. I'm not using slashes (I've only written them here to show my CSV content). I copied a CSV file from other module, opened and modified it with LibreOffice.

Juan Formoso
on 12/31/14, 7:18 AM

@Juan, if you can get hold of the log when you install or update the module, it would be helpful. It would be better if the log is set to the debug or greater level (debug_rpc, debug_rpc_answer, etc.)

on 1/5/15, 4:31 AM

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

3 follower(s)


Asked: 12/29/14, 7:12 AM
Seen: 2142 times
Last updated: 3/16/15, 8:10 AM