Odoo Help

Welcome!

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.

4

How to differentiate a portal user from normal users?

By
Vasanth
on 1/23/15, 12:15 AM 1,122 views

Hi all,

In the Users,there are some users appears.Among them i created a portal user by enable the "Portal" in the Access Rights tab.In the list view how can i know the specific user is a portal user or not?

In the Advanced view,if i search "portal is True" then i get the following error:

2015-01-23 04:54:27,130 3475 INFO Master werkzeug: 127.0.0.1 - - [23/Jan/2015 04:54:27] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2015-01-23 04:54:27,170 3475 ERROR Master openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
  File "/opt/openerp/v7.0/server/openerp/osv/osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/v7.0/server/openerp/osv/osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/v7.0/server/openerp/osv/osv.py", line 185, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/v7.0/server/openerp/osv/orm.py", line 2366, in search
    return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
  File "/opt/openerp/v7.0/server/openerp/osv/orm.py", line 4868, in _search
    query = self._where_calc(cr, user, args, context=context)
  File "/opt/openerp/v7.0/server/openerp/osv/orm.py", line 4697, in _where_calc
    e = expression.expression(cr, user, domain, self, context)
  File "/opt/openerp/v7.0/server/openerp/osv/expression.py", line 642, in __init__
    self.parse(cr, uid, context=context)
  File "/opt/openerp/v7.0/server/openerp/osv/expression.py", line 806, in parse
    raise ValueError("Invalid field %r in leaf %r" % (left, str(leaf)))
ValueError: Invalid field 'in_group_89' in leaf "<osv.ExtendedLeaf: ('in_group_89', '=', True) on res_users (ctx: )>"
2015-01-23 04:54:27,170 3475 ERROR Master openerp.netsvc: Invalid field 'in_group_89' in leaf "<osv.ExtendedLeaf: ('in_group_89', '=', True) on res_users (ctx: )>"

 

How can i resolve this error? Is there a way to identify in list view?.

1

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
3883
| 5 3 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 1/23/15, 4:26 AM

Your code is out-of-sync.  So, I would advice you to update your OpenERP/odoo code.
Also, this issue has been resolved.  For more info: https://bugs.launchpad.net/openobject-server/+bug/1114949

To search for Portal users, you could try groups contains "Portal".

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

3 follower(s)

Stats

Asked: 1/23/15, 12:15 AM
Seen: 1122 times
Last updated: 6/27/16, 2:52 AM