[Fix] len() instead of .length
This commit is contained in:
parent
caaebb9d2a
commit
21b2df41ac
@ -46,7 +46,7 @@ class AccountingPeriod(Document):
|
||||
return docs_for_closing
|
||||
|
||||
def bootstrap_doctypes_for_closing(self):
|
||||
if self.closed_documents.length == 0:
|
||||
if len(self.closed_documents) == 0:
|
||||
for doctype_for_closing in self.get_doctypes_for_closing():
|
||||
self.append('closed_documents', {
|
||||
"document_type": doctype_for_closing.document_type,
|
||||
|
Loading…
x
Reference in New Issue
Block a user