콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
3936 화면

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
2546
2
11월 20
11525
1
2월 24
8024
1
4월 17
3814
0
12월 15
3262