7 lines
267 B
Python
7 lines
267 B
Python
import frappe
|
|
|
|
def before_insert(doc, method):
|
|
"""Set values before inserting a Task."""
|
|
project_doc = frappe.get_doc("Project", doc.project)
|
|
if project_doc.custom_installation_address:
|
|
doc.custom_property = project_doc.custom_installation_address |