Merge pull request #21498 from deepeshgarg007/loan_security_autoname

fix: Autoname for loan security
This commit is contained in:
Deepesh Garg 2020-04-29 13:46:47 +05:30 committed by GitHub
commit 98a70b51ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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",

View File

@ -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