Odoo Help


Open a popup window from a popup window ?

on 10/6/14, 5:20 AM 2,026 views


How to open a new popup window from a button in a popup window without closing the current window.

i used this code but it close the current popup window:

def button_article(self, cr, uid, ids, context=None):
      ctx = (context or {}).copy()
      ctx['article'] = self.browse(cr, uid, ids[0], context=context).product_id.id
      ctx['form_view_ref'] = 'itk_entrepot.itk_entrepot_article_maj'
      if ctx['article'] :
          return {
      else : return True

<button name="button_article"    string="Article" type="object" class="oe_highlight" icon="article" />


What is your current window? Is it a popup? If it's, I think you can't have more than two popup.

Ben Bernard
on 10/6/14, 5:29 AM

Just to clarify, it's not possible with your method (server side), cmiiw. But you can create new instance.web.Dialog object to show new pop-up from javascript.

Ben Bernard
on 10/6/14, 10:59 AM

Hi Benard, it'is possible to open a popup window from a popup window, for example in one2many field on edit, a link appear in the right of the field wnd he open a new popup window you can try it

on 10/6/14, 11:17 AM

Can you give specific example?

Ben Bernard
on 10/6/14, 11:45 AM

Create a popup window which contains a many2one field and on edit click on the link which appers in the right of the many2one field , you can sea tha two popup window appears and the firs popup window dosen't been closed

on 10/6/14, 12:06 PM
On 10/6/14, 11:11 AM

Hi Kaisusr,

You can try this, I think it will help you
<button name="button_article"    string="Article" type="object" class="oe_highlight" icon="article" confirm="Do you want to confirm to close"/>

hi madhubabu, thanx for ur answer but this is not what i want to do

on 10/6/14, 11:18 AM

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

2 follower(s)


Asked: 10/6/14, 5:20 AM
Seen: 2026 times
Last updated: 3/16/15, 8:10 AM