reload company txt

This commit is contained in:
Ravi Dey 2011-07-01 14:05:43 +05:30
parent 94a332a8ab
commit 627d01bd4b

View File

@ -1,6 +1,6 @@
# REMEMBER to update this # REMEMBER to update this
# ======================== # ========================
last_patch = 306 last_patch = 307
#------------------------------------------- #-------------------------------------------
@ -1213,3 +1213,6 @@ def execute(patch_no):
sql("update `tabDocField` set options = 'Sales Order' where parent = 'Indent Detail' and fieldname = 'sales_order_no'") sql("update `tabDocField` set options = 'Sales Order' where parent = 'Indent Detail' and fieldname = 'sales_order_no'")
sql("update `tabDocField` set options = 'link:Company', fieldtype = 'Select' where parent = 'Stock Ledger Entry' and fieldname = 'company'") sql("update `tabDocField` set options = 'link:Company', fieldtype = 'Select' where parent = 'Stock Ledger Entry' and fieldname = 'company'")
reload_doc('tools', 'doctype', 'rename_tool') reload_doc('tools', 'doctype', 'rename_tool')
elif patch_no == 307:
sql("delete from `tabDocField` where parent = 'company' and label = 'Trash Company' and fieldtype = 'Button'")
reload_doc('setup', 'doctype', 'company')