Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
17424 มุมมอง

Code : assets.xml

<template id="assets_editor" inherit_id="website.assets_editor" name="Editor assets">

<xpath expr="//link[last()]" position="after">

<link href="/theme_name/static/src/less/customize.less" rel="stylesheet" type="text/less"/>

</xpath>

</template>

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Follow the steps to solve this issue once the database is restored.

step -  1: Run the bellow query  

 update ir_module_module set state = 'to remove' where name = 'theme_name';

Step - 2:  Go to odoo screen > Apps > click on menu "Apply Schedule Upgrade"  and Confirm the process.

Step - 3: upgrade base module for batter behaviour.

อวตาร
ละทิ้ง

Step-3 mean, update app list, then press up. that did the job

คำตอบที่ดีที่สุด

Possibly you have an error in the path of the asset, maybe a folder, file or module name: 

...

<link href="/theme_name/static/src/less/customize.less" rel="stylesheet" type="text/less"/>
...

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Theme name is different i'm mentioning the theme_xxxxx(name) for example.

Inheriting webiste.assets_editor for javascript is working fine but for defining css stylesheet its not working.

<template id="my_js" inherit_id="website.assets_editor" name="My Js">

<xpath expr="script[last()]" position="after">

<script type="text/javascript" src="/theme_name/static/js/theme_editor.js" />

</xpath>

</template>

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ค. 18
4325
0
มิ.ย. 17
2647
1
เม.ย. 19
4229
1
ก.ค. 17
3333
0
พ.ย. 16
3623