Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5936 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Tác giả

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?

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 23
3591
5
thg 8 25
9846
2
thg 7 25
976
4
thg 6 25
1103
1
thg 6 25
1432