← Back to team overview

openerp-community team mailing list archive

crash searching for a stock.production.lot model class (Re: New WMS. Call for testers.)

 

I think you were a bit too aggressive in the refactoring of
stock.production.lot.

On a db with demo data , go to Warehouse -> Traceability -> Serial Numbers

In the seach field, type  ice and hit Return. I get the following stack
trace:

Traceback (most recent call last):
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/http.py", line 321, in dispatch
    response["result"] = self._call_function(**self.params)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/http.py", line 194, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/service/model.py", line 112, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/http.py", line 189, in checked_call
    return self.func(*a, **kw)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/webclient/addons/web/controllers/main.py", line 1040, in search_read
    return self.do_search_read(model, fields, offset, limit, domain, sort)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/webclient/addons/web/controllers/main.py", line 1061, in do_search_read
    request.context)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/http.py", line 561, in proxy
    result = meth(cr, request.uid, *args, **kw)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/osv/orm.py", line 2375, in search
    return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/osv/orm.py", line 4939, in _search
    query = self._where_calc(cr, user, args, context=context)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/osv/orm.py", line 4768, in _where_calc
    e = expression.expression(cr, user, domain, self, context)
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/osv/expression.py", line 638, in __init__
    self.expression = distribute_not(normalize_domain(exp))
  File "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/osv/expression.py", line 200, in normalize_domain
    assert expected == 0, 'This domain is syntactically not correct: %s' % (domain)
AssertionError: This domain is syntactically not correct: ['|', '|', ['name', 'ilike', 'ice'], ['ref', 'ilike', 'ice']]



-- 
Alexandre Fayolle
Chef de Projet
Tel : + 33 (0)4 79 26 57 94

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
http://www.camptocamp.com



Follow ups

References