[trunk] expression : search with child_of crashes if 'id' is created in openerp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
New
|
Undecided
|
OpenERP Publisher's Warranty Team |
Bug Description
In the file osv/expression.py, line 444 :
if not field:
if left == 'id' and operator == 'child_of':
If the field 'id' is created in openerp, for a search with child_of, the method crashes because it doesn't pass in the code. Indeed, in that case "field" is not empty.
In my opinion, a search with child_of should support if the field exists in openerp or not.
Regards,
Benoît
Changed in openobject-server: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-server: | |
status: | Incomplete → New |
Can you please provide us a working scenario that reproduce the issue with code that you have written in search domain?