From 4be47af3efcee0aef7f61bfaed149685f8354ae6 Mon Sep 17 00:00:00 2001 From: Vaibhav Rathore Date: Wed, 25 Feb 2026 16:59:23 +0530 Subject: [PATCH] fix: skip conferencing provider validation on batch creation Frappe sets Select field default to the first option ("Zoom") even when the field isn't in the creation form. Skip validation for new batches since conferencing is configured after creation. --- lms/lms/doctype/lms_batch/lms_batch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lms/lms/doctype/lms_batch/lms_batch.py b/lms/lms/doctype/lms_batch/lms_batch.py index 95501515..23de5615 100644 --- a/lms/lms/doctype/lms_batch/lms_batch.py +++ b/lms/lms/doctype/lms_batch/lms_batch.py @@ -128,6 +128,9 @@ class LMSBatch(Document): frappe.throw(_("Row #{0} Date cannot be outside the batch duration.").format(schedule.idx)) def validate_conferencing_provider(self): + if self.is_new() or not self.conferencing_provider: + return + if self.conferencing_provider == "Google Meet": if not self.google_meet_account: frappe.throw(_("Please select a Google Meet account for this batch."))