10 lines
384 B
Python
10 lines
384 B
Python
from __future__ import unicode_literals
|
|
|
|
import frappe
|
|
|
|
def get_context(context):
|
|
if frappe.form_dict.project:
|
|
context.parents = [{'title': frappe.form_dict.project, 'route': '/projects?project='+ frappe.form_dict.project}]
|
|
|
|
elif context.doc and context.doc.get('project'):
|
|
context.parents = [{'title': context.doc.project, 'route': '/projects?project='+ context.doc.project}] |