13 lines
No EOL
579 B
Python
13 lines
No EOL
579 B
Python
import frappe
|
|
|
|
def after_insert(doc, method):
|
|
print("DEBUG: After Insert Triggered for On-Site Meeting")
|
|
print("DEBUG: Updating on-site meeting status in Address")
|
|
if doc.address and not doc.end_time and not doc.start_time:
|
|
address_doc = frappe.get_doc("Address", doc.address)
|
|
address_doc.custom_onsite_meeting_scheduled = "In Progress"
|
|
address_doc.save()
|
|
if doc.status == "Completed":
|
|
address_doc = frappe.get_doc("Address", doc.address)
|
|
address_doc.custom_onsite_meeting_scheduled = "Completed"
|
|
address_doc.save() |