İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
3870 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
En İyi Yanıt

Existing Object/Button ?

Avatar
Vazgeç
Üretici En İyi Yanıt

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
Vazgeç
Üretici

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 ?

Üretici

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 ?

İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Ara 23
2483
2
Kas 20
11470
1
Şub 24
7996
1
Nis 17
3779
0
Ara 15
3235