diff options
| author | Pedro M. Baeza <pedro.baeza@gmail.com> | 2018-09-20 13:08:50 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@odoo.com> | 2018-10-03 17:48:14 +0200 |
| commit | 1ad4d42f0b6da1677a5114c0b79a86b7be35577a (patch) | |
| tree | 92f266fc1f196de1c2aa97666ca3dec97954146e /addons/l10n_de | |
| parent | 1be50fdeafcd2b94f7b2f47d6e5bc4b6ebaceadd (diff) | |
[ADD] *: replace hardcoded data URIs with helper
- Add a method for generating an image data URI, and expose it in QWeb context
- Fix reports, website templates or mail templates with data hardcoded
data URIs, to use the helper (Python cases), or the existing
kanban_image helper (for JS cases)
This will gracefully handle SVG support in addition to classical image
formats.
Closes #26635
Diffstat (limited to 'addons/l10n_de')
| -rw-r--r-- | addons/l10n_de/report/din5008_report.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/l10n_de/report/din5008_report.xml b/addons/l10n_de/report/din5008_report.xml index ffd7ea97f83..84c03e9ccd8 100644 --- a/addons/l10n_de/report/din5008_report.xml +++ b/addons/l10n_de/report/din5008_report.xml @@ -39,7 +39,7 @@ <div class="float-right"> <h3 class="mt0 text-right" t-field="company.report_header"/> </div> - <img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % to_text(company.logo)" class="float-left"/> + <img t-if="company.logo" t-att-src="image_data_uri(company.logo)" class="float-left"/> </div> <div class="article din" t-att-data-oe-model="o and o._name" t-att-data-oe-id="o and o.id"> |
