Skip to Content
Menú
This question has been flagged
3 Respostes
3861 Vistes

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
Best Answer

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
Best Answer

Existing Object/Button ?

Avatar
Descartar
Autor Best Answer

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 ?

Related Posts Respostes Vistes Activitat
3
de des. 23
2477
2
de nov. 20
11464
1
de febr. 24
7994
1
d’abr. 17
3778
0
de des. 15
3234