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

Create menu from Python?

By
Carlos Llamacho
on 9/17/13, 12:14 PM 1,538 views

Hello, i am working on a module that creates a set of menus and actions based on options set by the user. I used an ORM method, create, to add a new entry in the ir.ui.menu model with the data. Is working correctly so far, i can see the new entry in both OpenERP menus settings entry and in the database, but i still can't see the menu in the top bar position that is configured.

I make sure to put it a parent menu, and has a Full Path value assigned. I am currently testing it with the admin user. I compared it with another menu created via xml and there seems to be no difference. Any ideas as why this?

Thanks in advance.

0
Carlos Llamacho
On 9/17/13, 5:18 PM

I found the solution and am leaving the response here just in case that someone else bumps into this problem.

If the menu doesn't have an action assigned or a submenu assigned it won't show in the view even if already is created in the records.

Thanks for share!

OpenERP Vietnam
on 9/18/13, 2:46 AM

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: 9/17/13, 12:14 PM
Seen: 1538 times
Last updated: 3/16/15, 8:10 AM