diff options
Diffstat (limited to 'odoo/tools/misc.py')
| -rw-r--r-- | odoo/tools/misc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/odoo/tools/misc.py b/odoo/tools/misc.py index e1dc069cddb..31e391fe30e 100644 --- a/odoo/tools/misc.py +++ b/odoo/tools/misc.py @@ -1563,9 +1563,10 @@ def traverse_containers(val, type_): through standard containers (non-string mappings or sequences) *unless* they're selected by the type filter """ + from odoo.models import BaseModel if isinstance(val, type_): yield val - elif isinstance(val, (str, bytes)): + elif isinstance(val, (str, bytes, BaseModel)): return elif isinstance(val, Mapping): for k, v in val.items(): |
