Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
3931 Lượt xem

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 ?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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

}


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Existing Object/Button ?

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhấ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 ?

Ảnh đại diện
Huỷ bỏ
Tác giả

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 ?

Tác giả

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 ?

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 12 23
2539
2
thg 11 20
11521
1
thg 2 24
8019
1
thg 4 17
3809
0
thg 12 15
3260