diff --git a/order_point.py b/order_point.py index 06e025a85d..6ea104c356 100644 --- a/order_point.py +++ b/order_point.py @@ -110,6 +110,8 @@ class OrderPoint(OSV): return not bool(ids) def name_get(self, cursor, user, ids, context=None): + if not ids: + return [] if isinstance(ids, (int, long)): ids = [ids] res = []