Skip to content

Commit 6e190f9

Browse files
committed
[FIX] survey_certification_branding: The certification mark image was not displayed on the survey certificate
1 parent f4f9b22 commit 6e190f9

File tree

4 files changed

+18
-27
lines changed

4 files changed

+18
-27
lines changed

survey_certification_branding/README.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.. image:: https://odoo-community.org/readme-banner-image
2-
:target: https://odoo-community.org/get-involved?utm_source=readme
3-
:alt: Odoo Community Association
4-
51
=============================
62
Survey Certification Branding
73
=============================
@@ -17,7 +13,7 @@ Survey Certification Branding
1713
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1814
:target: https://odoo-community.org/page/development-status
1915
:alt: Beta
20-
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
2117
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2218
:alt: License: AGPL-3
2319
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsurvey-lightgray.png?logo=github
@@ -85,6 +81,7 @@ Contributors
8581
------------
8682

8783
- Rolando Pérez Rebollo r.perez@binhex.cloud (https://binhex.cloud)
84+
- Edilio Escalona Almira e.escalona@binhex.cloud (https://binhex.cloud)
8885

8986
Maintainers
9087
-----------
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
- Rolando Pérez Rebollo <r.perez@binhex.cloud> (https://binhex.cloud)
2+
- Edilio Escalona Almira <e.escalona@binhex.cloud> (https://binhex.cloud)

survey_certification_branding/report/survey_report_templates.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@
3535
</xpath>
3636
<xpath expr="//span[@t-field='user_input.env.company.logo']" position="after">
3737
<t t-else="">
38-
<span
38+
<img
3939
class="certification-company-logo"
40-
t-field="user_input.survey_id.certification_logo_512"
41-
t-options="{'widget': 'image'}"
40+
t-att-src="image_data_uri(user_input.survey_id.certification_logo_512)"
4241
role="img"
4342
/>
4443
</t>
@@ -80,10 +79,9 @@
8079
</xpath>
8180
<xpath expr="//span[@t-field='user_input.env.company.logo']" position="after">
8281
<t t-else="">
83-
<span
82+
<img
8483
class="certification-company-logo"
85-
t-field="user_input.survey_id.certification_logo_512"
86-
t-options="{'widget': 'image'}"
84+
t-att-src="image_data_uri(user_input.survey_id.certification_logo_512)"
8785
role="img"
8886
/>
8987
</t>

survey_certification_branding/static/description/index.html

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6-
<title>README.rst</title>
6+
<title>Survey Certification Branding</title>
77
<style type="text/css">
88

99
/*
@@ -360,21 +360,16 @@
360360
</style>
361361
</head>
362362
<body>
363-
<div class="document">
363+
<div class="document" id="survey-certification-branding">
364+
<h1 class="title">Survey Certification Branding</h1>
364365

365-
366-
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367-
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368-
</a>
369-
<div class="section" id="survey-certification-branding">
370-
<h1>Survey Certification Branding</h1>
371366
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
372367
!! This file is generated by oca-gen-addon-readme !!
373368
!! changes will be overwritten. !!
374369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375370
!! source digest: sha256:bf66d7d6f1763ed45d7a781496e429c7b5fce2685a87639351e12799e946e56d
376371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/survey/tree/16.0/survey_certification_branding"><img alt="OCA/survey" src="https://img.shields.io/badge/github-OCA%2Fsurvey-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/survey-16-0/survey-16-0-survey_certification_branding"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/survey&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/survey/tree/16.0/survey_certification_branding"><img alt="OCA/survey" src="https://img.shields.io/badge/github-OCA%2Fsurvey-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/survey-16-0/survey-16-0-survey_certification_branding"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/survey&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378373
<p>This module extends the functionality of survey to support customization
379374
of certification reports. Specifically, it enables:</p>
380375
<ul class="simple">
@@ -398,7 +393,7 @@ <h1>Survey Certification Branding</h1>
398393
</ul>
399394
</div>
400395
<div class="section" id="usage">
401-
<h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
396+
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
402397
<ol class="arabic simple">
403398
<li>Go to the <strong>Surveys</strong> app.</li>
404399
<li>Open an existing survey or create a new one.</li>
@@ -412,29 +407,30 @@ <h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
412407
<p><img alt="Certification Branding Section" src="https://raw.githubusercontent.com/OCA/survey/16.0/survey_certification_branding/static/description/certification_branding_section.png" /></p>
413408
</div>
414409
<div class="section" id="bug-tracker">
415-
<h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
410+
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
416411
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/survey/issues">GitHub Issues</a>.
417412
In case of trouble, please check there if your issue has already been reported.
418413
If you spotted it first, help us to smash it by providing a detailed and welcomed
419414
<a class="reference external" href="https://github.com/OCA/survey/issues/new?body=module:%20survey_certification_branding%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
420415
<p>Do not contact contributors directly about support or help with technical issues.</p>
421416
</div>
422417
<div class="section" id="credits">
423-
<h2><a class="toc-backref" href="#toc-entry-3">Credits</a></h2>
418+
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
424419
<div class="section" id="authors">
425-
<h3><a class="toc-backref" href="#toc-entry-4">Authors</a></h3>
420+
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
426421
<ul class="simple">
427422
<li>Binhex</li>
428423
</ul>
429424
</div>
430425
<div class="section" id="contributors">
431-
<h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
426+
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
432427
<ul class="simple">
433428
<li>Rolando Pérez Rebollo <a class="reference external" href="mailto:r.perez&#64;binhex.cloud">r.perez&#64;binhex.cloud</a> (<a class="reference external" href="https://binhex.cloud">https://binhex.cloud</a>)</li>
429+
<li>Edilio Escalona Almira <a class="reference external" href="mailto:e.escalona&#64;binhex.cloud">e.escalona&#64;binhex.cloud</a> (<a class="reference external" href="https://binhex.cloud">https://binhex.cloud</a>)</li>
434430
</ul>
435431
</div>
436432
<div class="section" id="maintainers">
437-
<h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
433+
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
438434
<p>This module is maintained by the OCA.</p>
439435
<a class="reference external image-reference" href="https://odoo-community.org">
440436
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -447,6 +443,5 @@ <h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
447443
</div>
448444
</div>
449445
</div>
450-
</div>
451446
</body>
452447
</html>

0 commit comments

Comments
 (0)