Fix get_invoice_state

When there are invoice lines, the state should be waiting.

issue3723
review3961002
This commit is contained in:
Cédric Krier committed 2014-03-04 23:12:33 +01:00
1 parent e4e908b9af
commit e2eac04632
1 file changed
+2
+2
View File
@@ -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