콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

Hello,


I've encountered an error while trying to launch my database migrated from Odoo 14 to Odoo 16. The error message states:

The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made.

Error: Undefined variable: "$o-dms-inspector-bg".
        on line 34037:35 of stdin, in mixin `@content`
        from line 78:7 of odoo/addons/web/static/lib/bootstrap/scss/mixins/_breakpoints.scss, in mixin `media-breakpoint-down`
        from line 34010:10 of stdin

>>                 overflow: auto;

   ----------------------------------^
This error occurred while compiling the bundle 'web.assets_backend' containing:
    - /web/static/lib/bootstrap/scss/_functions.scss
    - /web/static/lib/bootstrap/scss/_mixins.scss
    - /web/static/src/scss/mixins_forwardport.scss
    - /web/static/src/scss/bs_mixins_overrides.scss
    - /web/static/src/legacy/scss/utils.scss
    - /web_enterprise/static/src/scss/primary_variables.scss
    - /web/static/src/scss/primary_variables.scss
    - /web_enterprise/static/src/core/notifications/notifications.variables.scss
    - /web_enterprise/static/src/webclient/home_menu/home_menu.variables.scss
    - /web_enterprise/static/src/webclient/navbar/navbar.variables.scss
    - /web/static/src/core/notifications/notification.variables.scss
    - /web/static/src/search/control_panel/control_panel.variables.scss
    - /web/static/src/search/search_panel/search_panel.variables.scss
    - /web/static/src/views/form/form.variables.scss
    - /web/static/src/views/kanban/kanban.variables.scss

.... [List continues...]

Additionally, the interface styling appears distorted.


Any guidance on resolving this issue would be appreciated.


Thank you.

아바타
취소
베스트 답변

Probably because if your custom module contain datas and they might need to migrate into latest version (eg: in version 14 the data structure change a little bit and you need to modify those data in version 14 to adapt 16 one) then database will be corrupted.
But i looked back your error message and notice this think : $o-dms-inspector-bg is a variable of scss file, so probably you might troubleshot this and perhaps temporarily disable the scss file if needed

아바타
취소
작성자 베스트 답변

I did try both solutions, still having the same error unfortunately 

아바타
취소

May i ask, how do you migrate from odoo 14 to odoo 16. You use openupgrade script or odoo upgrade service ?

작성자

I used Odoo upgrade service

Oh that's good, if you don't have any customer module, 3rd party apps then you can always asks Odoo about this, just contact with them for this error.
In case you have customer module or 3rd party apps, the error probably cause by those apps because they might not been upgrade into latest version yet.
if this answer help you, please up vote me or convert into best answer sir.

작성자

Thank you for your suggestion. Yes, indeed, there are several custom addons in our Odoo instance that could potentially be causing the error. However, identifying which one is responsible for the error can be a bit challenging. Could you kindly guide me on the steps I could use to pinpoint the addon causing the issue? Any advice would be greatly appreciated.

Ok, in case you can't contact with the provider who you have bought those apps, you can send me the list of 3rd apps via email daiduongnguyen2709@gmail.com, then i'll will check.
Here is the link to guild you what to do when you want to upgrade database that have custom addons
https://www.odoo.com/documentation/17.0/developer/howtos/upgrade_custom_db.html#

작성자

Thank you for your guidance and for offering to help. I followed all the steps mentioned in the provided link, including upgrading custom modules in an empty database to ensure compatibility with version 16. However, I skipped step 4 and directly launched the upgraded test database in my Odoo instance. Do you think that this could be the cause of the error?

Probably because if your custom module contain datas and they might need to migrate into latest version (eg: in version 14 the data structure change a little bit and you need to modify those data in version 14 to adapt 16 one) then database will be corrupted.
But i looked back your error message and notice this think : $o-dms-inspector-bg is a variable of scss file, so probably you might troubleshot this and perhaps temporarily disable the scss file if needed

작성자

Thanks for your suggestion! I found the file with the "$o-dms-inspector-bg" variable, deleted the associated asset from the database, regenerated the asset bundle, updated the module and now everything's working fine. Appreciate your help!

Good to hear , can you up vote my answer or mark the best answer

관련 게시물 답글 화면 활동
1
12월 24
3523
0
4월 23
2283
1
2월 24
5010
1
7월 23
2784
3
6월 24
2647