I am trying to get a form/pop-up when i click on 'Save' button.
How can we do this?
What i tried is:
def create(self, cr, uid, ids, context=None):
global globvar
globvar = 1
view_ref = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'cornerstone', 'enroll_program')
view_id = view_ref and view_ref[1] or False
return {
'type': 'ir.actions.act_window',
'name': _('If required add another Program for Learner'),
'res_model': 'learner.info',
'view_type': 'form',
'res_id': ids[0], # this will open particular Learner Details,
'view_id': view_id,
'view_mode': 'form',
'nodestroy': True,
'target':'new',
}