Fix get_invoice_state
When there are invoice lines, the state should be waiting. issue3723 review3961002
This commit is contained in:
1 parent
e4e908b9af
commit
e2eac04632
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user