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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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..
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký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 |