Odoo Help

1

How to require login on users before acceding the website V9

By
Clément Larrieu
on 3/31/16, 5:31 AM 656 views

Hi,

I would like to know if I could display a login page to my users as a frontpage and deny the non-logged users access to the website.

I tried editing the access rights for "website" and "access_website_menu" with a specific group that all my users have, but if I change any of them (or both) I cannot access the login page.

Thanks for your help,


2

Ray Carnes

--Ray Carnes--
16611
| 9 7 9
Atlanta, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0.

Completed Odoo Functional and Technical Training.

Major Skills:

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

I am a skilled Communicator and I only take the serious things seriously!

Ray Carnes
On 4/10/16, 6:57 PM

Have you see the Website Security App?

"Give availability to restrict website menus and pages to some groups"

https://www.odoo.com/apps/modules/9.0/website_security/

Hi Ray, Thanks for the module name, I hadn't seen it yet. I installed it and I could hide the menu elements from an anonymous user. But it seems to work fine with pages, but when I tried to hide the shop (/shop) it hides it, but you can still access it if you enter the correct URL. Any idea what I am not doing right ? Cheers

Clément Larrieu
on 4/11/16, 3:28 AM
0
Ankit Gauri
On 3/31/16, 5:50 AM

Hello clement

if not request.session.uid:    
    return login_redirect()

you can write on your website controllers maybe it will work for v9 bcoz it works for v8 if user not login then it automatically redirect this to login page when user tries to access website

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.

Register

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

1 follower(s)

Stats

Asked: 3/31/16, 5:31 AM
Seen: 656 times
Last updated: 5/10/16, 4:08 PM