Fixed project_copied_from patch

This commit is contained in:
Nabin Hait 2017-04-20 08:50:27 +05:30
parent 3e519770de
commit 825e053e66

View File

@ -2,8 +2,10 @@ from __future__ import unicode_literals
import frappe import frappe
def execute(): def execute():
frappe.db.sql(''' frappe.reload_doctype("Project")
UPDATE `tabProject`
SET copied_from=name frappe.db.sql('''
WHERE copied_from is NULL UPDATE `tabProject`
''') SET copied_from=name
WHERE copied_from is NULL
''')