Hello all,
In the file pos.xml, I'm able to display the customer name on the receipt. But if no customer is selected for the order, I get this error :
Error: QWeb2 - template['PosTicket']: Runtime Error: TypeError: dict.order.changed.client is null
How to write a condition to check if client.name is null or not? My condition doesn't work...
<h5>
<t t-if="order.changed.client.name is not null">
| Client : <t t-esc="order.changed.client.name || 'Client anonyme'"/> |
</t>
</h5>
Do you know how to fix it please?