تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
6214 أدوات العرض

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
أغسطس 23
3869
1
سبتمبر 25
910
4
سبتمبر 25
5578
2
أغسطس 25
1798
2
أغسطس 25
1002