HI,
How can I call and do menu action from front-end js ?
ie , if I click on a button it should perform job like when we click on a menu in back-end
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
HI,
How can I call and do menu action from front-end js ?
ie , if I click on a button it should perform job like when we click on a menu in back-end
Hi I got the solution..
One option is through like this, just create a link like
<a class="btn btn-primary" t-att-href="'/web#menu_id=%s&action=%s&id=%s&view_type=form&model=your_model' % (%(addon.menu_id)d, %(addon.action_id)d, your_res_id, )">Go to backend</a>
This will redirect to back- end
or use do_action() in odoo js
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 | |
---|---|---|---|---|
|
3
thg 12 22
|
19854 | ||
|
2
thg 12 19
|
7981 | ||
|
2
thg 5 24
|
2091 | ||
|
0
thg 7 19
|
4252 | ||
|
0
thg 7 19
|
8201 |