Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
1217 Tampilan

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
Buang
Jawaban Terbai

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
Buang

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

Penulis Jawaban Terbai

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Des 21
2225
1
Sep 21
4252
2
Jun 20
7618
0
Okt 24
905
0
Jun 24
927