[MOD] stock_*, delivery : Modifications in access rights

bzr revid: vir@tinyerp.com-20100806105011-y4nnkgw377i4kkly
This commit is contained in:
Vir (Open ERP)
2010-08-06 16:20:11 +05:30
parent d73bb422f4
commit b92dca2fce
7 changed files with 70 additions and 30 deletions
+3 -1
View File
@@ -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
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
6 access_delivery_grid_manager delivery.grid model_delivery_grid base.group_sale_manager 1 1 1 1
7 access_delivery_grid_line_manager delivery.grid.line model_delivery_grid_line base.group_sale_manager 1 1 1 1
8 access_delivery_carrier_partner_manager delivery.carrier partner_manager model_delivery_carrier base.group_partner_manager 1 0 0 0
9 access_delivery_carrier_stock_worker access_delivery_carrier_stock_system delivery.carrier stock_worker delivery.carrier stock_system model_delivery_carrier stock.group_stock_user base.group_system 1 0 1 0 1 0 1
10 access_delivery_grid_system delivery.grid.system model_delivery_grid base.group_system 1 1 1 1
11 access_delivery_grid_line_system delivery.grid.line.system model_delivery_grid_line base.group_system 1 1 1 1
@@ -219,7 +219,7 @@
<field name="search_view_id" eval="False"/>
<field name="context">{'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}</field>
</record>
<menuitem action="action_stock_inventory_report" id="menu_action_stock_inventory_report" parent="next_id_61" sequence="4"/>
<menuitem action="action_stock_inventory_report" id="menu_action_stock_inventory_report" parent="next_id_61" sequence="4" groups="base.group_system,base.group_user"/>
</data>
+42 -16
View File
@@ -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
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_stock_incoterms_all stock.incoterms all model_stock_incoterms 1 0 0 0
3 access_stock_incoterms_manager stock.incoterms manager model_stock_incoterms stock.group_stock_manager 1 1 1 1
4 access_stock_warehouse_manager stock.warehouse.manager model_stock_warehouse stock.group_stock_manager 1 1 1 1
5 access_stock_warehouse_user stock.warehouse.user model_stock_warehouse base.group_user 1 0 0 0
6 access_stock_location_manager stock.location.manager model_stock_location stock.group_stock_manager 1 1 0 1 0 1 0
7 access_stock_location_user stock.location.user model_stock_location base.group_user 1 0 1 0 1 0 1
8 access_stock_journal_user stock.journal.user model_stock_journal base.group_user 1 0 0 0
9 access_stock_journal_manager stock.journal.manager model_stock_journal stock.group_stock_manager 1 1 1 1
10 access_stock_tracking access_stock_tracking_user stock.tracking stock.tracking user model_stock_tracking stock.group_stock_user 1 1 1 0 1
11 access_stock_picking access_stock_tracking_manager stock.picking stock.tracking manager model_stock_picking model_stock_tracking stock.group_stock_user stock.group_stock_manager 1 1 0 1 0 1 0
12 access_stock_production_lot access_stock_tracking_system stock.production.lot stock.tracking systen model_stock_production_lot model_stock_tracking stock.group_stock_user base.group_system 1 1 0 1 0 0
13 access_stock_picking_user stock.picking user model_stock_picking stock.group_stock_user 1 1 1 1
14 access_stock_picking_manager stock.picking manager model_stock_picking stock.group_stock_manager 1 0 0 0
15 access_stock_picking_system stock.picking system model_stock_picking base.group_system 1 0 0 0
16 access_stock_production_lot_manager stock.production.lot manager model_stock_production_lot stock.group_stock_manager 1 0 0 0
17 access_stock_production_lot_system stock.production.lot system model_stock_production_lot base.group_system 1 0 0 0
18 access_stock_production_lot_user stock.production.lot user model_stock_production_lot stock.group_stock_user 1 1 1 1
19 access_stock_production_lot_revision stock.production.lot.revision model_stock_production_lot_revision stock.group_stock_user 1 1 1 1
20 access_stock_move access_stock_move_manager stock.move stock.move manager model_stock_move stock.group_stock_user stock.group_stock_manager 1 1 0 1 0 1 0
21 access_stock_inventory access_stock_move_user stock.inventory stock.move user model_stock_inventory model_stock_move stock.group_stock_user 1 1 1 1
22 access_stock_inventory_line access_stock_move_system stock.inventory.line stock.move system model_stock_inventory_line model_stock_move stock.group_stock_user base.group_system 1 1 0 1 0 1 0
23 access_stock_inventory_user stock.inventory user model_stock_inventory stock.group_stock_user 1 1 1 1
24 access_stock_inventory_system stock.inventory system model_stock_inventory base.group_system 1 0 0 0
25 access_stock_inventory_manager stock.inventory manager model_stock_inventory stock.group_stock_manager 1 0 0 0
26 access_stock_inventory_line_user stock.inventory.line user model_stock_inventory_line stock.group_stock_user 1 1 1 1
27 access_stock_inventory_line_manager stock.inventory.line manager model_stock_inventory_line stock.group_stock_manager 1 0 0 0
28 access_stock_inventory_line_system stock.inventory.line system model_stock_inventory_line base.group_system 1 0 0 0
29 access_stock_report_prodlots stock.report.prodlots model_stock_report_prodlots stock.group_stock_manager 1 0 0 0
30 access_stock_location_product_manager stock.location product manager model_stock_location product.group_product_manager 1 0 0 0
31 access_stock_lines_date access_stock_lines_date_user report.stock.lines.date all report.stock.lines.date user model_report_stock_lines_date stock.group_stock_user 1 0 0 0
32 access_stock_lines_date_manager report.stock.lines.date manager model_report_stock_lines_date stock.group_stock_manager 1 1 1 1
33 access_stock_lines_date_system report.stock.lines.date system model_report_stock_lines_date base.group_system 1 0 0 0
34 access_stock_report_tracklots stock.report.tracklots model_stock_report_tracklots stock.group_stock_user 1 1 1 1
35 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
36 access_report_delivery_products_planned report.delivery.products.planned model_report_delivery_products_planned stock.group_stock_user 1 1 1 1
37 access_report_stock_move access_report_stock_move_user report.stock.move report.stock.move user model_report_stock_move stock.group_stock_user 1 0 0 0
38 access_report_stock_move access_report_stock_move_system report.stock.move report.stock.move system model_report_stock_move stock.group_stock_manager base.group_system 1 1 0 1 0 1 0
39 access_report_stock_inventory access_report_stock_move_manager report.stock.inventory report.stock.move manager model_report_stock_inventory model_report_stock_move stock.group_stock_user stock.group_stock_manager 1 1 1 1
40 access_report_stock_inventory access_report_stock_inventory_user report.stock.inventory report.stock.inventory user model_report_stock_inventory stock.group_stock_manager stock.group_stock_user 1 1 1 1
41 access_report_stock_picking access_report_stock_inventory_manager report.stock.picking report.stock.inventory manager model_report_stock_picking model_report_stock_inventory stock.group_stock_user stock.group_stock_manager 1 1 1 1
42 access_report_stock_picking access_report_stock_inventory_system report.stock.picking report.stock.inventory system model_report_stock_picking model_report_stock_inventory stock.group_stock_manager base.group_system 1 1 0 1 0 1 0
43 access_report_stock_picking_user report.stock.picking user model_report_stock_picking stock.group_stock_user 1 1 1 1
44 access_report_stock_picking_manager report.stock.picking manager model_report_stock_picking stock.group_stock_manager 1 1 1 1
45 access_report_stock_picking_system report.stock.picking system model_report_stock_picking base.group_system 1 0 0 0
46 access_stock_warehouse_system stock.warehouse.system model_stock_warehouse base.group_system 1 1 1 1
47 access_stock_location_system stock.location.system model_stock_location base.group_system 1 1 1 1
48 access_stock_journal_system stock.journal.system model_stock_journal base.group_system 1 1 1 1
49 access_product_product_stock product_product_stock product.model_product_product base.group_system 1 0 0 0
50 access_product_template_stock_system product.template stock system product.model_product_template base.group_system 1 0 0 0
51 access_product_product_stock_user product_product_stock_user product.model_product_product stock.group_stock_user 1 1 1 1
52 access_product_template_stock_user product.template stock user product.model_product_template stock.group_stock_user 1 1 1 1
53 access_product_product_stock_manager product_product_stock_manager product.model_product_product stock.group_stock_manager 1 0 0 0
54 access_product_template_stock_manager product.template stock manager product.model_product_template stock.group_stock_manager 1 0 0 0
+12 -4
View File
@@ -6,15 +6,23 @@
<field name="name">Warehouse / Manager</field>
</record>
<record id="group_stock_user" model="res.groups">
<field name="name">Warehouse / Worker</field>
<field name="name">Warehouse / User</field>
</record>
<record model='ir.ui.menu' id='menu_stock_root'>
<field name="groups_id" eval="[(6,0,[ref('group_stock_manager'),ref('group_stock_user')])]"/>
<field name="groups_id" eval="[(6,0,[ref('group_stock_manager'),ref('group_stock_user'),ref('base.group_system')])]"/>
</record>
<record model='ir.ui.menu' id='menu_stock_configuration'>
<field name="groups_id" eval="[(6,0,[ref('group_stock_manager')])]"/>
<record model='ir.ui.menu' id='menu_action_location_tree'>
<field name="groups_id" eval="[(6,0,[ref('group_stock_manager'),ref('group_stock_user'),ref('base.group_system')])]"/>
</record>
<record model='ir.ui.menu' id='menu_action_tracking_form'>
<field name="groups_id" eval="[(6,0,[ref('group_stock_manager'),ref('group_stock_user'),ref('base.group_system')])]"/>
</record>
<record model='ir.ui.menu' id='menu_action_production_lot_form'>
<field name="groups_id" eval="[(6,0,[ref('group_stock_manager'),ref('group_stock_user'),ref('base.group_system')])]"/>
</record>
<!-- multi -->
+4 -4
View File
@@ -7,7 +7,7 @@
<menuitem id="menu_stock_products_moves" name="Products Moves" parent="menu_stock_root" sequence="2"/>
<menuitem id="menu_stock_product" name="Product" parent="menu_stock_root" sequence="6"/>
<menuitem action="product.product_normal_action" id="menu_stock_products_menu" parent="menu_stock_product" sequence="1"/>
<menuitem id="menu_stock_configuration" name="Configuration" parent="menu_stock_root" sequence="15"/>
<menuitem id="menu_stock_configuration" name="Configuration" parent="menu_stock_root" sequence="15" groups="base.group_system"/>
<menuitem id="menu_warehouse_config" name="Warehouse mangement" parent="menu_stock_configuration" sequence="1" groups="base.group_system"/>
<menuitem id="menu_stock_inventory_control" name="Inventory Control" parent="menu_stock_root" sequence="4"/>
@@ -485,7 +485,7 @@
<field name="view_id" ref="view_location_tree2"/>
<field name="context">{'full':1, 'search_default_in_location':1}</field>
</record>
<menuitem action="action_location_form" id="menu_action_location_form" parent="menu_warehouse_config" />
<menuitem action="action_location_form" id="menu_action_location_form" parent="menu_warehouse_config" groups="base.group_system"/>
<record id="view_location_tree" model="ir.ui.view">
<field name="name">stock.location.tree</field>
@@ -545,7 +545,7 @@
<field name="view_type">form</field>
<field name="view_id" ref="view_warehouse_tree"/>
</record>
<menuitem action="action_warehouse_form" id="menu_action_warehouse_form" parent="menu_warehouse_config"/>
<menuitem action="action_warehouse_form" id="menu_action_warehouse_form" parent="menu_warehouse_config" groups="base.group_system"/>
<record id="stock_picking_move_wizard_form" model="ir.ui.view">
<field name="name">stock.picking.move.wizard.form</field>
@@ -1962,7 +1962,7 @@
<menuitem
action="action_stock_journal_form"
id="menu_action_stock_journal_form"
groups="base.group_extended"
groups="base.group_extended,base.group_system"
parent="menu_warehouse_config" />
</data>
@@ -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
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_stock_planning access_stock_planning_system stock.planning stock.planning system model_stock_planning stock.group_stock_user base.group_system 1 1 0 1 0 1 0
3 access_stock_period access_stock_planning_manager stock.period stock.planning manager model_stock_period model_stock_planning stock.group_stock_user stock.group_stock_manager 1 1 0 1 0 1 0
4 access_stock_sale_forecast access_stock_planning_user stock.sale.forecast stock.planning user model_stock_sale_forecast model_stock_planning stock.group_stock_user 1 1 1 1
5 access_stock_period_ stock.period model_stock_period base.group_system 1 1 1 1
6 access_stock_sale_forecast_user stock.sale.forecast user model_stock_sale_forecast base.group_sale_salesman 1 1 1 1
7 access_stock_sale_forecast_manager stock.sale.forecast manager model_stock_sale_forecast base.group_sale_manager 1 0 0 0
8 access_stock_sale_forecast_system stock.sale.forecast system model_stock_sale_forecast base.group_system 1 0 0 0
@@ -3,7 +3,7 @@
<data>
<menuitem id="menu_stock_period_main"
name="Stock and Sales Periods"
parent="base.menu_base_config" sequence="20"/>
parent="base.menu_base_config" groups="base.group_system" sequence="20"/>
<!-- Periods tree and form section -->