[support] [fix] [patch] reload support ticket and communication before the patch

This commit is contained in:
Anand Doshi 2013-05-22 12:22:29 +05:30
parent 07e2291fb8
commit ace9cbad9e

View File

@ -17,6 +17,8 @@
from __future__ import unicode_literals from __future__ import unicode_literals
import webnotes import webnotes
def execute(): def execute():
webnotes.reload_doc("support", "doctype", "support_ticket")
webnotes.reload_doc("core", "doctype", "communication")
for d in webnotes.conn.sql("""select name, raised_by from `tabSupport Ticket` for d in webnotes.conn.sql("""select name, raised_by from `tabSupport Ticket`
where docstatus < 2""", as_dict=True): where docstatus < 2""", as_dict=True):
tic = webnotes.get_obj("Support Ticket", d.name) tic = webnotes.get_obj("Support Ticket", d.name)