from __future__ import unicode_literals
import frappe

def execute():

	frappe.db.sql(""" UPDATE `tabQuotation` set status = 'Open'
		where docstatus = 1 and status = 'Submitted' """)
from __future__ import unicode_literals
import frappe

def execute():

	frappe.db.sql(""" UPDATE `tabQuotation` set status = 'Open'
		where docstatus = 1 and status = 'Submitted' """)
UPDATE `tabQuotation` set status = 'Open' 		where docstatus = 1 and status = 'Submitted'