From 08aec855c408666686d541ef72c6d55eff471f63 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 1 Aug 2016 17:46:44 +0530 Subject: [PATCH 1/2] [patch] fixed reload doc and permission issue in guardian patch --- erpnext/patches/v7_0/make_guardian.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/patches/v7_0/make_guardian.py b/erpnext/patches/v7_0/make_guardian.py index b6b0a80873..f2d0cf7c8b 100644 --- a/erpnext/patches/v7_0/make_guardian.py +++ b/erpnext/patches/v7_0/make_guardian.py @@ -4,8 +4,9 @@ import frappe def execute(): if frappe.db.exists("DocType", "Student") and "father_name" in frappe.db.get_table_columns("Student"): frappe.reload_doc("schools", "doctype", "student") + frappe.reload_doc("schools", "doctype", "guardian") - students = frappe.get_list("Student", fields=["name", "father_name", "father_email_id", + students = frappe.get_all("Student", fields=["name", "father_name", "father_email_id", "mother_name", "mother_email_id"]) for stud in students: if stud.father_name: From ed75667f6453970859b88416599e4c27301194ea Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 1 Aug 2016 18:18:27 +0600 Subject: [PATCH 2/2] bumped to version 7.0.15 --- erpnext/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/__init__.py b/erpnext/__init__.py index ba951778df..891439c025 100644 --- a/erpnext/__init__.py +++ b/erpnext/__init__.py @@ -2,7 +2,7 @@ from __future__ import unicode_literals import frappe -__version__ = '7.0.14' +__version__ = '7.0.15' def get_default_company(user=None): '''Get default company for user'''