Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2450 Widoki

After restoring a database upgraded from Odoo 14 to Odoo 16 we receive the Style error.

Style error

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

Could not get content for /bi_view_editor/static/src/css/bve.css.

Uninstalled OCA / reporting\-engine /bi_view_editor,\ upgraded\ all\ modules\ in\ the\ database,\ regenerated\ asset\ bundles\ and\ sent\ the\ database\ away\ for\ upgrade\.

This\ did\ not\ clear\ the\ issue\.\ Still\ got\ the\ same\ style\ error\.

After\ selecting\ OK\ for\ the\ style\ error\ Odoo\ dashboard\ is\ not\ visible\. \ Blank\ page\ with\ none\ of\ the\ application\ icons\.

Restored\ the\ upgraded\ dump\ to\ Odoo\.sh\.  

This\ allowed\ access\ to\ the\ Odoo\ Dashboard\ but\ all\ the\ style\ sheets\ are\ in\ error\.


If\ for\ example\ sale\ order\ form\ selected\ get\ message\.

How\ can\ the\ backend\ assets\ be\ forced\ to\ regenerate\ either\ at\ Odoo\ 14\ before\ database\ sent\ for\ upgrade\ or at\ Odoo\ 16\ after\ the\ upgrade\?


Or\ How\ can\ the\ reference\ to 

UncaughtPromiseError\ >\ TypeError
Uncaught\ Promise\ >\ viewFieldsInfo\ is\ undefined
TypeError:\ viewFieldsInfo\ is\ undefined
\ \ \ \ processArch/https://bizanova\-edgeupgrade\.odoo\.com/web/assets/debug/web\.assets_backend\.js:68188:21\ \(/web/static/src/legacy/legacy_load_views\.js:73\)
\ \ \ \ traverse@https://bizanova\-edgeupgrade\.odoo\.com/web/assets/debug/web\.assets_backend\.js:68122:10\ \(/web/static/src/legacy/legacy_load_views\.js:7\)
\ \ \ \ traverse/https://bizanova\-edgeupgrade\.odoo\.com/web/assets/debug/web\.assets_backend\.js:68124:21\ \(/web/static/src/legacy/legacy_load_views\.js:9\)
\ \ \ \ each@https://bizanova\-edgeupgrade\.odoo\.com/web/assets/debug/web\.assets_common\.js:1900:17\ \(/web/static/lib/underscore/underscore\.js:1330\)
\ \ \ \ traverse@https://bizanova\-edgeupgrade\.odoo\.com/web/assets/debug/web\.assets_backend\.js:68123:11\ \(/web/static/src/legacy/legacy_load_views\.js:8\)
\ \ \ \ traverse/https://bizanova\-edgeupgrade\.odoo\.com/web/assets/debug/web\.assets_backend\.js:68124:21\ \(/web/static/src/legacy/legacy_load_views\.js:9\)
\ \ \ \ each@https://bizanova\-edgeupgrade\.odoo\.com/web/assets/debug/web\.assets_common\.js:1900:17\ \(/web/static/lib/underscore/underscore\.js:1330\)
\ \ \ \ traverse@https://bizanova\-edgeupgrade\.odoo\.com/web/assets/debug/web\.assets_backend\.js:68123:11\ \(/web/static/src/legacy/legacy_load_views\.js:8\)
\ \ \ \ traverse/https://bizanova\-edgeupgrade\.odoo\.com/web/assets/debug/web\.assets_backend\.js:68124:21\ \(/web/static/src/legacy/legacy_load_views\.js:9\)
\ \ \ \ each@https://bizanova\-edgeupgrade\.odoo\.com/web/assets/debug/web\.assets_common\.js:1900:17\ \(/web/static/lib/underscore/underscore\.js:1330\)
\ \ \ \ traverse@https://bizanova\-edgeupgrade\.odoo\.com/web/assets/debug/web\.assets_backend\.js:68123:11\ \(/web/static/src/legacy/legacy_load_views\.js:8\)
\ \ \ \ traverse/https://bizanova\-edgeupgrade\.odoo\.com/web/assets/debug/web\.assets_backend\.js:68124:21\ \(/web/static/src/legacy/legacy_load_views\.js:9\)
\ \ \ \ each@https://bizanova\-edgeupgrade\.odoo\.com/web/assets/debug/web\.assets_common\.js:1900:17\ \(/web/static/lib/underscore/underscore\.js:1330\)
\ \ \ \ traverse@https://bizanova\-edgeupgrade\.odoo\.com/web/assets/debug/web\.assets_backend\.js:68123:11\ \(/web/static/src/legacy/legacy_load_views\.js:8\)
\ \ \ \ processArch@https://bizanova\-edgeupgrade\.odoo\.com/web/assets/debug/web\.assets_backend\.js:68174:13\ \(/web/static/src/legacy/legacy_load_views\.js:59\)
\ \ \ \ generateLegacyLoadViewsResult@https://bizanova\-edgeupgrade\.odoo\.com/web/assets/debug/web\.assets_backend\.js:68148:64\ \(/web/static/src/legacy/legacy_load_views\.js:33\)
\ \ \ \ loadViews/cache\[key\]https://bizanova-edgeupgrade.odoo.com/web/assets/debug/web.assets_backend.js:57391:41 (/web/static/src/views/view_service.js:115)

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,


The Style error usually appears when an asset file path (like /bi_view_editor/static/src/css/bve.css) no longer exists after the upgrade. This often happens when a third-party module was removed or renamed between Odoo 14 and 16.


Ensure that all custom and OCA modules referenced in the old database are either installed, replaced, or fully uninstalled before performing the upgrade.


On the upgraded Odoo 16 instance, clear all asset bundles by deleting the /web/assets/ directories and running Odoo with --update=all --load=web,base to force full asset regeneration.


If the issue persists, connect to the upgraded database in developer mode and check ir.attachment records where name like '%assets_%' — delete those to trigger a clean rebuild of assets.


For the “viewFieldsInfo is undefined” JS error, one of the legacy views still contains deprecated XML fields; identify and correct or remove those custom views (often leftover from Odoo 14).


To prevent recurrence, test the upgrade on a clean database clone with all obsolete modules uninstalled and ensure all dependencies are migrated to their Odoo 16 equivalents before re-upgrading.


Hope it helps.

Awatar
Odrzuć