c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #03680
[Bug 630051] Re: button in list view
This has been handled gracefully on trunk.
For stable, I set the relevant status.
Thanks.
** Changed in: openobject-client-web
Status: Confirmed => Won't Fix
--
button in list view
https://bugs.launchpad.net/bugs/630051
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Web Client: Won't Fix
Bug description:
In WEB CLIENT : STABLE 5.0.14
Button in list view of type object returning a view is not functioning properly, nothing happens when clicked while it is in list view. Same thing working with GTK client and FORM View in Web Client but not in List view.
<button name="_open_partner" string="Open Partner" type="object" icon="STOCK_APPLY"/>
special="open" is also been tried, but no success
def _open_partner(self,cr,uid,ids,context={}):
obj_model = self.pool.get('ir.model.data')
model_data_ids = obj_model.search(cr,uid,[('model','=','ir.ui.view'),('name','=','view_partner_tree')])
resource_id = obj_model.read(cr, uid, model_data_ids, fields=['res_id'])[0]['res_id']
return {
'view_type': 'form',
'view_mode': 'tree,form',
'res_model': 'res.partner',
'view_id':[resource_id],
'type': 'ir.actions.act_window',
'target':'new',
'context':context,
}