[Fix] stock_location: Fix the security rule
bzr revid: sbh@tinyerp.com-20100811113424-d3vwqs2ex532c42y
This commit is contained in:
parent
075d7dfe28
commit
f78cd43101
|
@ -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, {}))
|
||||
|
|
|
@ -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
|
||||
|
|
|
Loading…
Reference in New Issue