[FIX] point_of_sale: receipt printing available for offline mode

closes odoo/odoo#72331

X-original-commit: 5f7cd8e660c6e94baefa6ad586c73d389e09e011
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
Esam Hussein
2021-06-21 06:28:09 +00:00
committed by Joseph Caburnay
parent d2a8dc9a6d
commit f5e748bb96
2 changed files with 11 additions and 0 deletions
@@ -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 {
+9
View File
@@ -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