Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
1212 Представления

After migrating an old Database I get this error in Odoo 18.


I suspect it has to do with themes. Any pointers on how to solve this.?

Please don't tell me -u all -> I tried this more than once.




"Error: argument `$map` of `map-get($map, $key)` must be a map

        on line 8241:30 of /stdin, in function `map-get`

        from line 8241:30 of /stdin

>>             (


   -----------------------------^

This error occurred while compiling the bundle 'web.assets_web_print' containing:

    - /web/static/src/scss/functions.scss

    - /web/static/src/scss/primary_variables_print.scss

    - /web/static/src/views/kanban/kanban.print_variables.scss

Аватар
Отменить
Лучший ответ

Common causes

The $map variable is not initialized properly or is overwritten by a non-map value.

A custom module or theme may have modified the Sass variable incorrectly.

Removing the database may cause some theme configurations to be incompatible with the new Odoo version.

This can be fixed by

Checking the theme you are using

Locate the error

Add data type checks 

Clear cache and recompile assets

Аватар
Отменить

Check custom modules:
If you have a third-party frontend module or theme, check if it is compatible with Odoo 18.
https://geometrydashjump.io

Автор Лучший ответ

https://www.odoo.com/de_DE/forum/hilfe-1/odoo17-version-after-installation-styling-not-loading-238399

Check out my answer to this. It mybe has something to do with cashing - try if it' works in Chrome incognito mode.


And there was an issue with caching.

If I deleted the assets in the database they got regenerated and then it worked again.
res = env['ir.attachment'].search([('url', 'like', '/web/%')])

res.unlink()

Аватар
Отменить
Лучший ответ

I'm facing with same problem. 

In February I installed Ubuntu 24.04 server and Odoo 18. I created a test base and everything worked fine. I tested as a custom module. Now I updated the latest odoo core files and even a clean test base does not work. I get the message The style compilation failed. Ubuntu has the same libraries as in February. I removed Enterprise so the problem is in Odoo core.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
дек. 21
2225
1
сент. 21
4249
2
июн. 20
7615
0
окт. 24
905
0
июн. 24
927