commit | 99017b173d89d26c82fd3d9a8fd8c2758bfe6759 | [log] [tgz] |
---|---|---|
author | Zarrar <zarrar65@gmail.com> | Wed Jun 20 14:53:13 2018 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Wed Jun 20 14:53:13 2018 +0530 |
tree | 5fd656005d98e2d837553e4e519a80725a501d75 | |
parent | 42f2d1a7a8b88a76679ccbfbbec9b7ca41974a3a [diff] |
naming for asset maintenance task should be task name (#14607)
diff --git a/erpnext/assets/doctype/asset_maintenance_task/asset_maintenance_task.py b/erpnext/assets/doctype/asset_maintenance_task/asset_maintenance_task.py index 2a5666d..d98cc31 100644 --- a/erpnext/assets/doctype/asset_maintenance_task/asset_maintenance_task.py +++ b/erpnext/assets/doctype/asset_maintenance_task/asset_maintenance_task.py
@@ -7,4 +7,5 @@ from frappe.model.document import Document class AssetMaintenanceTask(Document): - pass + def autoname(self): + self.name = self.maintenance_task