<?xml version="1.0"?>
<form string="Work Center">
                    <sheet>
                        <div class="oe_button_box" name="button_box">
                            <field name="has_routing_lines" invisible="1"/>
                            <button type="object" name="action_show_operations" invisible="not has_routing_lines" context="{'default_workcenter_id': id}" class="oe_stat_button" icon="fa-cog">
                                <div class="o_stat_info">
                                    <span class="o_stat_text">Operations</span>
                                </div>
                            </button>
                            <button name="690" type="action" class="oe_stat_button" icon="fa-pie-chart">
                                <div class="o_field_widget o_stat_info">
                                    <span class="o_stat_value"><field name="oee" nolabel="1"/>%</span>
                                    <span class="o_stat_text">OEE</span>
                                </div>
                            </button>
                            <button name="691" type="action" class="oe_stat_button" icon="fa-bar-chart">
                                <div class="o_field_widget o_stat_info">
                                    <span class="o_stat_value"><field name="blocked_time" nolabel="1"/> Hours</span>
                                    <span class="o_stat_text">Lost</span>
                                </div>
                            </button>
                            <button name="685" type="action" class="oe_stat_button" icon="fa-bar-chart" context="{'search_default_workcenter_id': id,                                           'search_default_ready': True,                                           'search_default_waiting': True,                                           'search_default_pending': True,                                           'search_default_progress': True}">
                                <div class="o_field_widget o_stat_info">
                                    <span class="o_stat_value"><field name="workcenter_load" nolabel="1"/> Minutes</span>
                                    <span class="o_stat_text">Load</span>
                                </div>
                            </button>
                            <button name="693" type="action" class="oe_stat_button" icon="fa-bar-chart" context="{'search_default_workcenter_id': id, 'search_default_thisyear': True}">
                                <div class="o_field_widget o_stat_info">
                                    <span class="o_stat_value"><field name="performance" nolabel="1"/>%</span>
                                    <span class="o_stat_text">Performance</span>
                                </div>
                            </button>
                        </div>
                        <widget name="web_ribbon" title="Archived" bg_color="text-bg-danger" invisible="active"/>
                        <group>
                            <group>
                                <field name="active" invisible="1"/>
                                <field name="company_id" invisible="1"/>
                                <field name="name" string="Work Center Name" required="True"/>
                                <field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
                                <field name="alternative_workcenter_ids" widget="many2many_tags"/>
                            </group>
                            <group>
                                <field name="code"/>
                                <field name="resource_calendar_id" required="1"/>
                                <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
                            </group>
                        </group>
                        <notebook>
                            <page string="General Information" name="general_info">
                                <group>
                                    <group string="Production Information" name="capacity">
                                        <label for="time_efficiency"/>
                                        <div class="o_row">
                                            <field name="time_efficiency"/> %
                                        </div>
                                        <field name="default_capacity"/>
                                        <label for="oee_target"/>
                                        <div class="o_row">
                                            <field name="oee_target"/> %
                                        </div>
                                        <label for="time_start"/>
                                        <div>
                                            <field name="time_start" widget="float_time" class="oe_inline"/> minutes
                                        </div>
                                        <label for="time_stop"/>
                                        <div>
                                            <field name="time_stop" widget="float_time" class="oe_inline"/> minutes
                                        </div>
                                    </group>
                                    <group string="Costing Information" name="costing">
                                        <label for="costs_hour"/>
                                        <div id="costs_hour">
                                            <field name="costs_hour" widget="monetary" class="oe_inline"/> per workcenter
                                        </div>
                                    </group>
                                </group>
                                <separator string="Description"/>
                                <field name="note" nolabel="1" placeholder="Description of the work center..."/>
                            </page>
                            <page string="Specific Capacities" name="capacity">
                                <field name="capacity_ids" context="{'default_workcenter_id': id}">
                                    <list editable="bottom">
                                        <field name="product_id"/>
                                        <field name="product_uom_id" groups="uom.group_uom"/>
                                        <field name="capacity"/>
                                        <field name="time_start" widget="float_time"/>
                                        <field name="time_stop" widget="float_time"/>
                                    </list>
                                </field>
                            </page>
                        </notebook>
                    </sheet>
                    <chatter/>
                </form>
            