From 9eb008dd772f07378e417cb00388bb4b0fad70dc Mon Sep 17 00:00:00 2001 From: vlst Date: Fri, 2 Jun 2023 16:58:51 +0000 Subject: [PATCH] [IMP] point_of_sale: Improve the flow of emailing gift cards The process of emailing _gift cards_ bought from the Point of Sale is rather confusing. This PR makes the experience more intuitive. closes odoo/odoo#123222 Task: 2711714 Signed-off-by: Joseph Caburnay (jcb) --- .../src/app/screens/receipt_screen/receipt_screen.js | 1 + .../src/app/screens/receipt_screen/receipt_screen.xml | 7 ++----- addons/point_of_sale/static/src/app/store/models.js | 5 +++++ addons/pos_loyalty/static/src/js/Loyalty.js | 8 ++++++++ addons/pos_loyalty/static/src/js/PaymentScreen.js | 1 + 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/addons/point_of_sale/static/src/app/screens/receipt_screen/receipt_screen.js b/addons/point_of_sale/static/src/app/screens/receipt_screen/receipt_screen.js index 252c729ada8..75353766522 100644 --- a/addons/point_of_sale/static/src/app/screens/receipt_screen/receipt_screen.js +++ b/addons/point_of_sale/static/src/app/screens/receipt_screen/receipt_screen.js @@ -54,6 +54,7 @@ export class ReceiptScreen extends AbstractReceiptScreen { } }); } + _addNewOrder() { this.pos.globalState.add_new_order(); } diff --git a/addons/point_of_sale/static/src/app/screens/receipt_screen/receipt_screen.xml b/addons/point_of_sale/static/src/app/screens/receipt_screen/receipt_screen.xml index de5be060010..4ec23e6efc4 100644 --- a/addons/point_of_sale/static/src/app/screens/receipt_screen/receipt_screen.xml +++ b/addons/point_of_sale/static/src/app/screens/receipt_screen/receipt_screen.xml @@ -13,7 +13,7 @@
-

How would you like to receive your receipt & invoice?

+

Payment Successful

Print Receipt @@ -21,7 +21,7 @@
- +