brotherton-erpnext/erpnext/patches/v8_0/set_project_copied_from.py

11 lines
203 B
Python
Raw Normal View History

from __future__ import unicode_literals
import frappe
def execute():
2017-04-20 03:20:27 +00:00
frappe.reload_doctype("Project")
frappe.db.sql('''
UPDATE `tabProject`
SET copied_from=name
WHERE copied_from is NULL
''')