diff --git a/erpnext/projects/doctype/timesheet/timesheet.json b/erpnext/projects/doctype/timesheet/timesheet.json index 80c384e793..59af587a41 100644 --- a/erpnext/projects/doctype/timesheet/timesheet.json +++ b/erpnext/projects/doctype/timesheet/timesheet.json @@ -617,5 +617,5 @@ "read_only": 0, "read_only_onload": 0, "sort_order": "ASC", - "track_seen": 0 + "track_seen": 1 } \ No newline at end of file diff --git a/erpnext/projects/web_form/tasks/tasks.py b/erpnext/projects/web_form/tasks/tasks.py index 2334f8b26d..6f387fe222 100644 --- a/erpnext/projects/web_form/tasks/tasks.py +++ b/erpnext/projects/web_form/tasks/tasks.py @@ -3,5 +3,8 @@ from __future__ import unicode_literals import frappe def get_context(context): - # do your magic here - pass + 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}] \ No newline at end of file diff --git a/erpnext/selling/doctype/quotation/quotation.json b/erpnext/selling/doctype/quotation/quotation.json index 037f1e848d..f07bc8e535 100644 --- a/erpnext/selling/doctype/quotation/quotation.json +++ b/erpnext/selling/doctype/quotation/quotation.json @@ -6,6 +6,7 @@ "beta": 0, "creation": "2013-05-24 19:29:08", "custom": 0, + "default_print_format": "test123", "docstatus": 0, "doctype": "DocType", "document_type": "Document", @@ -2125,6 +2126,7 @@ "hide_toolbar": 0, "icon": "icon-shopping-cart", "idx": 82, + "image_view": 0, "in_create": 0, "in_dialog": 0, "is_submittable": 1, @@ -2132,7 +2134,7 @@ "istable": 0, "max_attachments": 1, "menu_index": 0, - "modified": "2016-05-10 12:16:13.978635", + "modified": "2016-07-05 16:44:01.301063", "modified_by": "Administrator", "module": "Selling", "name": "Quotation", diff --git a/erpnext/templates/includes/macros.html b/erpnext/templates/includes/macros.html index 8dc433a259..da21748f77 100644 --- a/erpnext/templates/includes/macros.html +++ b/erpnext/templates/includes/macros.html @@ -12,4 +12,3 @@ {%- endif %} {% endmacro %} - diff --git a/erpnext/templates/includes/projects.css b/erpnext/templates/includes/projects.css index 1f758e3bca..5a717fc669 100644 --- a/erpnext/templates/includes/projects.css +++ b/erpnext/templates/includes/projects.css @@ -21,6 +21,7 @@ .item-timestamp { font-size: 10px; + margin-left: 15px; } .page-container .project-item { padding-top: 5px; diff --git a/erpnext/templates/includes/projects/macros.html b/erpnext/templates/includes/projects/macros.html deleted file mode 100644 index 5b22583049..0000000000 --- a/erpnext/templates/includes/projects/macros.html +++ /dev/null @@ -1,2 +0,0 @@ -{% macro back_link(doc) %}&back-to=/projects?project={{ doc.name }}&back-to-title={{ doc.project_name }}{% endmacro %} - diff --git a/erpnext/templates/includes/projects/project_tasks.html b/erpnext/templates/includes/projects/project_tasks.html index b4e5cece54..e978a7d09a 100644 --- a/erpnext/templates/includes/projects/project_tasks.html +++ b/erpnext/templates/includes/projects/project_tasks.html @@ -1,27 +1,32 @@ -{%- from "templates/includes/projects/macros.html" import back_link -%} - {% for task in doc.tasks %}
{% endif %} {% else %} -
No time logs
+No time sheets
{% endif %}