reload stock entry

This commit is contained in:
Nabin Hait
2011-07-10 14:15:52 +05:30
parent 1cb786b123
commit e079a6eb26
2 changed files with 31 additions and 20 deletions

View File

@@ -1287,5 +1287,5 @@ def execute(patch_no):
sql("delete from `tabDocField` where parent = 'Leave Application' and fieldname = 'latter_head'")
elif patch_no == 323:
reload_doc('stock', 'doctype', 'stock_entry')
sql("update `tabDocField` set options = 'get_stock_and_rate' where parent = 'Stock Entry' and label = 'Get Current Stock'")
sql("update `tabDocField` set options = 'get_stock_and_rate' where parent = 'Stock Entry' and label = 'Get Stock and Rate'")
sql("delete from `tabDocField` where label = 'Get Current Stock' and parent = 'Stock Entry'")