From 91e94587b612e82a8a1e12105b724e420295a982 Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Wed, 29 Apr 2020 13:43:26 +0530 Subject: [PATCH] fix: Autoname for loan security --- .../doctype/loan_security/loan_security.json | 7 +++---- .../loan_management/doctype/loan_security/loan_security.py | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/erpnext/loan_management/doctype/loan_security/loan_security.json b/erpnext/loan_management/doctype/loan_security/loan_security.json index e879b17a43..1d0bb30910 100644 --- a/erpnext/loan_management/doctype/loan_security/loan_security.json +++ b/erpnext/loan_management/doctype/loan_security/loan_security.json @@ -1,18 +1,17 @@ { "actions": [], "allow_rename": 1, - "autoname": "field:loan_security_name", "creation": "2019-09-02 15:07:08.885593", "doctype": "DocType", "editable_grid": 1, "engine": "InnoDB", "field_order": [ "loan_security_name", - "unit_of_measure", + "haircut", "loan_security_code", "column_break_3", "loan_security_type", - "haircut", + "unit_of_measure", "disabled" ], "fields": [ @@ -66,7 +65,7 @@ } ], "links": [], - "modified": "2020-04-28 14:07:54.506896", + "modified": "2020-04-29 13:21:26.043492", "modified_by": "Administrator", "module": "Loan Management", "name": "Loan Security", diff --git a/erpnext/loan_management/doctype/loan_security/loan_security.py b/erpnext/loan_management/doctype/loan_security/loan_security.py index 800ad12957..8858c81836 100644 --- a/erpnext/loan_management/doctype/loan_security/loan_security.py +++ b/erpnext/loan_management/doctype/loan_security/loan_security.py @@ -7,4 +7,5 @@ from __future__ import unicode_literals from frappe.model.document import Document class LoanSecurity(Document): - pass + def autoname(self): + self.name = self.loan_security_name