<commit_before><?xml version="1.0"?>
<openerp>
<data>

    <record id="mrp_production_form_inherit_view" model="ir.ui.view">
        <field name="name">mrp.production.form.inherit</field>
        <field name="model">mrp.production</field>
        <field name="type">form</field>
        <field name="inherit_id" ref="mrp.mrp_production_form_view"/>
        <field name="arch" type="xml">
           <xpath expr="//field[@name='workcenter_lines']/form/field[@name='hour']" position="after">
               <group colspan="8" col="8">
                   <separator colspan="8"/>
                   <field name="state"/>
                   <button name="button_cancel" string="Cancel" states="draft,startworking" icon="gtk-stop" help="Cancel Order"/>
                   <button name="button_draft" string="Set Draft" states="cancel" icon="gtk-convert" help="Set to Draft"/>
                   <button name="button_start_working" string="Start" states="draft" icon="terp-gtk-jump-to-ltr" help="Start Working"/>
                   <button name="button_resume" string="Resume" states="pause" icon="gtk-media-pause" help="Resume Work Order"/>
                   <button name="button_pause" string="Pending" states="startworking" icon="gtk-media-pause" help="Pause Work Order"/>
                   <button name="button_done" string="Finished" states="startworking" icon="terp-check" help="Finish Order"/>
               </group>
           </xpath>
        </field>
    </record>

    <record id="mrp_production_form_inherit_view2" model="ir.ui.view">
        <field name="name">mrp.production.form.inherit2</field>
        <field name="model">mrp.production</field>
        <field name="type">form</field>
        <field name="inherit_id" ref="mrp.mrp_production_form_view"/>
        <field name="arch" type="xml">
           <xpath expr="//field[@name='workcenter_lines']/tree/field[@name='hour']" position="after">
                <field name="state"/>
                <button name="button_draft" string="Set Draft" states="cancel" icon="gtk-convert"/>
                <button name="button_start_working" string="Start" states="draft" icon="terp-gtk-jump-to-ltr"/>
                <button name="button_resume" string="Resume" states="pause" icon="gtk-media-pause"/>
                <button name="button_pause" string="Pending" states="startworking" icon="gtk-media-pause"/>
                <button name="button_done" string="Finished" states="startworking" icon="terp-check"/>
           </xpath>
        </field>
    </record>

    <record model="ir.ui.view" id="mrp_production_workcenter_tree_view_inherit">
        <field name="name">mrp.production.workcenter.line.tree</field>
        <field name="model">mrp.production.workcenter.line</field>
        <field name="type">tree</field>
        <field name="inherit_id" eval="False"/>
        <field name="arch" type="xml">
            <tree string="Work Orders" colors="gray:state in ('done','cancel');black:state in ('draft','startworking') and date_planned&gt;=current_date;red:date_planned&lt;current_date and state in ('draft', 'confirmed', 'ready')">
                <field name="production_id"/>
                <field name="date_planned"/>
                <field name="product"/>
                <field name="qty"/>
                <field name="uom"/>
                <field name="name"/>
                <field name="workcenter_id" widget="selection"/>
                <field name="cycle"/>
                <field name="hour"/>
                <field name="state" />
            </tree>
        </field>
    </record>

    <record model="ir.ui.view" id="mrp_production_workcenter_form_view_inherit">
        <field name="name">mrp.production.workcenter.line.form</field>
        <field name="model">mrp.production.workcenter.line</field>
        <field name="type">form</field>
        <field name="inherit_id" eval="False"/>
        <field name="arch" type="xml">
            <form version="7.0">
            <header>
                <button name="button_start_working" string="Start" states="draft"/>
                <button name="button_resume" string="Resume" states="pause"/>
                <button name="button_done" string="Finished" states="startworking"/>
                <button name="button_pause" string="Pending" states="startworking"/>
                <button name="button_draft" string="Set Draft" states="cancel"/>
                <button name="button_cancel" string="Cancel" states="draft,startworking"/>
                <field name="state" widget="statusbar" statusbar_visible="draft,startworking"/>
            </header>
            <sheet string="Work Orders">
                <group col="4">
                    <field colspan="4" name="name"/>
                    <field name="workcenter_id" widget="selection"/>
                    <field name="production_id"/>
                    <field name="production_state"/>
                    <field name="sequence"/>
                </group>
                <notebook>
                <page string="Information">
                    <group>
                        <group string="Planned Date">
                            <field name="date_planned"/>
                            <field name="date_planned_end"/>
                        </group>

                        <group string="Duration">
                            <field name="cycle"/>
                            <field name="hour" widget="float_time"/>
                        </group>
                        <group string="Real" >
                            <field name="date_start" readonly="1"/>
                            <field name="date_finished" readonly="1"/>
                            <field name="delay" widget="float_time"/>
                        </group>
                        <group string="Product to Produce">
                            <field name="product"/>
                            <field name="qty"/>
                            <field name="uom" widget="selection"/>
                        </group>
                    <group>
                </page>
                </notebook>
                </sheet>
                <footer>
                    <field name="message_ids" widget="ThreadView"/>
                </footer>
            </form>
        </field>
    </record>

    <record id="view_mrp_production_workcenter_form_view_filter" model="ir.ui.view">
            <field name="name">mrp.production.workcenter.line.select</field>
            <field name="model">mrp.production.workcenter.line</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
            <search string="Search Work Orders">
                        <group>
                           <filter icon="terp-document-new" string="Draft"
                               domain="[('state','=','draft')]"/>
                           <filter icon="terp-check" string="In Progress" name="Current"
                               domain="[('state','=','startworking')]"/>
                           <filter icon="terp-gtk-media-pause" string="Pending"
                               domain="[('state','=','pause')]"/>
                           <separator orientation="vertical"/>
                           <filter icon="terp-gnome-cpu-frequency-applet+" string="Late"
                               domain="['&amp;', ('date_planned','&lt;', current_date), ('state', 'in', ('draft', 'confirmed', 'ready'))]"
                               help="Production started late" />
                           <separator orientation="vertical"/>
                            <field name="name"/>
                            <field name="workcenter_id" widget="selection"/><commit_msg>fix<commit_after><?xml version="1.0"?>
<openerp>
<data>

    <record id="mrp_production_form_inherit_view" model="ir.ui.view">
        <field name="name">mrp.production.form.inherit</field>
        <field name="model">mrp.production</field>
        <field name="type">form</field>
        <field name="inherit_id" ref="mrp.mrp_production_form_view"/>
        <field name="arch" type="xml">
           <xpath expr="//field[@name='workcenter_lines']/form/field[@name='hour']" position="after">
               <group colspan="8" col="8">
                   <separator colspan="8"/>
                   <field name="state"/>
                   <button name="button_cancel" string="Cancel" states="draft,startworking" icon="gtk-stop" help="Cancel Order"/>
                   <button name="button_draft" string="Set Draft" states="cancel" icon="gtk-convert" help="Set to Draft"/>
                   <button name="button_start_working" string="Start" states="draft" icon="terp-gtk-jump-to-ltr" help="Start Working"/>
                   <button name="button_resume" string="Resume" states="pause" icon="gtk-media-pause" help="Resume Work Order"/>
                   <button name="button_pause" string="Pending" states="startworking" icon="gtk-media-pause" help="Pause Work Order"/>
                   <button name="button_done" string="Finished" states="startworking" icon="terp-check" help="Finish Order"/>
               </group>
           </xpath>
        </field>
    </record>

    <record id="mrp_production_form_inherit_view2" model="ir.ui.view">
        <field name="name">mrp.production.form.inherit2</field>
        <field name="model">mrp.production</field>
        <field name="type">form</field>
        <field name="inherit_id" ref="mrp.mrp_production_form_view"/>
        <field name="arch" type="xml">
           <xpath expr="//field[@name='workcenter_lines']/tree/field[@name='hour']" position="after">
                <field name="state"/>
                <button name="button_draft" string="Set Draft" states="cancel" icon="gtk-convert"/>
                <button name="button_start_working" string="Start" states="draft" icon="terp-gtk-jump-to-ltr"/>
                <button name="button_resume" string="Resume" states="pause" icon="gtk-media-pause"/>
                <button name="button_pause" string="Pending" states="startworking" icon="gtk-media-pause"/>
                <button name="button_done" string="Finished" states="startworking" icon="terp-check"/>
           </xpath>
        </field>
    </record>

    <record model="ir.ui.view" id="mrp_production_workcenter_tree_view_inherit">
        <field name="name">mrp.production.workcenter.line.tree</field>
        <field name="model">mrp.production.workcenter.line</field>
        <field name="type">tree</field>
        <field name="inherit_id" eval="False"/>
        <field name="arch" type="xml">
            <tree string="Work Orders" colors="gray:state in ('done','cancel');black:state in ('draft','startworking') and date_planned&gt;=current_date;red:date_planned&lt;current_date and state in ('draft', 'confirmed', 'ready')">
                <field name="production_id"/>
                <field name="date_planned"/>
                <field name="product"/>
                <field name="qty"/>
                <field name="uom"/>
                <field name="name"/>
                <field name="workcenter_id" widget="selection"/>
                <field name="cycle"/>
                <field name="hour"/>
                <field name="state" />
            </tree>
        </field>
    </record>

    <record model="ir.ui.view" id="mrp_production_workcenter_form_view_inherit">
        <field name="name">mrp.production.workcenter.line.form</field>
        <field name="model">mrp.production.workcenter.line</field>
        <field name="type">form</field>
        <field name="inherit_id" eval="False"/>
        <field name="arch" type="xml">
            <form version="7.0">
            <header>
                <button name="button_start_working" string="Start" states="draft"/>
                <button name="button_resume" string="Resume" states="pause"/>
                <button name="button_done" string="Finished" states="startworking"/>
                <button name="button_pause" string="Pending" states="startworking"/>
                <button name="button_draft" string="Set Draft" states="cancel"/>
                <button name="button_cancel" string="Cancel" states="draft,startworking"/>
                <field name="state" widget="statusbar" statusbar_visible="draft,startworking"/>
            </header>
            <sheet string="Work Orders">
                <group col="4">
                    <field colspan="4" name="name"/>
                    <field name="workcenter_id" widget="selection"/>
                    <field name="production_id"/>
                    <field name="production_state"/>
                    <field name="sequence"/>
                </group>
                <notebook>
                <page string="Information">
                    <group>
                        <group string="Planned Date">
                            <field name="date_planned"/>
                            <field name="date_planned_end"/>
                        </group>

                        <group string="Duration">
                            <field name="cycle"/>
                            <field name="hour" widget="float_time"/>
                        </group>
                        <group string="Real" >
                            <field name="date_start" readonly="1"/>
                            <field name="date_finished" readonly="1"/>
                            <field name="delay" widget="float_time"/>
                        </group>
                        <group string="Product to Produce">
                            <field name="product"/>
                            <field name="qty"/>
                            <field name="uom" widget="selection"/>
                        </group>
                    </group>
                </page>
                </notebook>
                </sheet>
                <footer>
                    <field name="message_ids" widget="ThreadView"/>
                </footer>
            </form>
        </field>
    </record>

    <record id="view_mrp_production_workcenter_form_view_filter" model="ir.ui.view">
            <field name="name">mrp.production.workcenter.line.select</field>
            <field name="model">mrp.production.workcenter.line</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
            <search string="Search Work Orders">
                        <group>
                           <filter icon="terp-document-new" string="Draft"
                               domain="[('state','=','draft')]"/>
                           <filter icon="terp-check" string="In Progress" name="Current"
                               domain="[('state','=','startworking')]"/>
                           <filter icon="terp-gtk-media-pause" string="Pending"
                               domain="[('state','=','pause')]"/>
                           <separator orientation="vertical"/>
                           <filter icon="terp-gnome-cpu-frequency-applet+" string="Late"
                               domain="['&amp;', ('date_planned','&lt;', current_date), ('state', 'in', ('draft', 'confirmed', 'ready'))]"
                               help="Production started late" />
                           <separator orientation="vertical"/>
                            <field name="name"/>
                            <field name="workcenter_id" widget="selection"/>
{'fraction_non_alphanumeric': 0.15280213000844212, 'fraction_numerical': 0.0016884213260601338, 'mean_word_length': 1.866716306775875, 'pattern_counts': {'":': 0, '<': 291, '<?xml version=': 2, '>': 291, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4814215', 'n_tokens_mistral': 4091, 'n_tokens_neox': 3902, 'n_words': 717}