Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
7269 Näkymät

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
Hylkää
Tekijä

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

Paras vastaus

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
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
jouluk. 19
3393
0
helmik. 24
1802
1
heinäk. 24
1688
1
tammik. 24
4666
2
maalisk. 23
2532