bug with advanced filters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo GTK Client (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP sa GTK client R&D | ||
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Medium
|
Olivier Dony (Odoo) | ||
Odoo Web (MOVED TO GITHUB) |
Invalid
|
Medium
|
OpenERP R&D Web Team |
Bug Description
in a search view click on advanced filters _> bug :
Client Traceback (most recent call last):
File "/home/
response[
File "/home/
return self.do_
File "/home/
ids = Model.search(
File "/home/
*args)
File "/home/
result = self.connector.
File "/home/
raise fault
Server Traceback (most recent call last):
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/home/
cr.
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
ProgrammingError: ERREUR: l'opérateur n'existe pas : integer ~~* unknown
LIGNE 1 : ...er."user_id" = 1) AND ((sale_
ASTUCE : Aucun opérateur ne correspond au nom donné et aux types d'arguments.
Vous devez ajouter des conversions explicites de type.
Related branches
- Nicolas Vanhoren (OpenERP) (community): Disapprove
- Xavier (Open ERP) (community): Needs Information
-
Diff: 20 lines (+2/-1)1 file modifiedaddons/web/static/src/js/search.js (+2/-1)
Changed in openerp-web: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
assignee: | nobody → OpenERP R&D Web Team (openerp-dev-web) |
Changed in openerp-web: | |
status: | Confirmed → In Progress |
Hello,
This bug fixed on server side because click on advance filter then execute the search method and pass domain based on default field in advance filter. eg. :- If I clicked on advance filter in sale.order then default field analytic account selected and operator contains is selected and this domain pass to server side like :- [['project_id', 'ilike', '']] then server generate the exception. i.e if m2o field pass this type of domain then server generate exception.
Also This Exception generate on gtk-client. e.g. Open sale order view and add field of custom filter, default field is analytic account you need to change the operator contains and click on find button then generate exception from server side.
Thanks,