src="/module_name/static/description/image.png" does not seem to work on image tags in my xml template. I'm on odoo16.
Cette question a été signalée
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
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
0
déc. 23
|
3552 | ||
|
|
1
juil. 19
|
10140 | ||
|
|
3
mars 17
|
10681 | ||
|
|
0
mars 26
|
83 | ||
|
|
1
mars 25
|
4065 |