c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #18242
[Bug 728100] Re: many2many selection in search view not filtering
Hello,
Wth this code i'm getting:
325 val = value.split('selection_')[1]
326
327 domain.append(field, '=', val)
328 search_data[field] = val
329 else:
domain = []
domain.append = <built-in method append of list object>
field = 'groups_id'
val = 2
<type 'exceptions.TypeError'>: append() takes exactly one argument (3 given)
__class__ = <type 'exceptions.TypeError'>
but managed to fix it. change line 327 from:
domain.append(field, '=', val)
to:
domain.append((field, '=', val))
Thank you for your help.
Regards,
Nikola
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/728100
Title:
many2many selection in search view not filtering
Status in OpenERP Web Client:
Fix Committed
Bug description:
Hello,
Go to Administration->Users->Users click on Manage Views and edit
res.users.search here add groups_id with widget selection.
Now you will get all goups_id names as a selection. Then you select
"Administration / Access Rights" and press Search it should list
Administrator as the user is in that category.
it works with many2one fields and it works in Desktop Client. In web
client if you select anything from the list it will gave you empty
list.
I've used 2nd of March 2011 code from 6.0.1 trunk and it's not
working.
Regards,
Nikola
References