From f5e748bb9624a68de58d95fd808d0968abb9c192 Mon Sep 17 00:00:00 2001 From: Esam Hussein Date: Wed, 16 Jun 2021 14:39:27 +0000 Subject: [PATCH] [FIX] point_of_sale: receipt printing available for offline mode closes odoo/odoo#72331 X-original-commit: 5f7cd8e660c6e94baefa6ad586c73d389e09e011 Signed-off-by: pimodoo --- .../static/src/js/Screens/PaymentScreen/PaymentScreen.js | 2 ++ doc/cla/individual/EsamHussein.md | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 doc/cla/individual/EsamHussein.md diff --git a/addons/point_of_sale/static/src/js/Screens/PaymentScreen/PaymentScreen.js b/addons/point_of_sale/static/src/js/Screens/PaymentScreen/PaymentScreen.js index 32ed47e058a..553309cdf1d 100644 --- a/addons/point_of_sale/static/src/js/Screens/PaymentScreen/PaymentScreen.js +++ b/addons/point_of_sale/static/src/js/Screens/PaymentScreen/PaymentScreen.js @@ -182,6 +182,8 @@ odoo.define('point_of_sale.PaymentScreen', function (require) { syncedOrderBackendIds = await this.env.pos.push_single_order(this.currentOrder); } } catch (error) { + if (error.code == 700) + this.error = true; if (error instanceof Error) { throw error; } else { diff --git a/doc/cla/individual/EsamHussein.md b/doc/cla/individual/EsamHussein.md new file mode 100644 index 00000000000..d2381e88fff --- /dev/null +++ b/doc/cla/individual/EsamHussein.md @@ -0,0 +1,9 @@ +Egypt, 2021-06-14 + +I hereby agree to the terms of the Odoo Individual Contributor License Agreement v1.0. + +I declare that I am authorized and able to make this agreement and sign this declaration. + +Signed, + +Esam Hussein esam.n.hussein@gmail.com https://github.com/esamhussein \ No newline at end of file