def new_program_batch_wizard(self):
form_id = self.env.ref('my_module.view_program_batch_wizard', False)
return { 'name': 'New batch in this session',
'view_type': 'form', 'view_mode': 'form',
'res_model': 'new.program.batch.wizard',
'view_id' : form_id.id,
'type': 'ir.actions.act_window',
'target': 'new',
'context' :{ 'default_program_session_id': self.id, 'default_program_batch_semester_id': '', 'default_call_from': 'session',
'domain': {'default_program_template_id': [('program_level','=',self.program_level_id.id)]},
}}