I want to filter recods in OPenERP using domain filter expression
In the recored I have a field of list of users, so i want get the record where the user logged in the list
[(user.id , 'in' , 'user_ids')]
This doesn't work
it return this error :
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 2356, in search
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 4846, in _search
self._apply_ir_rules(cr, user, query, 'read', context=context)
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 4728, in _apply_ir_rules
rule_where_clause, rule_where_clause_params, rule_tables = rule_obj.domain_get(cr, uid, self._name, mode, context=context)
File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_rule.py", line 156, in domain_get
query = self.pool.get(model_name)._where_calc(cr, SUPERUSER_ID, dom, active_test=False)
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 4676, in _where_calc
e = expression.expression(cr, user, domain, self, context)
File "/usr/lib/pymodules/python2.7/openerp/osv/expression.py", line 632, in __init__
self.parse(cr, uid, context=context)
File "/usr/lib/pymodules/python2.7/openerp/osv/expression.py", line 759, in parse
field_path = left.split('.', 1)
AttributeError: 'int' object has no attribute 'split'
Please help me.
See Question&Answers more detail:
os