Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
3882 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

Existing Object/Button ?

Avatar
Abbandona
Autore Risposta migliore

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
Abbandona
Autore

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 ?

Autore

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 ?

Post correlati Risposte Visualizzazioni Attività
3
dic 23
2489
2
nov 20
11474
1
feb 24
7999
1
apr 17
3784
0
dic 15
3235