fix: Purposes not set

This commit is contained in:
Rohit Waghchaure 2022-08-24 17:16:01 +05:30
parent 756fe4b375
commit f9a7b31b5b

View File

@ -415,7 +415,7 @@ def make_maintenance_visit(source_name, target_doc=None, item_name=None, s_id=No
},
"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,
},