Added patch number 288 to add Module Def 'Home'
diff --git a/patches/patch.py b/patches/patch.py
index de77b2d..341c484 100644
--- a/patches/patch.py
+++ b/patches/patch.py
@@ -1,6 +1,6 @@
# REMEMBER to update this
# ========================
-last_patch = 287
+last_patch = 288
#-------------------------------------------
@@ -1147,3 +1147,11 @@
reload_doc('accounts', 'search_criteria', 'itemwise_purchase_register')
elif patch_no == 287:
sql("update `tabDocField` set no_copy = 1 where fieldname in ('per_received', 'per_billed', 'per_delivered') and parent in ('Purchase Order', 'Purchase Receipt', 'Sales Order', 'Delivery Note')")
+ elif patch_no == 288:
+ count = sql("""SELECT * FROM `tabModule Def`
+ WHERE `module_name` LIKE 'Home'""")
+ if not count:
+ md = Document('Module Def')
+ md.module_name = 'Home'
+ md.module_label = 'Home'
+ md.save(1)