<?xml version="1.0" encoding="utf-8"?>
<terp>
    <data>
        
        <record id="group_production_manager" model="res.groups">
            <field name="name">Production Manager</field>
        </record>
        
        <record id="group_production_worker" model="res.groups">
            <field name="name">Workers</field>
        </record>
        
        <record id="base.user_admin" model="res.users">
            <field eval="[(4 ,ref('group_production_manager')) ,(4, ref('group_production_worker'))]" name="groups_id"/>
        </record>
        
        <record id="mrp.group_production_manager" model="res.groups">
            <field eval="[(6,0,[ref('mrp.menu_mrp_root'),ref('mrp.menu_mrp_configuration'),ref('mrp.menu_mrp_production_action'),ref('mrp.menu_production_orders_start'),ref('mrp.menu_mrp_production_action3'),ref('mrp.menu_production_orders_waiting4'),ref('mrp.menu_mrp_bom_form_action'),ref('mrp.menu_mrp_routing_action'),ref('mrp.menu_mrp_workcenter_action'),ref('mrp.menu_bom_tree'),ref('mrp.menu_mrp_bom_form_action2'),ref('mrp.menu_mrp_property_group_action'),ref('mrp.menu_mrp_property_action'),ref('mrp.menu_mrp_procurement_action'),ref('mrp.menu_mrp_procurement_action2'),ref('mrp.menu_mrp_procurement_action3'),ref('mrp.menu_mrp_procurement_action11'),ref('mrp.menu_wiz_mrp_proc1'),ref('mrp.menu_mrp_procurement_action')])]" name="menu_access"/>
        </record>
        
        <record id="mrp.group_production_worker" model="res.groups">
            <field eval="[(6,0,[ref('mrp.menu_mrp_root'),ref('mrp.menu_mrp_configuration'),ref('mrp.menu_mrp_production_action'),ref('mrp.menu_production_orders_start'),ref('mrp.menu_mrp_production_action3'),ref('mrp.menu_production_orders_waiting4'),ref('mrp.menu_mrp_bom_form_action'),ref('mrp.menu_mrp_routing_action'),ref('mrp.menu_mrp_workcenter_action'),ref('mrp.menu_bom_tree'),ref('mrp.menu_mrp_bom_form_action2'),ref('mrp.menu_mrp_property_group_action'),ref('mrp.menu_mrp_property_action'),ref('mrp.menu_mrp_procurement_action'),ref('mrp.menu_mrp_procurement_action2'),ref('mrp.menu_mrp_procurement_action3'),ref('mrp.menu_mrp_procurement_action11'),ref('mrp.menu_wiz_mrp_proc1'),ref('mrp.menu_mrp_procurement_action')])]" name="menu_access"/>
        </record>
        
        <record id="product.group_product_manager" model="res.groups">
            <field eval="[(6,0,[ref('stock.menu_action_production_lot_form'),ref('mrp.menu_mrp_root'),ref('mrp.menu_mrp_production_action'),ref('mrp.menu_production_orders_start'),ref('mrp.menu_mrp_production_action3'),ref('mrp.menu_production_orders_waiting4')])]" name="menu_access"/>
        </record>
        
        <!-- Workcenter security -->
        <record id="mrp_workcenter" model="ir.model.access">
            <field name="name">Workcenter</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.workcenter')]"/>
            <field eval="True" name="perm_read"/>
            <field eval="False" name="perm_write"/>
            <field eval="False" name="perm_create"/>
            <field eval="False" name="perm_unlink"/>
        </record>
        
        <record id="mrp_workcenter_manager" model="ir.model.access">
            <field name="name">Workcenter</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.workcenter')]"/>
            <field name="group_id" ref="group_production_manager"/>
            <field eval="True" name="perm_read"/>
            <field eval="True" name="perm_write"/>
            <field eval="True" name="perm_create"/>
            <field eval="True" name="perm_unlink"/>
        </record>
        
        <!-- Property security -->
        <record id="mrp_property" model="ir.model.access">
            <field name="name">Property</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.property')]"/>
            <field eval="True" name="perm_read"/>
            <field eval="False" name="perm_write"/>
            <field eval="False" name="perm_create"/>
            <field eval="False" name="perm_unlink"/>
        </record>
        
        <record id="mrp_property_manager" model="ir.model.access">
            <field name="name">Property</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.property')]"/>
            <field name="group_id" ref="group_production_manager"/>
            <field eval="True" name="perm_read"/>
            <field eval="True" name="perm_write"/>
            <field eval="True" name="perm_create"/>
            <field eval="True" name="perm_unlink"/>
        </record>
        
        <!-- Property Group security -->
        <record id="mrp_property_group" model="ir.model.access">
            <field name="name">Property Group</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.property.group')]"/>
            <field eval="True" name="perm_read"/>
            <field eval="False" name="perm_write"/>
            <field eval="False" name="perm_create"/>
            <field eval="False" name="perm_unlink"/>
        </record>
        
        <record id="mrp_property_group_manager" model="ir.model.access">
            <field name="name">Property Group</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.property.group')]"/>
            <field name="group_id" ref="group_production_manager"/>
            <field eval="True" name="perm_read"/>
            <field eval="True" name="perm_write"/>
            <field eval="True" name="perm_create"/>
            <field eval="True" name="perm_unlink"/>
        </record>
        
        <!-- Routing security -->
        <record id="mrp_routing" model="ir.model.access">
            <field name="name">Routing</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.routing')]"/>
            <field eval="True" name="perm_read"/>
            <field eval="False" name="perm_write"/>
            <field eval="False" name="perm_create"/>
            <field eval="False" name="perm_unlink"/>
        </record>
        
        <record id="mrp_routing_manager" model="ir.model.access">
            <field name="name">Routing</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.routing')]"/>
            <field name="group_id" ref="group_production_manager"/>
            <field eval="True" name="perm_read"/>
            <field eval="True" name="perm_write"/>
            <field eval="True" name="perm_create"/>
            <field eval="True" name="perm_unlink"/>
        </record>
        
        <!-- Workcenter Routing security -->
        <record id="mrp_routing_workcenter" model="ir.model.access">
            <field name="name">Workcenter Routing</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.routing.workcenter')]"/>
            <field eval="True" name="perm_read"/>
            <field eval="False" name="perm_write"/>
            <field eval="False" name="perm_create"/>
            <field eval="False" name="perm_unlink"/>
        </record>
        
        <record id="mrp_routing_workcenter_manager" model="ir.model.access">
            <field name="name">Workcenter Routing</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.routing.workcenter')]"/>
            <field name="group_id" ref="group_production_manager"/>
            <field eval="True" name="perm_read"/>
            <field eval="True" name="perm_write"/>
            <field eval="True" name="perm_create"/>
            <field eval="True" name="perm_unlink"/>
        </record>
        
        <!-- BOM security -->
        <record id="mrp_bom" model="ir.model.access">
            <field name="name">Bill of Material</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.bom')]"/>
            <field eval="True" name="perm_read"/>
            <field eval="False" name="perm_write"/>
            <field eval="False" name="perm_create"/>
            <field eval="False" name="perm_unlink"/>
        </record>
        
        <record id="mrp_bom_manager" model="ir.model.access">
            <field name="name">Bill of Material</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.bom')]"/>
            <field name="group_id" ref="group_production_manager"/>
            <field eval="True" name="perm_read"/>
            <field eval="True" name="perm_write"/>
            <field eval="True" name="perm_create"/>
            <field eval="True" name="perm_unlink"/>
        </record>
        
        <!-- BOM Revision security -->
        <record id="mrp_bom_revision" model="ir.model.access">
            <field name="name">Bom Revision</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.bom.revision')]"/>
            <field eval="True" name="perm_read"/>
            <field eval="False" name="perm_write"/>
            <field eval="False" name="perm_create"/>
            <field eval="False" name="perm_unlink"/>
        </record>
        
        <record id="mrp_bom_revision_manager" model="ir.model.access">
            <field name="name">Bom Revision</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.bom.revision')]"/>
            <field name="group_id" ref="group_production_manager"/>
            <field eval="True" name="perm_read"/>
            <field eval="True" name="perm_write"/>
            <field eval="True" name="perm_create"/>
            <field eval="True" name="perm_unlink"/>
        </record>
        
        <!-- Production security -->
        <record id="mrp_production" model="ir.model.access">
            <field name="name">Production</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.production')]"/>
            <field eval="True" name="perm_read"/>
            <field eval="False" name="perm_write"/>
            <field eval="False" name="perm_create"/>
            <field eval="False" name="perm_unlink"/>
        </record>
        
        <record id="mrp_production_worker" model="ir.model.access">
            <field name="name">Production</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.production')]"/>
            <field name="group_id" ref="group_production_worker"/>
            <field eval="True" name="perm_read"/>
            <field eval="True" name="perm_write"/>
            <field eval="True" name="perm_create"/>
            <field eval="True" name="perm_unlink"/>
        </record>
        
        <!-- Procurement security -->
        <record id="mrp_procurement" model="ir.model.access">
            <field name="name">Procurement</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.procurement')]"/>
            <field eval="True" name="perm_read"/>
            <field eval="True" name="perm_write"/>
            <field eval="True" name="perm_create"/>
            <field eval="False" name="perm_unlink"/>
        </record>
        
        <record id="mrp_procurement_worker" model="ir.model.access">
            <field name="name">Procurement</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.procurement')]"/>
            <field name="group_id" ref="group_production_worker"/>
            <field eval="True" name="perm_read"/>
            <field eval="True" name="perm_write"/>
            <field eval="True" name="perm_create"/>
            <field eval="False" name="perm_unlink"/>
        </record>
        
        <!-- Production Product Line security -->
        <record id="mrp_production_product_line" model="ir.model.access">
            <field name="name">Production Product Line</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.production.product.line')]"/>
            <field eval="True" name="perm_read"/>
            <field eval="False" name="perm_write"/>
            <field eval="False" name="perm_create"/>
            <field eval="False" name="perm_unlink"/>
        </record>
        
        <record id="mrp_production_product_line_worker" model="ir.model.access">
            <field name="name">Production Product Line</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.production.product.line')]"/>
            <field name="group_id" ref="group_production_manager"/>
            <field eval="True" name="perm_read"/>
            <field eval="True" name="perm_write"/>
            <field eval="True" name="perm_create"/>
            <field eval="True" name="perm_unlink"/>
        </record>
        
        <!-- Production Workcenter Line security -->
        <record id="mrp_production_workcenter_line" model="ir.model.access">
            <field name="name">Production Product Line</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.production.workcenter.line')]"/>
            <field eval="True" name="perm_read"/>
            <field eval="False" name="perm_write"/>
            <field eval="False" name="perm_create"/>
            <field eval="False" name="perm_unlink"/>
        </record>
        
        <record id="mrp_production_workcenter_line_worker" model="ir.model.access">
            <field name="name">Production Product Line</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'mrp.production.workcenter.line')]"/>
            <field name="group_id" ref="group_production_manager"/>
            <field eval="True" name="perm_read"/>
            <field eval="True" name="perm_write"/>
            <field eval="True" name="perm_create"/>
            <field eval="True" name="perm_unlink"/>
        </record>
        
        <!-- Stock Movement Security -->
        <record id="mrp_stock_move" model="ir.model.access">
            <field name="name">Stock Move</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'stock.move')]"/>
            <field eval="True" name="perm_read"/>
            <field eval="True" name="perm_write"/>
            <field eval="True" name="perm_create"/>
            <field eval="False" name="perm_unlink"/>
        </record>
        
        <record id="mrp_stock_move_worker" model="ir.model.access">
            <field name="name">Stock Move</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'stock.move')]"/>
            <field name="group_id" ref="group_production_manager"/>
            <field eval="True" name="perm_read"/>
            <field eval="True" name="perm_write"/>
            <field eval="True" name="perm_create"/>
            <field eval="True" name="perm_unlink"/>
        </record>
        
        
        <!-- Order Point Security -->
        <record id="mrp_order_point" model="ir.model.access">
            <field name="name">Stock Move</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'stock.warehouse.orderpoint')]"/>
            <field eval="True" name="perm_read"/>
            <field eval="True" name="perm_write"/>
            <field eval="True" name="perm_create"/>
            <field eval="False" name="perm_unlink"/>
        </record>
        
        <record id="mrp_order_point_worker" model="ir.model.access">
            <field name="name">Stock Move</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'stock.warehouse.orderpoint')]"/>
            <field name="group_id" ref="group_production_manager"/>
            <field eval="True" name="perm_read"/>
            <field eval="True" name="perm_write"/>
            <field eval="True" name="perm_create"/>
            <field eval="True" name="perm_unlink"/>
        </record>
    </data>
</terp>