mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 06:59:20 +00:00
Merge pull request #31962 from frappe/mergify/bp/version-13-hotfix/pr-31951
fix: Purposes not set in Maintenance Visit (backport #31951)
This commit is contained in:
@@ -395,7 +395,7 @@ def make_maintenance_visit(source_name, target_doc=None, item_name=None, s_id=No
|
|||||||
},
|
},
|
||||||
"Maintenance Schedule Item": {
|
"Maintenance Schedule Item": {
|
||||||
"doctype": "Maintenance Visit Purpose",
|
"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"},
|
"field_map": {"sales_person": "service_person"},
|
||||||
"postprocess": update_serial,
|
"postprocess": update_serial,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user