Domain Evaluation : M2O with operator 'in' fails.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Medium
|
Jay Vora (Serpent Consulting Services) |
Bug Description
example (custom form)
this works
<field name="domain"
this not
<field name="domain"
- obviously I want to add some items to make 'in' meaningful ....
Environment Information :
System : Linux-2.
OS Name : posix
LSB Version: core-2.
Distributor ID: SUSE LINUX
Description: openSUSE 11.2 (x86_64)
Release: 11.2
Codename: n/a
Operating System Release : 2.6.31.
Operating System Version : #1 SMP PREEMPT 2010-03-16 21:25:39 +0100
Operating System Architecture : 64bit
Operating System Locale : de_DE.ISO8859-1
Python Version : 2.6.2
OpenERP-Client Version : 5.0.10
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/home/
result = LocalService(
File "/home/
return getattr(self, method)(*params)
File "/home/
return fct_src(db, uid, passwd, model, method, *args)
File "/home/
res = super(recording
File "/home/
res = service.execute(db, uid, object, method, *args)
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/
(qu1, qu2, tables) = self._where_
File "/home/
e.parse(cr, user, self, context)
File "/home/
res_ids = field_obj.
File "/home/
ids = self.search(cr, uid, [('name', operator, name)] + args, limit=limit, context=context)
File "/home/
cr.
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
IndexError: list index out of range
Related branches
summary: |
- xml domain filter works for '=' but not for 'in' + Domain Evaluation : M2O with operator 'in' fails. |
Changed in openobject-server: | |
assignee: | nobody → Jay (Open ERP) (jvo-openerp) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in openobject-server: | |
status: | Confirmed → In Progress |
Changed in openobject-server: | |
milestone: | 5.0.12 → 5.0.13 |
Hi,
It is not supposed to work with [('partner_id' ,'in' , 'Leerstehung')] because, whenever you supply IN operator, the right operand has to be either a tuple or a list.
[('partner_id' ,'in' , ['Leerstehung']) will work for you.
Thanks.