[FIX] pos_loyalty: ensure customer name prints without points activity

Since the update in https://github.com/odoo/odoo/commit/d4b366f2d741f2087a947d61d7e0618492cc2bf1, the POS loyalty program stopped
printing customer names on receipts for transactions without points won
or spent. Originally, printing a loyalty program also included the
customer's name, which users relied on to print the customer's name
on receipts.

This commit ensures the customer's name is printed on the receipt,
regardless of whether any loyalty points were won or spent.

opw-3620536

closes odoo/odoo#145629

X-original-commit: 57037253a472b4a25e2be6622c505a08b7f207ff
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
Signed-off-by: Pedram Bi Ria (pebr) <pebr@odoo.com>
This commit is contained in:
Pedram (PEBR)
2023-12-11 17:21:14 +00:00
parent 07fd47ab0b
commit ca94faef82
@@ -10,7 +10,6 @@
<div>--------------------------------</div>
<br/>
<div t-esc='_loyaltyStat.program.name' class="pos-receipt-title" />
<div t-esc='props.data.partner.name' />
<br />
</span>
<t t-if='_loyaltyStat.points.won'>
@@ -26,6 +25,8 @@
</t>
<br />
</div>
<br/>
<div>Customer <span t-esc='props.data.partner.name' class='pos-receipt-right-align'/></div>
</t>
<t t-if="props.data.new_coupon_info and props.data.new_coupon_info.length !== 0">
<div class="pos-coupon-rewards">