<?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="product_location_view_form">
            <field name="model">stock.product.location</field>
            <field name="type">form</field>
            <field name="name">product_location_form</field>
        </record>
        <record model="ir.ui.view" id="product_location_view_tree">
            <field name="model">stock.product.location</field>
            <field name="type">tree</field>
            <field name="name">product_location_tree</field>
        </record>

        <record model="ir.model.access" id="access_stock_product_location">
            <field name="model">stock.product.location</field>
            <field name="perm_read" eval="True"/>
            <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_stock_product_location_stock_admin">
            <field name="model">stock.product.location</field>
            <field name="group" ref="stock.group_stock_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>
    </data>
</tryton>
