diff --git a/erpnext/agriculture/doctype/crop_cycle/crop_cycle.py b/erpnext/agriculture/doctype/crop_cycle/crop_cycle.py index 819315c924..21dfe317b7 100644 --- a/erpnext/agriculture/doctype/crop_cycle/crop_cycle.py +++ b/erpnext/agriculture/doctype/crop_cycle/crop_cycle.py @@ -18,6 +18,11 @@ class CropCycle(Document): self.row_spacing_uom = crop.row_spacing_uom if not self.project: self.project = self.name + disease = [] + for detected_disease in self.detected_disease: + disease.append(detected_disease.name) + if disease != []: + self.update_disease(disease) else: old_disease, new_disease = [], [] for detected_disease in self.detected_disease: