You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							783 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							22 lines
						
					
					
						
							783 B
						
					
					
				
								/** @odoo-module */
							 | 
						|
								
							 | 
						|
								import { registry } from "@web/core/registry";
							 | 
						|
								import { download } from "@web/core/network/download";
							 | 
						|
								import framework from 'web.framework';
							 | 
						|
								import session from 'web.session';
							 | 
						|
								
							 | 
						|
								registry.category("ir.actions.report handlers").add("xlsx", async (action) => {
							 | 
						|
								    if (action.report_type === 'xlsx') {
							 | 
						|
								        framework.blockUI();
							 | 
						|
								        var def = $.Deferred();
							 | 
						|
								        console.log('sdcscvdcvdcdcdcbdcddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd');
							 | 
						|
								        session.get_file({
							 | 
						|
								            url: '/xlsx_reports',
							 | 
						|
								            data: action.data,
							 | 
						|
								            success: def.resolve.bind(def),
							 | 
						|
								//            error: (error) => this.call('crash_manager', 'rpc_error', error),
							 | 
						|
								            complete: framework.unblockUI,
							 | 
						|
								        });
							 | 
						|
								        return def;
							 | 
						|
								    }
							 | 
						|
								});
							 | 
						|
								
							 |