Browse Source

Oct 16: [FIX] Bug fixed 'pos_invoice_automate'

pull/345/merge
Cybrosys Technologies 6 months ago
parent
commit
bab0f44fd9
  1. 3
      pos_invoice_automate/README.rst
  2. 5
      pos_invoice_automate/doc/RELEASE_NOTES.md
  3. 3
      pos_invoice_automate/static/src/js/PaymentScreen.js

3
pos_invoice_automate/README.rst

@ -24,7 +24,8 @@ General Public License, Version 3 (AGPL v3).
Credits Credits
------- -------
* Developers: (V16)Farhana Jahan PT @ cybrosys, Contact: odoo@cybrosys.com * Developers: (V16)Farhana Jahan PT,
Contact: odoo@cybrosys.com
Contacts Contacts
-------- --------

5
pos_invoice_automate/doc/RELEASE_NOTES.md

@ -3,3 +3,8 @@
#### Version 16.0.1.0.0 #### Version 16.0.1.0.0
##### ADD ##### ADD
- Initial commit for POS Automate Invoice - Initial commit for POS Automate Invoice
#### 15.10.2024
#### Version 16.0.1.0.0
##### Bug fixes
- Resolved the issue while validating the order

3
pos_invoice_automate/static/src/js/PaymentScreen.js

@ -2,6 +2,7 @@ odoo.define('pos_invoice_automate.PaymentScreen', function(require) {
'use strict'; 'use strict';
const PaymentScreen = require('point_of_sale.PaymentScreen'); const PaymentScreen = require('point_of_sale.PaymentScreen');
const Registries = require('point_of_sale.Registries'); const Registries = require('point_of_sale.Registries');
const { isConnectionError } = require('point_of_sale.utils');
var rpc = require('web.rpc'); var rpc = require('web.rpc');
const { const {
useErrorHandlers, useErrorHandlers,
@ -70,7 +71,7 @@ odoo.define('pos_invoice_automate.PaymentScreen', function(require) {
// 1. Save order to server. // 1. Save order to server.
syncOrderResult = await this.env.pos.push_single_order(this.currentOrder); syncOrderResult = await this.env.pos.push_single_order(this.currentOrder);
// 2. Invoice. // 2. Invoice.
if (this.shouldDownloadInvoice() && this.currentOrder.is_to_invoice()) { if (this.currentOrder.is_to_invoice()) {
if (syncOrderResult.length) { if (syncOrderResult.length) {
await this.env.legacyActionManager.do_action('account.account_invoices', { await this.env.legacyActionManager.do_action('account.account_invoices', {
additional_context: { additional_context: {

Loading…
Cancel
Save