<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright 2021 Akretion France (http://www.akretion.com/)
  @author: Alexis de Lattre <alexis.delattre@akretion.com>
  License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->

<odoo>
<data>

<record id="stock_expiry_depreciation_rule_tree" model="ir.ui.view">
    <field name="model">stock.expiry.depreciation.rule</field>
    <field name="arch" type="xml">
        <tree editable="bottom">
            <field name="start_limit_days"/>
            <field name="ratio"/>
            <field name="name"/>
            <field name="company_id" groups="base.group_multi_company"/>
        </tree>
    </field>
</record>

<record id="stock_expiry_depreciation_rule_action" model="ir.actions.act_window">
    <field name="name">Stock Depreciation Rules</field>
    <field name="res_model">stock.expiry.depreciation.rule</field>
    <field name="view_mode">tree</field>
</record>

<menuitem id="stock_expiry_depreciation_rule_menu"
        action="stock_expiry_depreciation_rule_action"
        parent="account.account_management_menu"
        sequence="100"/>

</data>
</odoo>
