null value for fields.related with type in ('many2one','many2many') returns False instead of []
Bug #589083 reported by
Frédéric (Ferme du Sart)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This may raise an exception:
orm.py, line 231, in __getitem__
elif f._type in ('one2many', 'many2many') and len(data[n]):
TypeError: object of type 'bool' has no len()
Related branches
To post a comment you must log in.
You can remove the length function in the condition