2014-03-11 09:47:13 +00:00
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
import frappe
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
from frappe.modules.patch_handler import executed
|
2014-05-05 12:55:37 +00:00
|
|
|
last_v3_patch = 'patches.1401.fix_pos_outstanding'
|
2014-03-11 09:47:13 +00:00
|
|
|
if not executed(last_v3_patch):
|
|
|
|
raise Exception, "site not ready to migrate to version 4"
|