Skip to content

Commit 2fcb773

Browse files
committed
[FIX] util/helpers: return on empty path
Avoid issues if the caller pass a `None` object.
1 parent 1d9e20e commit 2fcb773

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util/helpers.py

+2
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ def resolve_model_fields_path(cr, model, path):
279279
:return: resolved fields path parts
280280
:rtype: list(:class:`~odoo.upgrade.util.helpers.FieldsPathPart`)
281281
"""
282+
if not path:
283+
return []
282284
path = list(path)
283285
cr.execute(
284286
"""

0 commit comments

Comments
 (0)