From bab0f44fd929e60784d41c5a4fa87df3d85f4d46 Mon Sep 17 00:00:00 2001 From: Cybrosys Technologies Date: Wed, 16 Oct 2024 11:37:36 +0530 Subject: [PATCH] Oct 16: [FIX] Bug fixed 'pos_invoice_automate' --- pos_invoice_automate/README.rst | 3 ++- pos_invoice_automate/doc/RELEASE_NOTES.md | 5 +++++ pos_invoice_automate/static/src/js/PaymentScreen.js | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pos_invoice_automate/README.rst b/pos_invoice_automate/README.rst index e375dd6b6..bd40b016b 100755 --- a/pos_invoice_automate/README.rst +++ b/pos_invoice_automate/README.rst @@ -24,7 +24,8 @@ General Public License, Version 3 (AGPL v3). Credits ------- -* Developers: (V16)Farhana Jahan PT @ cybrosys, Contact: odoo@cybrosys.com +* Developers: (V16)Farhana Jahan PT, +Contact: odoo@cybrosys.com Contacts -------- diff --git a/pos_invoice_automate/doc/RELEASE_NOTES.md b/pos_invoice_automate/doc/RELEASE_NOTES.md index b5c2616e9..f012efa85 100755 --- a/pos_invoice_automate/doc/RELEASE_NOTES.md +++ b/pos_invoice_automate/doc/RELEASE_NOTES.md @@ -3,3 +3,8 @@ #### Version 16.0.1.0.0 ##### ADD - Initial commit for POS Automate Invoice + +#### 15.10.2024 +#### Version 16.0.1.0.0 +##### Bug fixes +- Resolved the issue while validating the order diff --git a/pos_invoice_automate/static/src/js/PaymentScreen.js b/pos_invoice_automate/static/src/js/PaymentScreen.js index 0b2c385bd..ac6fee9af 100755 --- a/pos_invoice_automate/static/src/js/PaymentScreen.js +++ b/pos_invoice_automate/static/src/js/PaymentScreen.js @@ -2,6 +2,7 @@ odoo.define('pos_invoice_automate.PaymentScreen', function(require) { 'use strict'; const PaymentScreen = require('point_of_sale.PaymentScreen'); const Registries = require('point_of_sale.Registries'); + const { isConnectionError } = require('point_of_sale.utils'); var rpc = require('web.rpc'); const { useErrorHandlers, @@ -70,7 +71,7 @@ odoo.define('pos_invoice_automate.PaymentScreen', function(require) { // 1. Save order to server. syncOrderResult = await this.env.pos.push_single_order(this.currentOrder); // 2. Invoice. - if (this.shouldDownloadInvoice() && this.currentOrder.is_to_invoice()) { + if (this.currentOrder.is_to_invoice()) { if (syncOrderResult.length) { await this.env.legacyActionManager.do_action('account.account_invoices', { additional_context: {