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