[FIX] pos_loyalty: ensure partner name is printed on reprinted receipts

Before this commit, due to a recent change, the customer name was not
being printed on reprinted receipts. This was inconsistent with user
expectations, as they expected to see the customer name on the receipt,
regardless of whether a loyalty program was in place or not.

With this commit, we ensure that the customer name is always printed on
reprinted receipts, aligning the system behavior with user expectations.

opw-3760165

closes odoo/odoo#155543

Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
This commit is contained in:
Pedram (pebr)
2024-02-27 16:16:09 +00:00
parent 9853e5814e
commit 2e62a211a3
@@ -25,6 +25,8 @@
</t>
<br />
</div>
</t>
<t t-if="props.data.partner">
<br/>
<div>Customer <span t-esc='props.data.partner.name' class='pos-receipt-right-align'/></div>
</t>