Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
3866 Vizualizări

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 ?

Imagine profil
Abandonează
Cel mai bun răspuns

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

}


Imagine profil
Abandonează
Cel mai bun răspuns

Existing Object/Button ?

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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 ?

Imagine profil
Abandonează
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 Răspunsuri Vizualizări Activitate
3
dec. 23
2482
2
nov. 20
11466
1
feb. 24
7995
1
apr. 17
3778
0
dec. 15
3235