Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
1218 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ

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

Tác giả Câu trả lời hay nhấ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()

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 21
2225
1
thg 9 21
4252
2
thg 6 20
7618
0
thg 10 24
905
0
thg 6 24
927