[IMP] survey: display certification number based on ID
This commit displays dynamic certification number based on the ID of certification record for both modern and classic layouts. It consists in minimum 10 digits. It means that if the ID of the record is 5 it is displayed as 0000000005. Task ID-2341847 COM PR odoo/odoo#66028
This commit is contained in:
committed by
Thibault Delavallée
parent
ae4435af84
commit
45b448af99
@@ -36,7 +36,9 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="certification-number" t-if="user_input.scoring_success">Certification n°1234567890 </div>
|
||||
<div class="certification-number" t-if="user_input.scoring_success">
|
||||
Certification n°<t t-esc="str(user_input.id).rjust(10, '0')"/>
|
||||
</div>
|
||||
</div>
|
||||
<div t-if="user_input.test_entry" class="test-entry"/>
|
||||
</div>
|
||||
@@ -77,7 +79,9 @@
|
||||
<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"/>
|
||||
</div>
|
||||
<div class="certification-number" t-if="user_input.scoring_success">Certification n°1234567890 </div>
|
||||
<div class="certification-number" t-if="user_input.scoring_success">
|
||||
Certification n°<t t-esc="str(user_input.id).rjust(10, '0')"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user