fix: Autoname for loan security

This commit is contained in:
Deepesh Garg 2020-04-29 13:43:26 +05:30
parent 0d8f66dafa
commit 91e94587b6
2 changed files with 5 additions and 5 deletions

View File

@ -1,18 +1,17 @@
{ {
"actions": [], "actions": [],
"allow_rename": 1, "allow_rename": 1,
"autoname": "field:loan_security_name",
"creation": "2019-09-02 15:07:08.885593", "creation": "2019-09-02 15:07:08.885593",
"doctype": "DocType", "doctype": "DocType",
"editable_grid": 1, "editable_grid": 1,
"engine": "InnoDB", "engine": "InnoDB",
"field_order": [ "field_order": [
"loan_security_name", "loan_security_name",
"unit_of_measure", "haircut",
"loan_security_code", "loan_security_code",
"column_break_3", "column_break_3",
"loan_security_type", "loan_security_type",
"haircut", "unit_of_measure",
"disabled" "disabled"
], ],
"fields": [ "fields": [
@ -66,7 +65,7 @@
} }
], ],
"links": [], "links": [],
"modified": "2020-04-28 14:07:54.506896", "modified": "2020-04-29 13:21:26.043492",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Loan Management", "module": "Loan Management",
"name": "Loan Security", "name": "Loan Security",

View File

@ -7,4 +7,5 @@ from __future__ import unicode_literals
from frappe.model.document import Document from frappe.model.document import Document
class LoanSecurity(Document): class LoanSecurity(Document):
pass def autoname(self):
self.name = self.loan_security_name