Error in method _read_flat of the server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
Traceback (most recent call last):
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return self.execute(db, uid, obj, method, *args, **kw or {})
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/
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/
res2 = self._columns[
File "/home/
context=
File "/home/
return [(r['id'], '%s %s' % (r['number'] or types[r['type']], r['name'] or '')) for r in self.read(cr, uid, ids, ['type', 'number', 'name'], context, load='_
File "/home/
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/
cr.
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
ProgrammingError: operator does not exist: integer = boolean
LINE 1: ...d FROM "account_invoice" WHERE account_invoice.id IN (false)...
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
Basically the error is in the get method of the many2one class, line 466 of the fields.py file.
records = dict(obj.
Because this method receives a False and this is instance of int is why that sends a list with the boolean False, causing a mistake later.
I don't know why receives a False instead of None but is a mistake not consider that booleans (False or True) are instances of int