Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
7092 Lượt xem

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+'

}


Ảnh đại diện
Huỷ bỏ
Tác giả

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

Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 19
3322
0
thg 2 24
1702
1
thg 7 24
1609
1
thg 1 24
4517
2
thg 3 23
2446