Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
3871 มุมมอง

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 ?

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ธ.ค. 23
2483
2
พ.ย. 20
11470
search_default does not work?.. แก้ไขแล้ว
1
ก.พ. 24
7996
1
เม.ย. 17
3779
0
ธ.ค. 15
3235