src="/module_name/static/description/image.png" does not seem to work on image tags in my xml template. I'm on odoo16.
لقد تم الإبلاغ عن هذا السؤال
I added class="article" to the top div element and suddenly the report came to life. My images displayed, the font was set etc I don't know what it does but it worked for me. Thanks for the help anyways
Hi,
Refer to the below code
<template id="your_template_id" inherit_id="your_inherited_
<!-- Add the web directive to reference static assets -->
<xpath expr="//img/@src" position="replace">
<attribute name="t-att-src">web/image/
</xpath>
<!-- Your other template content goes here -->
</template>
Hope it helps
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
0
ديسمبر 23
|
3561 | ||
|
|
1
يوليو 19
|
10148 | ||
|
|
3
مارس 17
|
10706 | ||
|
|
0
مارس 26
|
83 | ||
|
|
1
مارس 25
|
4092 |