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

I have the situation that I have a component if I use a template it's

export class GeoengineRecord extends Component {

static template = "base_geoengine.GeoengineRecord";

...


I get the error message:

Uncaught Promise > Missing template: "base_geoengine.GeoengineRecord" (for component "GeoengineRecord")


If I Introduce the same xml via:

static template = xml`<p>Test</p>`

There is no issue.

I suspect it has something to do with the way I import it:

"web.assets_backend": [ "base_geoengine/static/src/js/**/*", "base_geoengine/static/src/js/views/**/*",

I had a similar issue where i needed to make my own bundle which is not good for this use case. -> a custom name instead of "web.assets_backend".

Any help would be appriciated.

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

Hi,


1. Change the folder to static/src/xml/file name.xml

2. Check the Template Definition in XML

3. make sure the assets are loaded in the right bundle


Hope it helps

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 22
4256
1
พ.ย. 20
3783
How to replace javascript files odoo 16 แก้ไขแล้ว
1
ธ.ค. 23
2786
1
ส.ค. 25
1018
0
ม.ค. 25
1490