[wsgi] [minor] fixed flags

This commit is contained in:
Rushabh Mehta
2013-10-08 18:23:05 +05:30
parent 8c5a5f1ed5
commit 5d45557729
6 changed files with 13 additions and 13 deletions

View File

@@ -215,14 +215,14 @@ class DocType:
pro = webnotes.new_bean("Production Order")
pro.doc.fields.update(items[key])
webnotes.mute_messages = True
webnotes.flags.mute_messages = True
try:
pro.insert()
pro_list.append(pro.doc.name)
except OverProductionError, e:
pass
webnotes.mute_messages = False
webnotes.flags.mute_messages = False
return pro_list