Permission given to material user for production material issue and back
diff --git a/patches/patch.py b/patches/patch.py
index 1568469..8b7276b 100644
--- a/patches/patch.py
+++ b/patches/patch.py
@@ -1,7 +1,7 @@
# REMEMBER to update this
# ========================
-last_patch = 339
+last_patch = 340
#-------------------------------------------
@@ -1407,3 +1407,5 @@
sql("update tabPage set name='question-view' where name='Question View'")
elif patch_no == 339:
reload_doc('production','doctype','bill_of_materials')
+ elif patch_no == 340:
+ sql("update `tabDocField` set permlevel = 0 where (fieldname in ('process', 'production_order', 'fg_completed_qty') or label = 'Get Items') and parent = 'Stock Entry'")