Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
5959 Переглядів

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
3622
2
серп. 25
271
5
серп. 25
9947
Carrusel en sitios web Вирішено
2
лип. 25
1019
4
черв. 25
1153