İçereği Atla
Menü
Bu soru işaretlendi
5879 Görünümler

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


Avatar
Vazgeç
Üretici

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?

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Ağu 23
3542
5
Ağu 25
9737
2
Tem 25
900
4
Haz 25
1020
1
Haz 25
1334