[FIX] *: field shouldn't use props.value

We forget to remove few 'props.value' in 688986f888.
We should replace it by 'props.record.data[props.name]'.

closes odoo/odoo#114785

Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
This commit is contained in:
FrancoisGe
2023-03-09 15:55:04 +01:00
parent ba8bba2add
commit 4ba49c93ec
2 changed files with 1 additions and 4 deletions
@@ -54,9 +54,6 @@
</div>
</t>
</t>
<div role="search" position="attributes">
<attribute name="t-if">props.value.count > props.value.limit</attribute>
</div>
</t>
<t t-name="loyalty.LoyaltyCardListView.buttons" owl="1" t-inherit-mode="primary" t-inherit="web.ListView.Buttons">
@@ -4,7 +4,7 @@
<t t-name="sms.SendSMSButton" owl="1">
<a
t-att-title="title"
t-att-href="'sms:'+props.value"
t-att-href="'sms:'+ props.record.data[props.name]"
t-on-click.prevent.stop="onClick"
class="ms-3 d-inline-flex align-items-center o_field_phone_sms"
><i class="fa fa-mobile"></i><small class="fw-bold ms-1">SMS</small></a>