Odoo Help


This community 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.


Private web page

on 3/7/16, 2:52 AM 368 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 ?



Jérémy Kersten (jke)

--Jérémy Kersten (jke)--
| 3 2 5
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013. He developed several projects for OpenERP version 8 including the eCommerce, the Google Calendar synchronization and the new product variants/configurator. Now, he manages Odoo website and themes for saas.

Jérémy Kersten (jke)
On 3/7/16, 3:33 AM

 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

--Axel Mendoza--
| 6 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


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