[v6 RC1] domain sent as text instead of list in res_user.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Dhruti Shastri(OpenERP) |
Bug Description
with the GTK client:
I was trying to access the groups (administration-> users-> groups), then I clicked on "Internal user" group and got this error:
LSB Version: core-2.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-25-generic
Operating System Version : #45-Ubuntu SMP Sat Oct 16 19:48:22 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : en_GB.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0.0-rc1
Last revision No. & ID :1641 <email address hidden>
Traceback (most recent call last):
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/
res2 = self._columns[
File "/home/
ids2 = obj.search(cr, user, self._domain + [('id', '=', r[0])], context=context)
TypeError: cannot concatenate 'str' and 'list' objects
but it works well with the web client
to fix it you have to remove the quotes form line number 40 in res_user.py
which looks like this: 'group_id', 'rule_group_id', 'Rules', domain="[('global', '<>', True)]")
and should be : 'group_id', 'rule_group_id', 'Rules', domain=[('global', '<>', True)]),
the domain sent as text is admitted in the web client, but not in the GTK client
thnx
Changed in openobject-server: | |
assignee: | nobody → DHS(OpenERP) (dhs-openerp) |
Changed in openobject-server: | |
status: | New → Confirmed |
Changed in openobject-server: | |
milestone: | none → 6.0-rc2 |
and here's the patch