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

In a multi-company, multi-website setup, is there a simple way to only enable ecommerce on one website? Additionally, I would like to redirect traffic from the website without ecommerce to the shop of the other website. 


Right now, the best solution I can find is to install website_sale, then customize the website to remove the ecommerce bits or direct to the other website.

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

Hi,


See this: 

How to hide website menu to different user groups using odoo base functionality

Link: https://youtu.be/zHPtb1SR8Sk


I hope this link will help you

อวตาร
ละทิ้ง

Please format your link as link for convenience and add a description to the link, posting unidentifiable links without any explaining comment is bad.

ผู้เขียน

I did check the linked video and found it shows how to show /hide menus, but I think a user could navigate to `/shop directly`, bypassing the menu, so not sure if it is completely what I am looking for.

If you want to completely block some URL then you can check access rights in controller. you can check user type and user has some access groups or not. user.has_group('group_name') is used in this case

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 20
3906
1
พ.ย. 19
2614
2
ต.ค. 24
5896
0
พ.ค. 23
2152
Odoo 13 Multiwebsite with nginx แก้ไขแล้ว
1
มิ.ย. 22
8201