From 64eac78f9d3bba113ade13b41cadfa9ed7fff6ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 28 Mar 2009 19:45:38 +0100 Subject: [PATCH] Fix get_receivable_payable if there is no ids --- party.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/party.py b/party.py index 2f8d88faf0..aa653c084d 100644 --- a/party.py +++ b/party.py @@ -60,6 +60,9 @@ class Party(OSV): 'receivable_today', 'payable_today'): raise Exception('Bad argument') + if not ids: + return {} + for i in ids: res[i] = Decimal('0.0')