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
-------
* Developers: (V16)Farhana Jahan PT @ cybrosys, Contact: odoo@cybrosys.com
* Developers: (V16)Farhana Jahan PT,
Contact: odoo@cybrosys.com
Contacts
--------

5
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

3
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: {

Loading…
Cancel
Save