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