コンテンツへスキップ
メニュー
この質問にフラグが付けられました
5939 ビュー

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?

関連投稿 返信 ビュー 活動
1
8月 23
3592
5
8月 25
9855
2
7月 25
984
4
6月 25
1104
1
6月 25
1435