Merge pull request #31951 from rohitwaghchaure/maintenance-visit-issue
fix: Purposes not set in Maintenance Visit
This commit is contained in:
commit
1af22e5312
@ -415,7 +415,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,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user