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

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 

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

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

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

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 25
309
0
thg 12 24
977
2
thg 10 24
1104
1
thg 8 24
2221
2
thg 7 24
1483