Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
6763 Vistas

I’m working on a custom module but I need some help because I don’t know where’s the issue.

The module is uploaded in the database and it shows up in the Apps list with other installable modules. I can install it and upgrade it. But it doesn’t show up in Odoo main page (/web#cids=1&action=menu). This is my manifest:

# -*- coding: utf-8 -*-

{

    'name': "GEI_dashboard",

 

    'summary': "A dashboard for the server´s resources",

 

    'description': "This module shows a dashboard with a server's resources, such as used RAM and total RAM, how many users are connected, how many users are in total, etc. It also shows alerts.",

 

    'author': "GEI Project",

    'website': "https://gei-project.odoo.com/",

 

    # Categories can be used to filter modules in modules listing

    # Check https://github.com/odoo/odoo/blob/master/odoo/addons/base/module/module_data.xml

    # for the full list

    'category': 'Uncategorized',

    'version': '0.2',

 

    # any module necessary for this one to work correctly

    'depends': ['base'],

 

    # always loaded

    'data': [

        # 'security/ir.model.access.csv',

        'views/views.xml',

        'views/templates.xml',

    ],

 

    'application': True,

    'installable': True,

    'odoo': '13.0+'

}


Avatar
Descartar
Autor

Done, it works now. Thanks! Sorry I'm new using Odoo

Mejor respuesta

You need to load the `ir.model.access.csv` as well. Usually when a custom module does not show up in the menu, it is because this file is not loaded or not configured properly.

Avatar
Descartar
Mejor respuesta

Hi,

If you are new to odoo development, follow this tutorial for the beginners:  Odoo 16 Development

Menu wont be visible, if the access rights is not set for the related model or if there is no action linked with menu or no sub menus and if any user group is set for the menu.

Reasons:

1. Missing access rights
2. User not added to group assigned to the menu

3. Action or sub menus is not linked with menu.

See: Different Reasons For A Menu Not Visible In Odoo

Thanks

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
dic 19
3251
0
feb 24
1571
1
jul 24
1460
1
ene 24
4261
2
mar 23
2303