Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
6231 Widoki

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


Awatar
Odrzuć
Autor

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?

Powiązane posty Odpowiedzi Widoki Czynność
1
sie 23
3883
1
wrz 25
943
4
wrz 25
5595
2
sie 25
1824
2
sie 25
1017