Skip to Content
Menu
This question has been flagged
3 Replies
1229 Zobrazenia

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

Avatar
Zrušiť
Best Answer

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

Avatar
Zrušiť

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

Autor Best Answer

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()

Avatar
Zrušiť
Best Answer

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.

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
dec 21
2227
1
sep 21
4256
2
jún 20
7621
0
okt 24
914
0
jún 24
929