Changes in patch of feature setup and added description against each feature

This commit is contained in:
Brahma K
2011-08-31 15:46:29 +05:30
parent 3c9a6a19e8
commit 8e8c4820cb
3 changed files with 180 additions and 103 deletions

View File

@@ -281,3 +281,9 @@ def execute(patch_no):
reload_doc('setup', 'doctype','feature_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')
for d in rs:
m.fields[d[0]] = 1
m.save()