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

Hey, since we updated odoo 16 we are having some problems with loading assets. I feel like we have converted the style loading correctly.

In odoo 14: 

<odoo>
<
data>
<
template id="report_assets" name="report assets" inherit_id="web.report_assets_common">
<
xpath expr="." position="inside">
<
link rel="stylesheet" type="text/scss" href="/hemma/static/src/scss/report.scss"/>
<
/xpath>
<
/template>
<
template id="view_assets" name="view assets" inherit_id="web.assets_backend">
<
xpath expr="." position="inside">
<
script type="text/javascript" src="/hemma/static/src/js/ssn_widget.js"/>
<
script type="text/javascript" src="/hemma/static/src/js/relatively_date_widget.js"/>
<
script type="text/javascript" src="/hemma/static/src/js/control_panel_button.js"/>
<
script type="text/javascript" src="/hemma/static/src/js/interest_rates_widget.js"/>
<
link rel="stylesheet" type="text/css" href="/hemma/static/src/css/index.css"/>
<
link rel="stylesheet" type="text/scss" href="/hemma/static/src/scss/hemma.scss"/>
<
/xpath>
<
/template>
<
/data>
<
/odoo>


in odoo 16:
"assets": {
"web.assets_backend": [
("prepend", "hemma/static/src/js/lazyloader.js"),
"hemma/static/src/css/index.css",
"hemma/static/src/scss/hemma.scss",
"hemma/static/src/xml/*.xml",
"hemma/static/src/js/ssn_widget.js",
"hemma/static/src/js/relatively_date_widget.js",
"hemma/static/src/js/control_panel_button.js",
"hemma/static/src/js/interest_rates_widget.js",
],
"web.assets_common"
: [
("prepend", "hemma/static/src/scss/report.scss"),
]
},


Here are example of some errors. For example the queue.job_fields.scss file doens't exist anymore in the queue_job module in version 16, but it seems like it is caching it's reference somewhere. And some other weird issue like missing web.public.lazyloader. Any help would greatly be appreciated! 



아바타
취소

Have you solved your issue ?

Can you please explain more, where is the ir_asset ?

You can see a menu named "Assets" under settings -> technical

작성자 베스트 답변

we solved the issue by deleting all records from ir.asset, and rebuild, then it worked:

DELETE FROM ir_asset

아바타
취소

Hi Oskar,
We also have the same problem. It is mean, first you removed the records from ir_assets and upgraded your module again so that the records are created again in this model (ir_assets) and then the problem is solved?

관련 게시물 답글 화면 활동
2
9월 23
3097
2
3월 24
2189
0
1월 24
1072
1
9월 23
2516
3
6월 24
2444