From 91ba3771b5bebcfab3408b9a83b01b40286e862d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 21 Oct 2008 11:19:17 +0200 Subject: [PATCH] Fix name_get of order_point if there is no ids --- order_point.py | 2 ++ 1 file changed, 2 insertions(+) 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 = []