c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #26672
[Bug 798563] [NEW] return {'type':'ir.actions.act_window_close'} don't close view form in o2m relation
Public bug reported:
I add to sale.order new a field o2m to custom object B(osv.osv) . In view form of B, I add:
<button name="methon_my_close" type="object" string="Close object" icon="gtk-ok" /> or
<button name="methon_my_close" type="object" string="Close object" icon="gtk-ok" special="cancel"/>
In class B:
def methon_my_close(self, cr, uid, ids, context):
.
. custom code
.
return {'type':'ir.actions.act_window_close'}
GTK client close the popup windows, but NOT the web client (web client
show empty grey windows).
My platform and browser:
- Ubuntu 10.04 LTS 32 bits.
- Firefox 3.6.16.
- Web client: 6.0.3 updated with bzr 17 jun 2011.
thx, Carlos.
** Affects: openobject-client-web
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/798563
Title:
return {'type':'ir.actions.act_window_close'} don't close view form in
o2m relation
Status in OpenERP Web Client:
New
Bug description:
I add to sale.order new a field o2m to custom object B(osv.osv) . In view form of B, I add:
<button name="methon_my_close" type="object" string="Close object" icon="gtk-ok" /> or
<button name="methon_my_close" type="object" string="Close object" icon="gtk-ok" special="cancel"/>
In class B:
def methon_my_close(self, cr, uid, ids, context):
.
. custom code
.
return {'type':'ir.actions.act_window_close'}
GTK client close the popup windows, but NOT the web client (web client
show empty grey windows).
My platform and browser:
- Ubuntu 10.04 LTS 32 bits.
- Firefox 3.6.16.
- Web client: 6.0.3 updated with bzr 17 jun 2011.
thx, Carlos.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client-web/+bug/798563/+subscriptions
Follow ups
References