From b92dca2fceb07e54080a854a10fcbf3687b894ca Mon Sep 17 00:00:00 2001 From: "Vir (Open ERP)" Date: Fri, 6 Aug 2010 16:20:11 +0530 Subject: [PATCH] [MOD] stock_*, delivery : Modifications in access rights bzr revid: vir@tinyerp.com-20100806105011-y4nnkgw377i4kkly --- addons/delivery/security/ir.model.access.csv | 4 +- .../stock/report/report_stock_move_view.xml | 2 +- addons/stock/security/ir.model.access.csv | 58 ++++++++++++++----- addons/stock/security/stock_security.xml | 16 +++-- addons/stock/stock_view.xml | 8 +-- .../security/ir.model.access.csv | 10 +++- addons/stock_planning/stock_planning_view.xml | 2 +- 7 files changed, 70 insertions(+), 30 deletions(-) diff --git a/addons/delivery/security/ir.model.access.csv b/addons/delivery/security/ir.model.access.csv index a711bc7260b..409fba3becd 100644 --- a/addons/delivery/security/ir.model.access.csv +++ b/addons/delivery/security/ir.model.access.csv @@ -6,4 +6,6 @@ "access_delivery_grid_manager","delivery.grid","model_delivery_grid","base.group_sale_manager",1,1,1,1 "access_delivery_grid_line_manager","delivery.grid.line","model_delivery_grid_line","base.group_sale_manager",1,1,1,1 "access_delivery_carrier_partner_manager","delivery.carrier partner_manager","model_delivery_carrier","base.group_partner_manager",1,0,0,0 -"access_delivery_carrier_stock_worker","delivery.carrier stock_worker","model_delivery_carrier","stock.group_stock_user",1,0,0,0 +"access_delivery_carrier_stock_system","delivery.carrier stock_system","model_delivery_carrier","base.group_system",1,1,1,1 +"access_delivery_grid_system","delivery.grid.system","model_delivery_grid","base.group_system",1,1,1,1 +"access_delivery_grid_line_system","delivery.grid.line.system","model_delivery_grid_line","base.group_system",1,1,1,1 diff --git a/addons/stock/report/report_stock_move_view.xml b/addons/stock/report/report_stock_move_view.xml index 9d269160fb9..2c8c1ad80e9 100644 --- a/addons/stock/report/report_stock_move_view.xml +++ b/addons/stock/report/report_stock_move_view.xml @@ -219,7 +219,7 @@ {'contact_display': 'partner', 'search_default_real':1, 'search_default_location_type_internal':1,'search_default_group_product':1,'search_default_group_location':1,'group_by':[], 'group_by_no_leaf':1} - + diff --git a/addons/stock/security/ir.model.access.csv b/addons/stock/security/ir.model.access.csv index 3d8ac31e907..a120ce0c571 100644 --- a/addons/stock/security/ir.model.access.csv +++ b/addons/stock/security/ir.model.access.csv @@ -1,28 +1,54 @@ "id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" "access_stock_incoterms_all","stock.incoterms all","model_stock_incoterms",,1,0,0,0 -"access_stock_incoterms_manager","stock.incoterms manager","model_stock_incoterms",stock.group_stock_manager,1,1,1,1 +"access_stock_incoterms_manager","stock.incoterms manager","model_stock_incoterms","stock.group_stock_manager",1,1,1,1 "access_stock_warehouse_manager","stock.warehouse.manager","model_stock_warehouse","stock.group_stock_manager",1,1,1,1 "access_stock_warehouse_user","stock.warehouse.user","model_stock_warehouse","base.group_user",1,0,0,0 -"access_stock_location_manager","stock.location.manager","model_stock_location","stock.group_stock_manager",1,1,1,1 -"access_stock_location_user","stock.location.user","model_stock_location","base.group_user",1,0,0,0 +"access_stock_location_manager","stock.location.manager","model_stock_location","stock.group_stock_manager",1,0,0,0 +"access_stock_location_user","stock.location.user","model_stock_location","base.group_user",1,1,1,1 "access_stock_journal_user","stock.journal.user","model_stock_journal","base.group_user",1,0,0,0 "access_stock_journal_manager","stock.journal.manager","model_stock_journal","stock.group_stock_manager",1,1,1,1 -"access_stock_tracking","stock.tracking","model_stock_tracking","stock.group_stock_user",1,1,1,0 -"access_stock_picking","stock.picking","model_stock_picking","stock.group_stock_user",1,1,1,1 -"access_stock_production_lot","stock.production.lot","model_stock_production_lot","stock.group_stock_user",1,1,1,0 +"access_stock_tracking_user","stock.tracking user","model_stock_tracking","stock.group_stock_user",1,1,1,1 +"access_stock_tracking_manager","stock.tracking manager","model_stock_tracking","stock.group_stock_manager",1,0,0,0 +"access_stock_tracking_system","stock.tracking systen","model_stock_tracking","base.group_system",1,0,0,0 +"access_stock_picking_user","stock.picking user","model_stock_picking","stock.group_stock_user",1,1,1,1 +"access_stock_picking_manager","stock.picking manager","model_stock_picking","stock.group_stock_manager",1,0,0,0 +"access_stock_picking_system","stock.picking system","model_stock_picking","base.group_system",1,0,0,0 +"access_stock_production_lot_manager","stock.production.lot manager","model_stock_production_lot","stock.group_stock_manager",1,0,0,0 +"access_stock_production_lot_system","stock.production.lot system","model_stock_production_lot","base.group_system",1,0,0,0 +"access_stock_production_lot_user","stock.production.lot user","model_stock_production_lot","stock.group_stock_user",1,1,1,1 "access_stock_production_lot_revision","stock.production.lot.revision","model_stock_production_lot_revision","stock.group_stock_user",1,1,1,1 -"access_stock_move","stock.move","model_stock_move","stock.group_stock_user",1,1,1,1 -"access_stock_inventory","stock.inventory","model_stock_inventory","stock.group_stock_user",1,1,1,1 -"access_stock_inventory_line","stock.inventory.line","model_stock_inventory_line","stock.group_stock_user",1,1,1,1 +"access_stock_move_manager","stock.move manager","model_stock_move","stock.group_stock_manager",1,0,0,0 +"access_stock_move_user","stock.move user","model_stock_move","stock.group_stock_user",1,1,1,1 +"access_stock_move_system","stock.move system","model_stock_move","base.group_system",1,0,0,0 +"access_stock_inventory_user","stock.inventory user","model_stock_inventory","stock.group_stock_user",1,1,1,1 +"access_stock_inventory_system","stock.inventory system","model_stock_inventory","base.group_system",1,0,0,0 +"access_stock_inventory_manager","stock.inventory manager","model_stock_inventory","stock.group_stock_manager",1,0,0,0 +"access_stock_inventory_line_user","stock.inventory.line user","model_stock_inventory_line","stock.group_stock_user",1,1,1,1 +"access_stock_inventory_line_manager","stock.inventory.line manager","model_stock_inventory_line","stock.group_stock_manager",1,0,0,0 +"access_stock_inventory_line_system","stock.inventory.line system","model_stock_inventory_line","base.group_system",1,0,0,0 "access_stock_report_prodlots","stock.report.prodlots","model_stock_report_prodlots","stock.group_stock_manager",1,0,0,0 "access_stock_location_product_manager","stock.location product manager","model_stock_location","product.group_product_manager",1,0,0,0 -"access_stock_lines_date","report.stock.lines.date all","model_report_stock_lines_date",stock.group_stock_user,1,0,0,0 +"access_stock_lines_date_user","report.stock.lines.date user","model_report_stock_lines_date","stock.group_stock_user",1,0,0,0 +"access_stock_lines_date_manager","report.stock.lines.date manager","model_report_stock_lines_date","stock.group_stock_manager",1,1,1,1 +"access_stock_lines_date_system","report.stock.lines.date system","model_report_stock_lines_date","base.group_system",1,0,0,0 "access_stock_report_tracklots","stock.report.tracklots","model_stock_report_tracklots","stock.group_stock_user",1,1,1,1 "access_report_products_to_received_planned","report.products.to.received.planned","model_report_products_to_received_planned","stock.group_stock_user",1,1,1,1 "access_report_delivery_products_planned","report.delivery.products.planned","model_report_delivery_products_planned","stock.group_stock_user",1,1,1,1 -"access_report_stock_move","report.stock.move","model_report_stock_move","stock.group_stock_user",1,0,0,0 -"access_report_stock_move","report.stock.move","model_report_stock_move","stock.group_stock_manager",1,1,1,1 -"access_report_stock_inventory","report.stock.inventory","model_report_stock_inventory","stock.group_stock_user",1,1,1,1 -"access_report_stock_inventory","report.stock.inventory","model_report_stock_inventory","stock.group_stock_manager",1,1,1,1 -"access_report_stock_picking","report.stock.picking","model_report_stock_picking","stock.group_stock_user",1,1,1,1 -"access_report_stock_picking","report.stock.picking","model_report_stock_picking","stock.group_stock_manager",1,1,1,1 +"access_report_stock_move_user","report.stock.move user","model_report_stock_move","stock.group_stock_user",1,0,0,0 +"access_report_stock_move_system","report.stock.move system","model_report_stock_move","base.group_system",1,0,0,0 +"access_report_stock_move_manager","report.stock.move manager","model_report_stock_move","stock.group_stock_manager",1,1,1,1 +"access_report_stock_inventory_user","report.stock.inventory user","model_report_stock_inventory","stock.group_stock_user",1,1,1,1 +"access_report_stock_inventory_manager","report.stock.inventory manager","model_report_stock_inventory","stock.group_stock_manager",1,1,1,1 +"access_report_stock_inventory_system","report.stock.inventory system","model_report_stock_inventory","base.group_system",1,0,0,0 +"access_report_stock_picking_user","report.stock.picking user","model_report_stock_picking","stock.group_stock_user",1,1,1,1 +"access_report_stock_picking_manager","report.stock.picking manager","model_report_stock_picking","stock.group_stock_manager",1,1,1,1 +"access_report_stock_picking_system","report.stock.picking system","model_report_stock_picking","base.group_system",1,0,0,0 +"access_stock_warehouse_system","stock.warehouse.system","model_stock_warehouse","base.group_system",1,1,1,1 +"access_stock_location_system","stock.location.system","model_stock_location","base.group_system",1,1,1,1 +"access_stock_journal_system","stock.journal.system","model_stock_journal","base.group_system",1,1,1,1 +"access_product_product_stock","product_product_stock","product.model_product_product","base.group_system",1,0,0,0 +"access_product_template_stock_system","product.template stock system","product.model_product_template","base.group_system",1,0,0,0 +"access_product_product_stock_user","product_product_stock_user","product.model_product_product","stock.group_stock_user",1,1,1,1 +"access_product_template_stock_user","product.template stock user","product.model_product_template","stock.group_stock_user",1,1,1,1 +"access_product_product_stock_manager","product_product_stock_manager","product.model_product_product","stock.group_stock_manager",1,0,0,0 +"access_product_template_stock_manager","product.template stock manager","product.model_product_template","stock.group_stock_manager",1,0,0,0 diff --git a/addons/stock/security/stock_security.xml b/addons/stock/security/stock_security.xml index 037c3dfeaef..7280e238e8b 100644 --- a/addons/stock/security/stock_security.xml +++ b/addons/stock/security/stock_security.xml @@ -6,15 +6,23 @@ Warehouse / Manager - Warehouse / Worker + Warehouse / User - + - - + + + + + + + + + + diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml index a0998e3dcdd..e57a000deda 100644 --- a/addons/stock/stock_view.xml +++ b/addons/stock/stock_view.xml @@ -7,7 +7,7 @@ - + @@ -485,7 +485,7 @@ {'full':1, 'search_default_in_location':1} - + stock.location.tree @@ -545,7 +545,7 @@ form - + stock.picking.move.wizard.form @@ -1962,7 +1962,7 @@ diff --git a/addons/stock_planning/security/ir.model.access.csv b/addons/stock_planning/security/ir.model.access.csv index a174dbb5e41..d4d543e25c4 100644 --- a/addons/stock_planning/security/ir.model.access.csv +++ b/addons/stock_planning/security/ir.model.access.csv @@ -1,4 +1,8 @@ "id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" -"access_stock_planning","stock.planning","model_stock_planning","stock.group_stock_user",1,1,1,1 -"access_stock_period","stock.period","model_stock_period","stock.group_stock_user",1,1,1,1 -"access_stock_sale_forecast","stock.sale.forecast","model_stock_sale_forecast","stock.group_stock_user",1,1,1,1 +"access_stock_planning_system","stock.planning system","model_stock_planning","base.group_system",1,0,0,0 +"access_stock_planning_manager","stock.planning manager","model_stock_planning","stock.group_stock_manager",1,0,0,0 +"access_stock_planning_user","stock.planning user","model_stock_planning","stock.group_stock_user",1,1,1,1 +"access_stock_period_","stock.period","model_stock_period","base.group_system",1,1,1,1 +"access_stock_sale_forecast_user","stock.sale.forecast user","model_stock_sale_forecast","base.group_sale_salesman",1,1,1,1 +"access_stock_sale_forecast_manager","stock.sale.forecast manager","model_stock_sale_forecast","base.group_sale_manager",1,0,0,0 +"access_stock_sale_forecast_system","stock.sale.forecast system","model_stock_sale_forecast","base.group_system",1,0,0,0 diff --git a/addons/stock_planning/stock_planning_view.xml b/addons/stock_planning/stock_planning_view.xml index b4ea1da0f5a..9b8b6afd506 100644 --- a/addons/stock_planning/stock_planning_view.xml +++ b/addons/stock_planning/stock_planning_view.xml @@ -3,7 +3,7 @@ + parent="base.menu_base_config" groups="base.group_system" sequence="20"/>