<?xml version="1.0" encoding="utf-8" ?>
<!--Copyright 2022 ForgeFlow S.L.-->
<!--(http://www.forgeflow.com)-->
<!--License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).-->
<odoo>
    <record id="mrp_tag_view_form" model="ir.ui.view">
        <field name="name">mrp.tag.view.form</field>
        <field name="model">mrp.tag</field>
        <field name="arch" type="xml">
            <form string="Tags">
                <sheet>
                    <div class="oe_title">
                        <div class="oe_edit_only">
                            <label for="name" />
                        </div>
                        <h1>
                            <field name="name" />
                        </h1>
                    </div>
                    <group>
                        <group>
                            <field name="color" required="True" />
                        </group>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record id="mrp_tag_view_tree" model="ir.ui.view">
        <field name="name">mrp.tag.view.tree</field>
        <field name="model">mrp.tag</field>
        <field name="arch" type="xml">
            <tree string="Tags" editable="bottom">
                <field name="name" />
                <field name="color" widget="color_picker" />
            </tree>
        </field>
    </record>

    <record id="mrp_tag_action" model="ir.actions.act_window">
        <field name="name">Tags</field>
        <field name="res_model">mrp.tag</field>
        <field name="view_id" ref="mrp_tag_view_tree" />
        <field name="help" type="html">
            <p class="o_view_nocontent_smiling_face">
                Create new tags for your manufacture order
            </p>
        </field>
    </record>

    <menuitem
        id="menu_mrp_tag_config"
        name="Tags"
        parent="mrp.menu_mrp_configuration"
        action="mrp_tag.mrp_tag_action"
        sequence="3"
    />
</odoo>
