Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3 Vastaukset
3884 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Paras vastaus

Existing Object/Button ?

Avatar
Hylkää
Tekijä Paras vastaus

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
Hylkää
Tekijä

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 ?

Tekijä

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 ?

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
jouluk. 23
2490
2
marrask. 20
11474
1
helmik. 24
7999
1
huhtik. 17
3784
0
jouluk. 15
3235