[FIX] survey: Use correct company in certification
Before this PR when you accessed a certification through one company and passed it, the certification pdf was under the name of another company. opw-2577532 closes odoo/odoo#75669 X-original-commit: 9f4fafee95e1f621a0d0b3a8bd5da6d059fa20c6 Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
</t>
|
||||
<span t-att-style="certif_style" class="user-name" t-esc="certified_name"/>
|
||||
|
||||
<br/>by <span class="certification-company" t-field="user_input.survey_id.create_uid.company_id.display_name"/> for successfully completing
|
||||
<br/>by <span class="certification-company" t-field="user_input.env.company.display_name"/> for successfully completing
|
||||
<br/><b><span class="certification-name" t-field="user_input.survey_id.display_name"/></b>
|
||||
</p>
|
||||
</div>
|
||||
@@ -41,7 +41,7 @@
|
||||
<span>Date</span>
|
||||
</div>
|
||||
<div class="certification-company">
|
||||
<span class="certification-company-logo" t-field="user_input.survey_id.create_uid.company_id.logo" t-options="{'widget': 'image'}" role="img"/>
|
||||
<span class="certification-company-logo" t-field="user_input.env.company.logo" t-options="{'widget': 'image'}" role="img"/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -80,7 +80,7 @@
|
||||
</t>
|
||||
<span t-att-style="certif_style" class="user-name" t-esc="certified_name"/>
|
||||
|
||||
<br/>by <span class="certification-company" t-field="user_input.survey_id.create_uid.company_id.display_name"/>
|
||||
<br/>by <span class="certification-company" t-field="user_input.env.company.display_name"/>
|
||||
for successfully completing
|
||||
<br/><b><span class="certification-name" t-field="user_input.survey_id.display_name"/></b>
|
||||
</p>
|
||||
@@ -97,7 +97,7 @@
|
||||
</div>
|
||||
<div class="certification-seal"/>
|
||||
<div class="certification-company">
|
||||
<span class="certification-company-logo" t-field="user_input.survey_id.create_uid.company_id.logo" t-options="{'widget': 'image'}" role="img"/>
|
||||
<span class="certification-company-logo" t-field="user_input.env.company.logo" t-options="{'widget': 'image'}" role="img"/>
|
||||
</div>
|
||||
<div class="certification-number" t-if="user_input.scoring_success">
|
||||
Certification n°<t t-esc="str(user_input.id).rjust(10, '0')"/>
|
||||
|
||||
Reference in New Issue
Block a user