Patch to give permission to Accounts Manager to Lease Agreement
This commit is contained in:
parent
a71160ebcc
commit
3b1ebe0b24
@ -5,21 +5,21 @@
|
|||||||
{
|
{
|
||||||
'creation': '2011-07-22 17:47:57',
|
'creation': '2011-07-22 17:47:57',
|
||||||
'docstatus': 0,
|
'docstatus': 0,
|
||||||
'modified': '2011-07-25 06:36:04',
|
'modified': '2011-07-27 12:54:48',
|
||||||
'modified_by': 'Administrator',
|
'modified_by': 'Administrator',
|
||||||
'owner': 'Administrator'
|
'owner': 'Administrator'
|
||||||
},
|
},
|
||||||
|
|
||||||
# These values are common for all DocType
|
# These values are common for all DocType
|
||||||
{
|
{
|
||||||
'_last_update': '1311348373',
|
'_last_update': '1311555967',
|
||||||
'colour': 'White:FFF',
|
'colour': 'White:FFF',
|
||||||
'doctype': 'DocType',
|
'doctype': 'DocType',
|
||||||
'module': 'Accounts',
|
'module': 'Accounts',
|
||||||
'name': '__common__',
|
'name': '__common__',
|
||||||
'section_style': 'Simple',
|
'section_style': 'Simple',
|
||||||
'show_in_menu': 0,
|
'show_in_menu': 0,
|
||||||
'version': 19
|
'version': 20
|
||||||
},
|
},
|
||||||
|
|
||||||
# These values are common for all DocField
|
# These values are common for all DocField
|
||||||
@ -38,8 +38,7 @@
|
|||||||
'parent': 'Lease Agreement',
|
'parent': 'Lease Agreement',
|
||||||
'parentfield': 'permissions',
|
'parentfield': 'permissions',
|
||||||
'parenttype': 'DocType',
|
'parenttype': 'DocType',
|
||||||
'read': 1,
|
'read': 1
|
||||||
'role': 'Accounts User'
|
|
||||||
},
|
},
|
||||||
|
|
||||||
# DocType, Lease Agreement
|
# DocType, Lease Agreement
|
||||||
@ -55,6 +54,7 @@
|
|||||||
'doctype': 'DocPerm',
|
'doctype': 'DocPerm',
|
||||||
'idx': 1,
|
'idx': 1,
|
||||||
'permlevel': 0,
|
'permlevel': 0,
|
||||||
|
'role': 'Accounts User',
|
||||||
'submit': 1,
|
'submit': 1,
|
||||||
'write': 1
|
'write': 1
|
||||||
},
|
},
|
||||||
@ -63,7 +63,28 @@
|
|||||||
{
|
{
|
||||||
'doctype': 'DocPerm',
|
'doctype': 'DocPerm',
|
||||||
'idx': 2,
|
'idx': 2,
|
||||||
'permlevel': 1
|
'permlevel': 1,
|
||||||
|
'role': 'Accounts User'
|
||||||
|
},
|
||||||
|
|
||||||
|
# DocPerm
|
||||||
|
{
|
||||||
|
'cancel': 1,
|
||||||
|
'create': 1,
|
||||||
|
'doctype': 'DocPerm',
|
||||||
|
'idx': 3,
|
||||||
|
'permlevel': 0,
|
||||||
|
'role': 'Accounts Manager',
|
||||||
|
'submit': 1,
|
||||||
|
'write': 1
|
||||||
|
},
|
||||||
|
|
||||||
|
# DocPerm
|
||||||
|
{
|
||||||
|
'doctype': 'DocPerm',
|
||||||
|
'idx': 4,
|
||||||
|
'permlevel': 1,
|
||||||
|
'role': 'Accounts Manager'
|
||||||
},
|
},
|
||||||
|
|
||||||
# DocField
|
# DocField
|
||||||
|
@ -1341,3 +1341,8 @@ def execute(patch_no):
|
|||||||
reload_doc('accounts', 'search_criteria', 'lease_yearly_future_installment_inflows')
|
reload_doc('accounts', 'search_criteria', 'lease_yearly_future_installment_inflows')
|
||||||
|
|
||||||
reload_doc('accounts', 'Module Def', 'Accounts')
|
reload_doc('accounts', 'Module Def', 'Accounts')
|
||||||
|
elif patch_no == 331:
|
||||||
|
p = get_obj('Patch Util')
|
||||||
|
# permission
|
||||||
|
p.add_permission('Lease Agreement', 'Accounts Manager', 0, read = 1, write=1,submit=1, cancel=1,amend=1)
|
||||||
|
p.add_permission('Lease Agreement', 'Accounts Manager', 1, read = 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user