Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
5915 Visualizzazioni

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


Avatar
Abbandona
Autore

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?

Post correlati Risposte Visualizzazioni Attività
1
ago 23
3574
5
ago 25
9779
2
lug 25
945
4
giu 25
1063
1
giu 25
1383