Merge branch 'shf_rename' of github.com:webnotes/erpnext into shf_rename

This commit is contained in:
Rushabh Mehta 2012-05-02 15:30:58 +05:30
commit f2c3db6e83
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,14 @@
def execute():
import webnotes
dt_list = webnotes.conn.sql("select parent, fieldname from `tabDocField` where fieldname in ('against_doctype', 'prevdoc_doctype')")
ren_dt = {
'Indent' : 'Purchase Request',
'Enquiry' : 'Opportunity',
'Receivable Voucher' : 'Sales Invoice',
'Payable Voucher' : 'Purchase Invoice'
}
for d in ren_dt:
for dt in dt_list:
webnotes.conn.sql("update `tab%s` set %s = '%s' where %s = '%s'" % (dt[0], dt[1], ren_dt[d], dt[1], d))

View File

@ -317,5 +317,10 @@ patch_list = [
'patch_file': 'cleanup_property_setter',
'description': 'cleanup_property_setter'
},
{
'patch_module': 'patches.may_2012',
'patch_file': 'rename_prev_doctype',
'description': 'rename prev doctype fix'
},
]