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

Hi good day everyone!


I just want to ask how can I call a form view from button with js function in odoo 10.


Thank you very in advance for your answers.


Sincerely yours,

Jhonnel 

아바타
취소
베스트 답변

Hi,

You can call the do_action in your button function to display the form view; see an example below.

this.do_action({

            type: 'ir.actions.act_window',

            Name: sale order,

            res_model: sale.order',

    res_id: 1,

            view_type: 'form',

            view_mode: 'form',

            target: 'new',

        })


Hope it helps

아바타
취소
작성자

Thank you very much.. it works on me..

관련 게시물 답글 화면 활동
2
7월 25
476
0
12월 24
1091
2
10월 24
1195
1
8월 24
2354
2
7월 24
1592