İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
1234 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç

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

Üretici En İyi Yanıt

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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Ara 21
2227
1
Eyl 21
4258
2
Haz 20
7622
0
Eki 24
921
0
Haz 24
929