Odoo Help


Private web page

on 3/7/16, 2:52 AM 830 views


I need to create private web pages. Then these pages have to be accessible only if user is connected. I do not find modules, but I must be wrong. Do you have any ressource to help me ?



 Else, if you want do it just for page form controller /page/xxx you can use the html editor (not user friendly) and add manually a groups="base.group_user" on your top html node.

(and manage the case where not in group to redirect or display a message)

isn't it groups="base.group_user"? also, never tested it, but I think you can set in on the view itself (ir.ui.view)

Fabien Pinckaers (fp)
on 3/7/16, 7:03 AM

oups, just updated my answer ! thank you for the reporting :)

Jérémy Kersten (jke)
on 3/7/16, 7:29 AM
Axel Mendoza
On 3/7/16, 3:09 AM

Hi @smorele

For that you just need to define a controller method for your url and decorate it passing the param auth with the value "user", like this Odoo example modified for that:

@http.route(['/robots.txt'], type='http', auth="user")

def robots(self):

return request.render('website.robots', {'url_root': request.httprequest.url_root}, mimetype='text/plain')

it's more complicated, I have to add dynamically this parameter function of page.

on 3/7/16, 3:46 AM

Also you could have one controller method url that it's decorated with auth="user" and redirect to that url if your page does not meet some requirement or condition. Like
return werkzeug.utils.redirect(url)

Axel Mendoza
on 3/7/16, 3:51 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 3/7/16, 2:52 AM
Seen: 830 times
Last updated: 3/7/16, 7:01 AM