Do not rely on invoice state to compute reconciliation lines
Closes #12864 (grafted from 94018bd6531aa5943e5044d925b24c04fc5ecb8c) --HG-- branch : 6.0
This commit is contained in:
1 parent
5635867f24
commit
19edd7419f
1 file changed
+1
-1
@@ -723,7 +723,7 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin):
|
||||
return lines
|
||||
|
||||
def get_reconciliation_lines(self, name):
|
||||
if self.state != 'paid':
|
||||
if not self.move:
|
||||
return
|
||||
lines = set()
|
||||
for line in self.move.lines:
|
||||
|
||||
Reference in new issue
Block a user