TypeError:类型' bool'的对象没有len()

时间:2017-08-11 11:42:56

标签: openerp

我打开一个包含many2many字段的表单视图,并出现此错误:

  File "/home/ingeos/coas/server/openerp/osv/osv.py", line 199, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/ingeos/coas/server/openerp/osv/osv.py", line 187, in 
   execute_cr
   return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/ingeos/coas/server/openerp/osv/orm.py", line 3623, in read
   result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/ingeos/coas/server/openerp/osv/orm.py", line 3744, in 
     _read_flat
   res2 = self._columns[f].get(cr, self, ids, f, user, context=context, 
  values=res)
  File 
  "/home/ingeos/coas/server/openerp/addons/one2many_sorted/__init__.py", line 113, in get
     o = getattr(o, m)
   File "/home/ingeos/coas/server/openerp/osv/orm.py", line 497, in 
__getattr__
  return self[name]
File "/home/ingeos/coas/server/openerp/osv/orm.py", line 468, in __getitem__
  elif field_column._type in ('one2many', 'many2many') and 
  len(result_line[field_name]):
TypeError: object of type 'bool' has no len()

你能告诉我这是什么问题吗?

0 个答案:

没有答案