Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5879 มุมมอง

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
ผู้เขียน

Thanks a lot!

ผู้เขียน คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ม.ค. 23
4830
0
ส.ค. 23
194
1
มี.ค. 23
3397
1
ต.ค. 22
8637
Odoo use which javascript framework? แก้ไขแล้ว
1
ก.พ. 22
2902