Odoo Help


How to get form/pop-up when we click on 'Save' button?

on 12/22/15, 5:53 AM 694 views

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,

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 12/22/15, 5:53 AM
Seen: 694 times
Last updated: 12/22/15, 5:57 AM