Merge branch 'master' of github.com:webnotes/erpnext
diff --git a/erpnext/patches/july_2012/bin_permission.py b/erpnext/patches/july_2012/bin_permission.py
new file mode 100644
index 0000000..e1d0ea6
--- /dev/null
+++ b/erpnext/patches/july_2012/bin_permission.py
@@ -0,0 +1,3 @@
+def execute():
+ import webnotes
+ webnotes.conn.sql("update `tabDocPerm` set permlevel = 0 where parent = 'Bin'")
\ No newline at end of file
diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py
index 6be98cd..b84c956 100644
--- a/erpnext/patches/patch_list.py
+++ b/erpnext/patches/patch_list.py
@@ -501,5 +501,8 @@
'patch_module': 'patches.july_2012',
'patch_file': 'blog_guest_permission',
},
-
+ {
+ 'patch_module': 'patches.july_2012',
+ 'patch_file': 'bin_permission',
+ },
]
\ No newline at end of file
diff --git a/erpnext/stock/doctype/bin/bin.txt b/erpnext/stock/doctype/bin/bin.txt
index 7956e67..ce20a2d 100644
--- a/erpnext/stock/doctype/bin/bin.txt
+++ b/erpnext/stock/doctype/bin/bin.txt
@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
- 'creation': '2012-03-27 14:36:27',
+ 'creation': '2012-05-15 12:15:04',
'docstatus': 0,
- 'modified': '2012-03-27 14:36:27',
+ 'modified': '2012-07-31 14:10:42',
'modified_by': u'Administrator',
'owner': u'Administrator'
},
@@ -26,7 +26,7 @@
'section_style': u'Simple',
'server_code_error': u' ',
'show_in_menu': 0,
- 'version': 115
+ 'version': 1
},
# These values are common for all DocField
@@ -36,7 +36,7 @@
'parent': u'Bin',
'parentfield': u'fields',
'parenttype': u'DocType',
- 'permlevel': 1
+ 'permlevel': 0
},
# These values are common for all DocPerm