It is currently Mon May 21, 2012 7:07 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: I want to close the popup screen in openerp6 using py file
PostPosted: Sat Jan 29, 2011 1:52 pm 
Offline

Joined: Tue Jun 16, 2009 6:08 am
Posts: 105
Hi,

We have created one popup in openerp6 using the same structure of openerp. We got popup well. But we cant close that popup automatically from python code.

We tried in py file as "self.close()" , but it shows error,

Error message : '' object has no attribute 'Close' .

What we can do for using self.close() ?

Any thing we need to import ?

Thanks


Top
 Profile  
 
 Post subject: Re: I want to close the popup screen in openerp6 using py f
PostPosted: Wed Feb 02, 2011 9:03 am 
Offline

Joined: Tue Jun 16, 2009 6:08 am
Posts: 105
I used the following command to close the popup.

return {'type':'ir.actions.act_window_close' }

Thanks


Top
 Profile  
 
 Post subject: Re: I want to close the popup screen in openerp6 using py f
PostPosted: Tue Jun 21, 2011 6:03 pm 
Offline

Joined: Fri May 28, 2010 10:33 am
Posts: 409
Thx, nice tip

Juanjo A

_________________
Formación online OpenERP - Programación módulos - Apoyo instalación
http://www.malagatic.com @malagatic


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP