commit | f9a7b31b5b39da7f3e12ad8274330dafda6ce2a8 | [log] [tgz] |
---|---|---|
author | Rohit Waghchaure <rohitw1991@gmail.com> | Wed Aug 24 17:16:01 2022 +0530 |
committer | Rohit Waghchaure <rohitw1991@gmail.com> | Wed Aug 24 17:16:01 2022 +0530 |
tree | f3cc28b36344279f76beca64ab0b4c597b05f174 | |
parent | 756fe4b37562b63bbe6c00444bcdeb9b382a5f59 [diff] |
fix: Purposes not set
diff --git a/erpnext/maintenance/doctype/maintenance_schedule/maintenance_schedule.py b/erpnext/maintenance/doctype/maintenance_schedule/maintenance_schedule.py index 09d4429..3dc6b0f 100644 --- a/erpnext/maintenance/doctype/maintenance_schedule/maintenance_schedule.py +++ b/erpnext/maintenance/doctype/maintenance_schedule/maintenance_schedule.py
@@ -415,7 +415,7 @@ }, "Maintenance Schedule Item": { "doctype": "Maintenance Visit Purpose", - "condition": lambda doc: doc.item_name == item_name, + "condition": lambda doc: doc.item_name == item_name if item_name else True, "field_map": {"sales_person": "service_person"}, "postprocess": update_serial, },