[Fix] stock_location: Fix the security rule

bzr revid: sbh@tinyerp.com-20100811113424-d3vwqs2ex532c42y
This commit is contained in:
sbh (Open ERP) 2010-08-11 17:04:24 +05:30
parent 075d7dfe28
commit f78cd43101
2 changed files with 3 additions and 1 deletions

View File

@ -64,6 +64,7 @@ class stock_ups_final(osv.osv_memory):
""" Creates xml report file.
@return: xml file
"""
data={}
report = netsvc._group['report']['report.stock.move.lot.ups_xml']
data['report_type'] = 'raw'
return {'xmlfile' : report.create(uid, context['active_id'], ids, {})}
@ -82,6 +83,7 @@ class stock_ups_upload(osv.osv_memory):
""" Uploads xml report file.
@return:
"""
data={}
report = netsvc._group['report']['report.stock.move.lot.ups_xml']
data['report_type'] = 'raw'
fp = file('/tmp/test.xml', 'w').write(report.create(uid, context['active_id'], ids, {}))

View File

@ -5,4 +5,4 @@
"access_stock_location_path_user","stock location path user","model_stock_location_path","stock.group_stock_user",1,0,0,0
"access_stock_location_path_manager","stock location path manager","model_stock_location_path","stock.group_stock_manager",1,1,1,1
"access_stock_location_path_partner_manager","stock.location.path partner manager","model_stock_location_path","product.group_product_manager",1,1,1,1
"access_stock_location_path_purchase_user","stock.location.path purchase user","model_stock_location_path","purchase.group_purchase_user",1,1,1,1
"access_stock_location_path_stock_user","stock.location.path stock user","model_stock_location_path","stock.group_stock_user",1,1,1,1

1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
5 access_stock_location_path_user stock location path user model_stock_location_path stock.group_stock_user 1 0 0 0
6 access_stock_location_path_manager stock location path manager model_stock_location_path stock.group_stock_manager 1 1 1 1
7 access_stock_location_path_partner_manager stock.location.path partner manager model_stock_location_path product.group_product_manager 1 1 1 1
8 access_stock_location_path_purchase_user access_stock_location_path_stock_user stock.location.path purchase user stock.location.path stock user model_stock_location_path purchase.group_purchase_user stock.group_stock_user 1 1 1 1