mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
[Fix] len() instead of .length
This commit is contained in:
@@ -46,7 +46,7 @@ class AccountingPeriod(Document):
|
|||||||
return docs_for_closing
|
return docs_for_closing
|
||||||
|
|
||||||
def bootstrap_doctypes_for_closing(self):
|
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():
|
for doctype_for_closing in self.get_doctypes_for_closing():
|
||||||
self.append('closed_documents', {
|
self.append('closed_documents', {
|
||||||
"document_type": doctype_for_closing.document_type,
|
"document_type": doctype_for_closing.document_type,
|
||||||
|
|||||||
Reference in New Issue
Block a user