Community mailing list archives

community@mail.odoo.com

RE: Website - Check if user has backend/employee priviledges

by
hans.yonathan
- 03/24/2016 22:41:08

Its not a simple checkbox field but its on the user access right,

<img width=1205 height=758 id="Picture_x0020_1" src="cid:image001.jpg@01D18682.D6EF1C00">

 

Thank You.

 

Best Regards,

Hans Yonathan

CTO

FALINWA Limited

Expert in Finance, Information System & Business Intelligence

Odoo Silver Partner

Website: www.falinwa.com

Tel. 13670137019 (China - Shenzhen)

 

From: Ryan Cole [mailto:ryan_cole@zorb.com]
Sent: Friday, March 25, 2016 10:37 AM
To: Community <community@mail.odoo.com>
Subject: Re: Website - Check if user has backend/employee priviledges

 

Hey Hans,

 

How would I check this? I've just looked at res.users and res.partners and neither of them have a portal/public field.

 

 

Cheers,

Ryan

 


From: "Hans Yonathan" <hans.yonathan@falinwa.com>
To: "Community" <community@mail.odoo.com>
Sent: Friday, March 25, 2016 3:31:59 PM
Subject: RE: Website - Check if user has backend/employee priviledges

 

You can check it if user has a portal/public or not, if portal/public it means it should not have backend access.

 

Thank You.

 

Best Regards,

Hans Yonathan

CTO

FALINWA Limited

Expert in Finance, Information System & Business Intelligence

Odoo Silver Partner

Website: www.falinwa.com

Tel. 13670137019 (China - Shenzhen)

 

From: MGinshe [mailto:mginshe@gmail.com]
Sent: Friday, March 25, 2016 10:23 AM
To: Community <community@mail.odoo.com>
Subject: Website - Check if user has backend/employee priviledges

 

Is it possible to determine if the currently logged in user has backend access?

 

I'm building a website with custom navbar, which needs to be offset slightly to make room for the Odoo backend menubar. Is there a way to do this from within a theme module (preferably using a qweb <t t-if> statement).

 

 

Cheers,

Ryan

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

 

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe