patch etc fixes

This commit is contained in:
Rushabh Mehta
2011-09-06 12:46:33 +05:30
parent 66ac2b018a
commit b5717bd807
9 changed files with 29 additions and 14 deletions

View File

@@ -291,12 +291,12 @@ def execute(patch_no):
elif patch_no == 353:
reload_doc('hr', 'doctype', 'salary_manager')
elif patch_no == 354:
reload_doc('setup', 'doctype','feature_setup')
reload_doc('setup', 'doctype','features_setup')
reload_doc('stock','doctype','item')
sql("update tabDocField set label='Produced Qty',description='Updated after finished goods are transferred to FG Warehouse through Stock Entry' where parent='Production Order' and fieldname='produced_qty'")
rs = sql("select fieldname from tabDocField where parent='Features Setup' and fieldname is not null")
from webnotes.model.doc import Document
m = Document('Features Setup')
m = Document('Features Setup', 'Features Setup')
for d in rs:
m.fields[d[0]] = 1
m.save()