2016-06-24 16:16:07 +05:30
|
|
|
import frappe
|
|
|
|
|
2021-09-02 16:44:59 +05:30
|
|
|
|
2016-06-24 16:16:07 +05:30
|
|
|
def get_context(context):
|
2016-07-05 12:12:39 +05:30
|
|
|
if frappe.form_dict.project:
|
|
|
|
context.parents = [
|
|
|
|
{"title": frappe.form_dict.project, "route": "/projects?project=" + frappe.form_dict.project}
|
|
|
|
]
|
2016-08-05 21:44:34 +05:30
|
|
|
context.success_url = "/projects?project=" + frappe.form_dict.project
|
2021-08-19 13:41:10 +05:30
|
|
|
|
2016-07-05 12:12:39 +05:30
|
|
|
elif context.doc and context.doc.get("project"):
|
2016-08-05 21:44:34 +05:30
|
|
|
context.parents = [
|
|
|
|
{"title": context.doc.project, "route": "/projects?project=" + context.doc.project}
|
|
|
|
]
|
|
|
|
context.success_url = "/projects?project=" + context.doc.project
|