From e2eac046326952434d55acfd2c9517ee564709cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 4 Mar 2014 23:12:33 +0100 Subject: [PATCH] Fix get_invoice_state When there are invoice lines, the state should be waiting. issue3723 review3961002 --- purchase.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/purchase.py b/purchase.py index b33405fc7d..01cf67fc45 100644 --- a/purchase.py +++ b/purchase.py @@ -77,6 +77,8 @@ class Purchase: and all(l.invoice for l in invoice_lines) and all(l.invoice.state == 'paid' for l in invoice_lines)): return 'paid' + else: + return 'waiting' return state @classmethod