Odoo Help

Welcome!

This community 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.

0

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

By
supreeth
on 12/22/15, 5:53 AM 303 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,
'target':'new',
}        

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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