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.
		
		
		
		
		
			
		
			
				
					
					
						
							13 lines
						
					
					
						
							483 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							13 lines
						
					
					
						
							483 B
						
					
					
				| 
 | |
| from odoo import api, fields, models, _ | |
| 
 | |
| 
 | |
| class OngoingSession(models.TransientModel): | |
|     _name = 'pos.sale.posted.wizard' | |
|     _description = 'Point of Sale Posted Session Report' | |
| 
 | |
|     session_ids = fields.Many2many('pos.session', string='POS Sessions', domain=[('state', '=', 'closed')]) | |
| 
 | |
|     def generate_report(self): | |
|         data = {'session_ids': self.session_ids.ids} | |
|         return self.env.ref('advanced_pos_reports.pos_posted_sessions_report').report_action([], data=data) |