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

I purpose create custom mega menu in odoo 17

acording to below links:

https://www.cybrosys.com/blog/how-to-create-menu-pages-and-mega-menu-in-odoo-17#:~:text=Now%2C%20let%27s%20delve%20into%20the%20procedure%20of%20setting%20up%20a%20mega%20menu%20in%20Odoo.

I first create XML file that name menus.xml 

And I put the codes in the XML file according to the links above

In the next step, I will place it in the  manifest 


{
'data': [
#...
        'views/menus.xml',
],
}


And in the next issue, I will update the theme and restart the server

And then I reload the page, but the mega menu does not appear


I don't know where it is wrong


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

Hi,

1. Check XML Syntax: Ensure that your menus.xml file has the correct XML syntax

2. Double-check the file path in your manifest (__manifest__.py) to ensure that it matches the actual location of your menus.xml file.

3. Upgrade the module.


Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 3 24
2743
2
thg 10 24
2172
4
thg 5 25
1191
2
thg 5 25
4287
1
thg 3 25
651