[FIX] website_slides_survey: fix certified correctly replacing members in kanban view
SPECIFICATIONS Before this commit, installing survey would replace the number of done members by its label. Now the number of members who completed the course will be displayed correctly. LINKS Task 1978731 PR #33255
This commit is contained in:
committed by
Thibault Delavallée
parent
b37243b85f
commit
5f4c7c5afa
@@ -298,7 +298,7 @@
|
||||
<div class="col-4">
|
||||
<a name="action_redirect_to_done_members" type="object" class="d-flex flex-column align-items-center">
|
||||
<span class="font-weight-bold"><field name="members_done_count"/></span>
|
||||
<span class="text-secondary">Finished</span>
|
||||
<span name="done_members_count_label" class="text-secondary">Finished</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
<xpath expr="//field[@name='website_published']" position="after">
|
||||
<field name="nbr_certification"/>
|
||||
</xpath>
|
||||
<xpath expr="//a[@name='action_redirect_to_done_members']/span" position="replace">
|
||||
<t t-if="record.nbr_certification.raw_value"><span class="text-uppercase">Certified</span></t>
|
||||
<t t-else=""><span class="text-uppercase">Finished</span></t>
|
||||
<xpath expr="//span[@name='done_members_count_label']" position="replace">
|
||||
<t t-if="record.nbr_certification.raw_value"><span class="text-secondary">Certified</span></t>
|
||||
<t t-else=""><span class="text-secondary">Finished</span></t>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user