[FIX] payment: if image is missing icon view will crash
closes odoo/odoo#93533 X-original-commit: e0fe725df5e2522c1abf3e7c1fec6f3c1696e35c Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com> Signed-off-by: Wolfgang Taferner <w.taferner@wtioit.at>
This commit is contained in:
@@ -263,7 +263,7 @@
|
||||
<t t-set="MAX_ICONS" t-value="3"/>
|
||||
<!-- === Icons === -->
|
||||
<!-- Only shown if in the first 3 icons -->
|
||||
<t t-foreach="acquirer.payment_icon_ids" t-as="icon">
|
||||
<t t-foreach="acquirer.payment_icon_ids.filtered(lambda r: r.image_payment_form)" t-as="icon">
|
||||
<li t-attf-class="list-inline-item{{'' if (icon_index < MAX_ICONS) else ' d-none'}}">
|
||||
<span t-esc="icon.image_payment_form"
|
||||
t-options="{'widget': 'image', 'alt-field': 'name'}"
|
||||
|
||||
Reference in New Issue
Block a user