コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
3858 ビュー

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 ?

アバター
破棄
最善の回答

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

}


アバター
破棄
最善の回答

Existing Object/Button ?

アバター
破棄
著作者 最善の回答

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 ?

アバター
破棄
著作者

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 ?

著作者

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 ?

関連投稿 返信 ビュー 活動
3
12月 23
2475
2
11月 20
11461
1
2月 24
7994
1
4月 17
3776
0
12月 15
3234