<?xml version="1.0"?>
<!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
    <data>
        <record model="ir.ui.view" id="cost_price_view_form">
            <field name="model">company.employee_cost_price</field>
            <field name="type">form</field>
            <field name="name">employee_cost_price_form</field>
        </record>

        <record model="ir.ui.view" id="cost_price_view_tree">
            <field name="model">company.employee_cost_price</field>
            <field name="type">tree</field>
            <field name="name">employee_cost_price_tree</field>
        </record>

        <record model="ir.ui.view" id="employee_view_form">
            <field name="model">company.employee</field>
            <field name="inherit" ref="company.employee_view_form"/>
            <field name="name">employee_form</field>
        </record>

        <record model="ir.model.access" id="access_employee_cost_price">
            <field name="model">company.employee_cost_price</field>
            <field name="perm_read" eval="False"/>
            <field name="perm_write" eval="False"/>
            <field name="perm_create" eval="False"/>
            <field name="perm_delete" eval="False"/>
        </record>
        <record model="ir.model.access" id="access_employee_cost_price_admin">
            <field name="model">company.employee_cost_price</field>
            <field name="group" ref="company.group_employee_admin"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="True"/>
            <field name="perm_create" eval="True"/>
            <field name="perm_delete" eval="True"/>
        </record>
        <record model="ir.model.field.access"
            id="model_field_access_employee_cost_price">
            <field name="model">company.employee</field>
            <field name="field">cost_price</field>
            <field name="perm_read" eval="False"/>
            <field name="perm_write" eval="False"/>
        </record>
        <record model="ir.model.field.access"
            id="model_field_access_employee_cost_price_admin">
            <field name="model">company.employee</field>
            <field name="field">cost_price</field>
            <field name="group" ref="company.group_employee_admin"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="True"/>
        </record>
    </data>
</tryton>
