Added patch to add Module Def 'Home' where it does not exist

This commit is contained in:
Anand Doshi 2011-06-22 12:24:40 +05:30
parent b9f7e39bb4
commit f14abfb0c7

View File

@ -1153,7 +1153,7 @@ def execute(patch_no):
sql("update `tabDocType` set subject = 'From %(supplier_name)s worth %(grand_total)s due on %(due_date)s | %(outstanding_amount)s outstanding' where name = 'Payable Voucher'")
sql("update `tabDocType` set search_fields = 'status,transaction_date,customer,lead,order_type' where name = 'Quotation'")
elif patch_no == 290:
count = sql("""SELECT * FROM `tabModule Def`
count = sql("""SELECT * FROM `tabModule Def`
WHERE `module_name` LIKE 'Home'""")
if not count:
md = Document('Module Def')