[FIX] point_of_sale: solved 'false' is shown as name in the template

Before this comment if a client had no name, false
was displayed instead of an empty string in the
user list.

Steps to reproduce:
1) Take a database with PoS.
2) Change a contact type to Delivery Address and then remove its name
3) Open PoS and click on the Customer.

Result:
- In the name column 'false' is shown instead of ''

If there's no name I'm showing an empty string

opw-2683482

closes odoo/odoo#80557

X-original-commit: 0482c6ffe5fafe9c76debe92ac0b458d36d1ecdb
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
This commit is contained in:
Federico (fega)
2021-11-30 10:22:15 +00:00
parent ff4ca4fa90
commit e81788f877
2 changed files with 2 additions and 2 deletions
@@ -13,7 +13,7 @@
</t>
<input type="file" class="image-uploader" t-on-change="uploadImage" />
</div>
<input class="detail client-name" name="name" t-att-value="props.partner.name"
<input class="detail client-name" name="name" t-att-value="props.partner.name or ''"
placeholder="Name" t-on-change="captureChange" />
<div class="client-details-box clearfix">
<div class="client-details-left">
@@ -5,7 +5,7 @@
<tr t-attf-class="client-line {{highlight}}" t-att-data-id="props.partner.id"
t-on-click="trigger('click-client', {client: props.partner})">
<td>
<t t-esc="props.partner.name" />
<t t-esc="props.partner.name or ''" />
<span t-if="highlight">
<br/><button class="edit-client-button" t-on-click.stop="trigger('click-edit')">EDIT</button>
</span>