Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9214587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:00:08+00:00 2026-06-18T02:00:08+00:00

I want to filter recods in OPenERP using domain filter expression In the recored

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:00:09+00:00Added an answer on June 18, 2026 at 2:00 am

    Your domain syntax is wrong.

    It should be [('user_ids', '=' , user.id)]

    1. Each tuple in the search domain needs to have 3 elements, in the form: ('field_name', 'operator', value), where:

    2. field_name must be a valid name of field of the object model, possibly following many-to-one relationships using dot-notation, e.g ‘street’ or ‘partner_id.country’ are valid values.

    3. operator must be a string with a valid comparison operator from this list:
      =, !=, >, >=, <, <=, like, ilike, in, not in, child_of, parent_left, parent_right
      The semantics of most of these operators are obvious.
      The child_of operator will look for records who are children or grand-children of a given record,
      according to the semantics of this model (i.e following the relationship field named by
      self._parent_name, by default parent_id.

    4. value must be a valid value to compare with the values of field_name, depending on its type.

    Domain criteria can be combined using 3 logical operators than can be added between tuples: ‘&‘ (logical AND, default), ‘|‘ (logical OR), ‘!‘ (logical NOT).
    These are prefix operators and the arity of the ‘&‘ and ‘|‘ operator is 2, while the arity of the ‘!‘ is just 1. Be very careful about this when you combine them the first time.

    Here is an example of searching for Partners named ABC from Belgium and Germany whose language is not english ::

    [('name','=','ABC'),'!',('language.code','=','en_US'),'|',('country_id.code','=','be'),('country_id.code','=','de')]
    

    The ‘&’ is omitted as it is the default, and of course we could have used ‘!=’ for the language, but what this domain really represents is::

    (name is 'ABC' AND (language is NOT english) AND (country is Belgium OR Germany))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a model which has an active field, and i want to filter
I want to filter my model object using two filters. So, it can be
I want to filter repeated elements in my list for instance foo = ['a','b','c','a','b','d','a','d']
I want to filter based on an attribute called level. Where I have written
I want to filter elements from a list of lists, and iterate over the
i want to filter a String by using the \w wildcard, but unfortunately it
I have a excel sheet with 7 fields. I want to remove/filter all the
Is it possible to filter records in SQL Server by using a result expression
Using Microsoft Access I want to set a filter for records which include spaces.
I have a jqGrid with some records and want to filter the records based

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.