src="/module_name/static/description/image.png" does not seem to work on image tags in my xml template. I'm on odoo16.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Dec 23
|
1221 | ||
|
1
Jul 19
|
7967 | ||
|
3
Mar 17
|
8532 | ||
|
1
Mar 25
|
357 | ||
|
0
Nov 24
|
725 |