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

I need to restrict some pages to be accessible only to users that are logged in. Like \shop or \partners etc.


How do I do this? I know I could overwrite controllers but it seems like a bad idea, because I would need to copy whole controller to my custom module and other inheriting modules would brake.


Using Odoo 13


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

Hey Ray, thanks for the comment.

I also just found out how to override a Controller like in this module:

https://github.com/OCA/e-commerce/blob/12.0/website_sale_require_login/controllers/main.py

Which method is better in your opinion?

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 23
3653
2
ส.ค. 25
518
5
ส.ค. 25
10010
Carrusel en sitios web แก้ไขแล้ว
2
ก.ค. 25
1056
How to launch my website แก้ไขแล้ว
4
มิ.ย. 25
1209