big updates
This commit is contained in:
parent
34f2c110d6
commit
03a230b8f7
14 changed files with 2417 additions and 242 deletions
|
|
@ -2,8 +2,11 @@ import frappe
|
|||
|
||||
def after_insert(doc, method):
|
||||
print(doc.address)
|
||||
if doc.address:
|
||||
address_name = frappe.db.get_value("Address", fieldname="name", filters={"address_line1": doc.address})
|
||||
address_doc = frappe.get_doc("Address", address_name)
|
||||
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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue