Help

0

How to make Odoo Enterprise regenerate web_icon_data for all menuitems without upgrading all modules?

Avatar
Obay Abdelgadir

I have a scenario where I have a testing database without attachments, which causes the icons on the home page to look like this:



How to make the icons appear again? hopefully without upgrading all modules.

Avatar
Discard
1Answer
0
Avatar
Obay Abdelgadir
Best Answer

I found a solution, just run the following code as script with odoo shell:

for menu_id in env['ir.ui.menu'].search([('web_icon', '!=', False)]):

     menu_id.web_icon_data = menu_id._compute_web_icon_data(menu_id.web_icon)

exit()


Avatar
Discard