跳至内容
菜单
此问题已终结
3 回复
3867 查看

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
2482
2
11月 20
11466
1
2月 24
7995
1
4月 17
3778
0
12月 15
3235