<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record model="ir.ui.view" id="view_stock_buffer_profile_variability_form">
        <field name="name">stock.buffer.profile.variability.form</field>
        <field name="model">stock.buffer.profile.variability</field>
        <field name="arch" type="xml">
            <form string="Buffer Profile Variability Factor">
                <sheet>
                    <div class="oe_title">
                        <label for="name" class="oe_edit_only" />
                        <h1>
                            <field name="name" class="oe_inline" />
                        </h1>
                    </div>
                    <group>
                        <group name="factor">
                            <field name="factor" />
                        </group>
                        <group name="company" groups="base.group_multi_company">
                            <field name="company_id" />
                        </group>
                    </group>
                </sheet>
            </form>
        </field>
    </record>
    <record model="ir.ui.view" id="view_stock_buffer_profile_variability_tree">
        <field name="name">stock.buffer.profile.variability.tree</field>
        <field name="model">stock.buffer.profile.variability</field>
        <field name="arch" type="xml">
            <tree>
                <field name="name" />
                <field name="factor" />
                <field name="company_id" groups="base.group_multi_company" />
            </tree>
        </field>
    </record>
    <record id="view_stock_buffer_profile_variability_search" model="ir.ui.view">
        <field name="name">stock.buffer.profile.variability.search</field>
        <field name="model">stock.buffer.profile.variability</field>
        <field name="arch" type="xml">
            <search string="Search Buffer Profile Variability">
                <field name="name" />
                <field name="factor" />
                <field name="company_id" groups="base.group_multi_company" />
            </search>
        </field>
    </record>
    <record
        model="ir.actions.act_window"
        id="stock_buffer_profile_variability_form_action"
    >
        <field name="name">Buffer Profile Variability Factor</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">stock.buffer.profile.variability</field>
        <field name="view_mode">tree,form</field>
        <field
            name="search_view_id"
            ref="view_stock_buffer_profile_variability_search"
        />
        <field name="help" type="html">
            <p class="oe_view_nocontent_create">
            Click to start a new buffer profile variability factor
          </p>
        </field>
    </record>
    <menuitem
        id="menu_stock_buffer_profile_variability"
        parent="ddmrp.menu_ddmrp_config"
        action="stock_buffer_profile_variability_form_action"
    />
</odoo>
