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

I used this video (https://www.youtube.com/watch?v=H-iFhOh1tOE) as a reference as well as the github repo available in the comments to build a small js app. It consists of the main widget that has the core methods (init, start...etc) as well as the template views. Now, I created a menuitem as well, and I would like odoo to redirect to a route (/myApp/index/) when I click on the menuitem, instead of displaying a tree/form view the way we useally do it. The route is handled by a web controller that renders the main template. How can I force a menuItem to follow the route that leads to my App?

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

Hi,

Can you check the usage of ir.actions.act_url

Doc: https://www.odoo.com/documentation/11.0/reference/actions.html#url-actions-ir-actions-act-url

Thanks

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

Thanks a lot!

Tác giả Câu trả lời hay nhất

Thanks, @Cybrosys, that's exactly what I was looking for!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 23
4818
0
thg 8 23
194
1
thg 3 23
3379
1
thg 10 22
8628
1
thg 2 22
2887