Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
3865 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Meilleure réponse

Existing Object/Button ?

Avatar
Ignorer
Auteur Meilleure réponse

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
Ignorer
Auteur

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 ?

Auteur

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 ?

Publications associées Réponses Vues Activité
3
déc. 23
2482
2
nov. 20
11466
1
févr. 24
7995
1
avr. 17
3778
0
déc. 15
3234