Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • e-learning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Conocimientos
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Cervecería
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y soporte técnico
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Explorar todos los sectores
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Servicios para partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Adding Menuitem to root menu for new custom module in Odoo12

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
viewsmodulesmenumenuitemodooV12
7 Respuestas
32293 Vistas
Avatar
Mario Bošnjak

Hi guys, I've been trying new odoo12, and everything seems fine and nice to me. 
While trying it out, I was following tutorial for building up modules. eg Openacademy.
I have created those basic models, and  views for them, added them to the __manifest__.py file and double checked their paths. 
In my openacademy.xml file i have a line that says:

<menuitem id="main_openacademy_menu" name="Open Academy" sequence="75" groups="base.group_user"/>

his should be enough for the menu item to appear in main menu, but it does not. After this I added to dependencies 'hr' module, and run update.It installed the hr module, and 'Employee' menu item appeared in main menu...

I also tried adding it with (in order to follow naming convention I found in predefined modules/apps):

<menuitem id="menu_openacademy_root" name="Open Academy" sequence="75" groups="base.group_user"/>


I checked in postgresql, my models are properly created in the database

Odoo12 recognizes views I have declared in my "views/" directory. I can find them in Settings->Technical->User Interface -> Menu Items.

Does anyone else have similar experience with new Odoo12?


0
Avatar
Descartar
Sehrish

How to create Action Menu in Odoo

Reference: https://goo.gl/UnHzS8

Avatar
Gregory Gillis
Mejor respuesta

EDIT: After looking around further, it appears to be an issue with the security. Once the security file is properly updated and groups are assigned to the views, it will appear in the menu. I am not sure why going through the tutorial does not work properly for permissions. SOLUTION-In developer mode, Settings>Technical>Access Rules. Create a new access rule for Open Academy. You will have to create for all of the objects. Save and reload the page. Openacademy should now appear in the Menu. This needs to be clarified on the documentation page and corrected so the security.csv actually adds to the access rules list when the module is added/upgraded.

More info: \https://www.odoo.com/forum/help-1/question/create-module-on-odoo-12-won-t-to-show-link-to-access-141195


Original: I'm running into the same issue. I've done this without issues for version 10 and 11. Not sure what has suddenly changed. Their tutorial, and even using the default 'scaffold' code does not allow a custom module to appear on the main menu.

The menu does not appear, even if you have an action in place and the action is correct. There is no error output, it just doesn't appear.

1
Avatar
Descartar
Gregory Gillis

Side note: The security.xml MUST be before the ir.model.access.csv or it will give errors since it cannot find the group it is looking for. Also make sure that both are uncommented on __manifest__.py so they will load (remove the # if there is one).

Avatar
Omer Ahmed
Mejor respuesta

you most has action in your menu or child menu that has action
other ways the menu will not display

0
Avatar
Descartar
Avatar
subbarao
Mejor respuesta

Hello Mario,

Without an action menu will not display.

Add any sub menu with an action under the root menu, it will work.

0
Avatar
Descartar
Gregory Gillis

Here is what my xml looks like, with the action provided and nothing shows up in the menu:

<?xml version="1.0" encoding="UTF-8"?>

<odoo>

<reco

rd model="ir.ui.view" id="course_form_view">

<field name="name">course.form</field>

<field name="model">openacademy.course</field>

<field name="arch" type="xml">

<form string="Course Form">

<sheet>

<group>

<field name="name"/>

<field name="description"/>

</group>

</sheet>

</form>

</field>

</record>

<!-- window action -->

<!--

The following tag is an action definition for a "window action",

that is an action opening a view or a set of views

-->

<record model="ir.actions.act_window" id="course_list_action">

<field name="name">Courses</field>

<field name="res_model">openacademy.course</field>

<field name="view_type">form</field>

<field name="view_mode">tree,form</field>

<field name="help" type="html">

<p class="oe_view_nocontent_smiling_face">Create the first course

</p>

</field>

</record>

<!-- top level menu: no parent -->

<menuitem id="main_openacademy_menu" name="Open Academy"/>

<!-- A first level in the left side menu is needed

before using action= attribute -->

<menuitem id="openacademy_menu" name="Open Academy"

parent="main_openacademy_menu"/>

<!-- the following menuitem should appear *after*

its parent openacademy_menu and *after* its

action course_list_action -->

<menuitem id="courses_menu" name="Courses" parent="openacademy_menu"

action="course_list_action"/>

<!-- Full id location:

action="openacademy.course_list_action"

It is not required when it is the same module -->

</odoo>

Avatar
Mario Bošnjak
Autor Mejor respuesta

They have changed admin default access rights. If you create new module without explicitly declaring that a user can access module, it will not be visible. 
Thanks @Gregory

0
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
How to create a menu, sub menus and actions? Resuelto
modules menu menuitem
Avatar
Avatar
Avatar
Avatar
Avatar
5
ago 23
43923
[SOLVED] Custom module won't show view when clicking on menu item
views modules menu
Avatar
0
oct 22
6303
Custom code: My Menu is not appearing, even though I see the Menu Item is created Resuelto
views menuitem
Avatar
Avatar
1
sept 25
1117
Dropdown sub-menu offset away from position
menu menuitem
Avatar
0
dic 24
1884
Fields from another model Resuelto
views odooV12
Avatar
Avatar
1
sept 21
9568
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now