Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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...
<t t-if="order.changed.client.name is not null">
| Client : <t t-esc="order.changed.client.name || 'Client anonyme'"/> |
Do you know how to fix it please?
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 10/8/15, 7:27 PM|
|Seen: 1332 times|
|Last updated: 10/27/15, 9:42 AM|