Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
3641 Vistas

Hi ! someone can tell me how to display view from a button having type="object" ? In other words, how to display view from a method ?

Avatar
Descartar
Mejor respuesta

Your method should return an action, something like this:

       

return {

'name': _(u"Eventos Eletrônicos"),

'view_mode': 'form',

'view_id': view[1],

'view_type': 'form',

'res_model': 'l10n_br_account.document_event',

'res_id': last_event,

'type': 'ir.actions.act_window',

'nodestroy': True,

'target': 'new',

'domain': '[]',

'context': None

}


Avatar
Descartar
Mejor respuesta

Existing Object/Button ?

Avatar
Descartar
Autor Mejor respuesta

Danimar Ribeiro : Thank you very much :) so the view it can be not attached to database ? I meant can I display a tree view which contain a list which not a table in database ?

Avatar
Descartar
Autor

Danimar Ribeiro : so the view it can be not attached to database ? I meant can I display a tree view which contain a list which not a table in database ?

Autor

Danimar Ribeiro : Thank you very much :) so the view it can be not attached to database ? I meant can I display a tree view which contain a list which not a table in database ?

Publicaciones relacionadas Respuestas Vistas Actividad
3
dic 23
2258
2
nov 20
11317
1
feb 24
7859
1
abr 17
3544
0
dic 15
3138