fixed conflict

This commit is contained in:
Nabin Hait 2012-05-23 12:57:05 +05:30
commit ea538bb9c7
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,9 @@
def execute():
import webnotes
from webnotes.model.doc import Document
if not webnotes.conn.sql("select name from `tabRole` where name = 'Report Manager'"):
r = Document('Role')
r.role_name = 'Report Manager'
r.module = 'Core'
r.save()

View File

@ -387,5 +387,10 @@ patch_list = [
'patch_file': 'same_purchase_rate_patch',
'description': 'Main same rate throughout pur cycle: in global defaults, by default set true'
},
{
'patch_module': 'patches.may_2012',
'patch_file': 'create_report_manager_role',
'description': 'Create report manager role if not exists'
},
]