<?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="stock_location_view_form">
            <field name="model">stock.location</field>
            <field name="inherit" ref="stock.location_view_form"/>
            <field name="name">stock_location_form</field>
        </record>

        <record model="ir.ui.view" id="move_view_form">
            <field name="model">stock.move</field>
            <field name="inherit" ref="stock.move_view_form"/>
            <field name="name">stock_move_form</field>
        </record>

        <record model="ir.action.act_window" id="act_stock_move_form">
            <field name="name">Stock Moves</field>
            <field name="res_model">stock.move</field>
            <field
                name="domain"
                eval="[('origin.id', 'in', Eval('active_ids'), 'sale.rental')]"
                pyson="1"/>
        </record>
        <record model="ir.action.keyword" id="act_stock_move_form_keyword1">
            <field name="keyword">form_relate</field>
            <field name="model">sale.rental,-1</field>
            <field name="action" ref="act_stock_move_form"/>
        </record>
    </data>
    <data noupdate="1">
        <record model="stock.location" id="location_rental">
            <field name="name">Rental</field>
            <field name="code">RENT</field>
            <field name="type">rental</field>
        </record>

        <record model="stock.location" id="stock.location_warehouse">
            <field name="rental_location" ref="location_rental"/>
        </record>
    </data>
</tryton>
