Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
5c42d5d2cf
3
erpnext/patches/july_2012/bin_permission.py
Normal file
3
erpnext/patches/july_2012/bin_permission.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
def execute():
|
||||||
|
import webnotes
|
||||||
|
webnotes.conn.sql("update `tabDocPerm` set permlevel = 0 where parent = 'Bin'")
|
@ -501,5 +501,8 @@ patch_list = [
|
|||||||
'patch_module': 'patches.july_2012',
|
'patch_module': 'patches.july_2012',
|
||||||
'patch_file': 'blog_guest_permission',
|
'patch_file': 'blog_guest_permission',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'patch_module': 'patches.july_2012',
|
||||||
|
'patch_file': 'bin_permission',
|
||||||
|
},
|
||||||
]
|
]
|
@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
# These values are common in all dictionaries
|
# These values are common in all dictionaries
|
||||||
{
|
{
|
||||||
'creation': '2012-03-27 14:36:27',
|
'creation': '2012-05-15 12:15:04',
|
||||||
'docstatus': 0,
|
'docstatus': 0,
|
||||||
'modified': '2012-03-27 14:36:27',
|
'modified': '2012-07-31 17:23:42',
|
||||||
'modified_by': u'Administrator',
|
'modified_by': u'Administrator',
|
||||||
'owner': u'Administrator'
|
'owner': u'Administrator'
|
||||||
},
|
},
|
||||||
@ -26,7 +26,7 @@
|
|||||||
'section_style': u'Simple',
|
'section_style': u'Simple',
|
||||||
'server_code_error': u' ',
|
'server_code_error': u' ',
|
||||||
'show_in_menu': 0,
|
'show_in_menu': 0,
|
||||||
'version': 115
|
'version': 1
|
||||||
},
|
},
|
||||||
|
|
||||||
# These values are common for all DocField
|
# These values are common for all DocField
|
||||||
@ -36,7 +36,7 @@
|
|||||||
'parent': u'Bin',
|
'parent': u'Bin',
|
||||||
'parentfield': u'fields',
|
'parentfield': u'fields',
|
||||||
'parenttype': u'DocType',
|
'parenttype': u'DocType',
|
||||||
'permlevel': 1
|
'permlevel': 0
|
||||||
},
|
},
|
||||||
|
|
||||||
# These values are common for all DocPerm
|
# These values are common for all DocPerm
|
||||||
@ -46,6 +46,7 @@
|
|||||||
'parent': u'Bin',
|
'parent': u'Bin',
|
||||||
'parentfield': u'permissions',
|
'parentfield': u'permissions',
|
||||||
'parenttype': u'DocType',
|
'parenttype': u'DocType',
|
||||||
|
'permlevel': 0,
|
||||||
'read': 1
|
'read': 1
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -58,28 +59,24 @@
|
|||||||
# DocPerm
|
# DocPerm
|
||||||
{
|
{
|
||||||
'doctype': u'DocPerm',
|
'doctype': u'DocPerm',
|
||||||
'permlevel': 1,
|
|
||||||
'role': u'Sales Manager'
|
'role': u'Sales Manager'
|
||||||
},
|
},
|
||||||
|
|
||||||
# DocPerm
|
# DocPerm
|
||||||
{
|
{
|
||||||
'doctype': u'DocPerm',
|
'doctype': u'DocPerm',
|
||||||
'permlevel': 1,
|
|
||||||
'role': u'Sales User'
|
'role': u'Sales User'
|
||||||
},
|
},
|
||||||
|
|
||||||
# DocPerm
|
# DocPerm
|
||||||
{
|
{
|
||||||
'doctype': u'DocPerm',
|
'doctype': u'DocPerm',
|
||||||
'permlevel': 1,
|
|
||||||
'role': u'Purchase Manager'
|
'role': u'Purchase Manager'
|
||||||
},
|
},
|
||||||
|
|
||||||
# DocPerm
|
# DocPerm
|
||||||
{
|
{
|
||||||
'doctype': u'DocPerm',
|
'doctype': u'DocPerm',
|
||||||
'permlevel': 1,
|
|
||||||
'role': u'Purchase User'
|
'role': u'Purchase User'
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -89,7 +86,6 @@
|
|||||||
'cancel': 0,
|
'cancel': 0,
|
||||||
'create': 0,
|
'create': 0,
|
||||||
'doctype': u'DocPerm',
|
'doctype': u'DocPerm',
|
||||||
'permlevel': 1,
|
|
||||||
'role': u'Material User',
|
'role': u'Material User',
|
||||||
'submit': 0,
|
'submit': 0,
|
||||||
'write': 0
|
'write': 0
|
||||||
@ -101,7 +97,6 @@
|
|||||||
'cancel': 0,
|
'cancel': 0,
|
||||||
'create': 0,
|
'create': 0,
|
||||||
'doctype': u'DocPerm',
|
'doctype': u'DocPerm',
|
||||||
'permlevel': 0,
|
|
||||||
'role': u'Material Manager',
|
'role': u'Material Manager',
|
||||||
'submit': 0,
|
'submit': 0,
|
||||||
'write': 0
|
'write': 0
|
||||||
@ -162,7 +157,7 @@
|
|||||||
'doctype': u'DocField',
|
'doctype': u'DocField',
|
||||||
'fieldname': u'actual_qty',
|
'fieldname': u'actual_qty',
|
||||||
'fieldtype': u'Currency',
|
'fieldtype': u'Currency',
|
||||||
'in_filter': 0,
|
'in_filter': 1,
|
||||||
'label': u'Actual Quantity',
|
'label': u'Actual Quantity',
|
||||||
'oldfieldname': u'actual_qty',
|
'oldfieldname': u'actual_qty',
|
||||||
'oldfieldtype': u'Currency',
|
'oldfieldtype': u'Currency',
|
||||||
|
Loading…
Reference in New Issue
Block a user