From fa355176d5a975b4db93a799ef9f107d7fbc732e Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Fri, 2 May 2014 16:48:09 +0200 Subject: [PATCH 1/2] [IMP] Add read access for contact creation user on routes bzr revid: jco@openerp.com-20140502144809-vkt5qufxn93u89ob --- addons/stock/security/ir.model.access.csv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/stock/security/ir.model.access.csv b/addons/stock/security/ir.model.access.csv index 213e4df5adc..9ce558781be 100644 --- a/addons/stock/security/ir.model.access.csv +++ b/addons/stock/security/ir.model.access.csv @@ -61,6 +61,7 @@ access_stock_location_path_sale_manager,stock.location.path partner salemanager, access_stock_location_path_stock_user,stock.location.path stock user,model_stock_location_path,stock.group_stock_user,1,1,1,1 access_stock_location_path,stock.location.path,model_stock_location_path,base.group_sale_salesman,1,0,0,0 access_stock_location_route,stock.location.route,model_stock_location_route,stock.group_stock_manager,1,1,1,1 +access_stock_location_route,stock.location.route,model_stock_location_route,base.group_user,1,0,0,0 access_procurement_rule,procurement.rule.flow,model_procurement_rule,base.group_sale_salesman,1,0,0,0 access_procurement_rule_internal,procurement.rule.flow internal,model_procurement_rule,base.group_user,1,0,0,0 access_stock_pack_operation_manager,stock.pack.operation manager,model_stock_pack_operation,stock.group_stock_manager,1,1,1,1 @@ -73,4 +74,4 @@ access_stock_move_operation_link_manager,stock.move.operation.link manager,model access_stock_move_operation_link_user,stock.move.operation.link user,model_stock_move_operation_link,stock.group_stock_user,1,1,1,1 access_stock_move_operation_link_all,stock.move.operation.link all users,model_stock_move_operation_link,base.group_user,1,0,0,0 access_product_price_history_stock_user,prices.history stock user,product.model_product_price_history,stock.group_stock_user,1,0,1,0 -access_product_price_history_stock_manager,prices.history stock manager,product.model_product_price_history,stock.group_stock_manager,1,1,1,1 \ No newline at end of file +access_product_price_history_stock_manager,prices.history stock manager,product.model_product_price_history,stock.group_stock_manager,1,1,1,1 From c818a210ab325a9e2651088fff63629185e05736 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Mon, 5 May 2014 16:26:54 +0200 Subject: [PATCH 2/2] [IMP] Check user demo will not have error in checking access rules when seeing picking in barcode itf bzr revid: jco@openerp.com-20140505142654-sjhz1wdoqxztzbrx --- addons/stock/static/src/js/widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/static/src/js/widgets.js b/addons/stock/static/src/js/widgets.js index 6a770a777b3..d676bb3199f 100644 --- a/addons/stock/static/src/js/widgets.js +++ b/addons/stock/static/src/js/widgets.js @@ -596,7 +596,7 @@ function openerp_picking_widgets(instance){ // if we have a specified picking id, we load that one, and we load the picking of the same type as the active list if( picking_id ){ var loaded_picking = new instance.web.Model('stock.picking') - .call('read',[[picking_id], [], new instance.web.CompoundContext()]) + .call('read',[[parseInt(picking_id)], [], new instance.web.CompoundContext()]) .then(function(picking){ self.picking = picking[0];