<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

    <record id="view_repair_order_tree" model="ir.ui.view">
        <field name="name">mrp.repair.tree</field>
        <field name="model">mrp.repair</field>
        <field name="arch" type="xml">
            <tree string="Repairs order" colors="gray:state in ('done','cancel');black:state not in ('done','cancel');blue:state=='draft'">
                <field name="name" />
                <field name="product_id" />
                <field name="move_id"/>
                <field name="partner_id"/>
                <field name="address_id"/>
                <field name="location_id" groups="stock.group_locations"/>
                <field name="location_dest_id" groups="stock.group_locations"/>
                <field name="company_id" groups="base.group_multi_company" invisible="1"/>
                <field name="guarantee_limit"/>
                <field name="state"/>
            </tree>
        </field>
    </record>

    <record id="view_repair_order_form" model="ir.ui.view">
        <field name="name">mrp.repair.form</field>
        <field name="model">mrp.repair</field>
        <field name="arch" type="xml">
            <form string="Repair Order" version="7.0">
               <header>
                   <button name="repair_confirm" states="draft" string="Confirm Repair" class="oe_highlight"/>
                   <button name="repair_ready" states="confirmed,ready" string="Start Repair" class="oe_highlight"/>
                   <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object"/>
                   <button name="action_repair_end" states="under_repair" string="End Repair" class="oe_highlight"/>
                   <button name="action_invoice_create" states="2binvoiced" string="Make Invoice" class="oe_highlight"/>
                   <button name="invoice_recreate" states="invoice_except" string="Recreate Invoice"/>
                   <button name="invoice_corrected" states="invoice_except" string="Invoice Corrected"/>
                   <button name="action_cancel" string="Cancel Repair" type="object" attrs="{'invisible':['|',('invoice_method','!=','none'), ('state', 'not in',('confirmed','2binvoiced','ready','under_repair'))]}"/>
                   <button name="action_cancel" string="Cancel Repair" type="object" 
                attrs="{'invisible':['|',('invoice_method','!=','none'), ('state', '!=', 'invoice_except')]}"/>
                   <button name="cancel" states="draft" string="Cancel Repair"/>
                   <field name="state" widget="statusbar" statusbar_visible="draft,confirmed,done"/>
               </header>
               <sheet string="Repairs order">
                    <label for="product_id" class="oe_edit_only"/>
                    <h1>
                    </h1>
                    <label for="name" class="oe_edit_only"/>
                    <h1>
                        Repair Order <field name="name" class="oe_inline"/>
                    </h1>
                    <group>
                        <group><commit_msg>[IMP]mrp_repair : improve button attrs<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

    <record id="view_repair_order_tree" model="ir.ui.view">
        <field name="name">mrp.repair.tree</field>
        <field name="model">mrp.repair</field>
        <field name="arch" type="xml">
            <tree string="Repairs order" colors="gray:state in ('done','cancel');black:state not in ('done','cancel');blue:state=='draft'">
                <field name="name" />
                <field name="product_id" />
                <field name="move_id"/>
                <field name="partner_id"/>
                <field name="address_id"/>
                <field name="location_id" groups="stock.group_locations"/>
                <field name="location_dest_id" groups="stock.group_locations"/>
                <field name="company_id" groups="base.group_multi_company" invisible="1"/>
                <field name="guarantee_limit"/>
                <field name="state"/>
            </tree>
        </field>
    </record>

    <record id="view_repair_order_form" model="ir.ui.view">
        <field name="name">mrp.repair.form</field>
        <field name="model">mrp.repair</field>
        <field name="arch" type="xml">
            <form string="Repair Order" version="7.0">
               <header>
                   <button name="repair_confirm" states="draft" string="Confirm Repair" class="oe_highlight"/>
                   <button name="repair_ready" states="confirmed,ready" string="Start Repair" class="oe_highlight"/>
                   <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object"/>
                   <button name="action_repair_end" states="under_repair" string="End Repair" class="oe_highlight"/>
                   <button name="action_invoice_create" states="2binvoiced" string="Make Invoice" class="oe_highlight"/>
                   <button name="invoice_recreate" states="invoice_except" string="Recreate Invoice"/>
                   <button name="invoice_corrected" states="invoice_except" string="Invoice Corrected"/>
                   <button name="action_cancel" string="Cancel Repair" type="object" attrs="{'invisible':['|',('invoice_method','!=','none'), ('state', 'not in',('confirmed','2binvoiced','ready','under_repair', 'invoice_except'))]}"/>
                   <button name="cancel" states="draft" string="Cancel Repair"/>
                   <field name="state" widget="statusbar" statusbar_visible="draft,confirmed,done"/>
               </header>
               <sheet string="Repairs order">
                    <label for="product_id" class="oe_edit_only"/>
                    <h1>
                    </h1>
                    <label for="name" class="oe_edit_only"/>
                    <h1>
                        Repair Order <field name="name" class="oe_inline"/>
                    </h1>
                    <group>
                        <group>
{'fraction_non_alphanumeric': 0.1592146510476819, 'fraction_numerical': 0.003959742616729912, 'mean_word_length': 2.3125683060109288, 'pattern_counts': {'":': 0, '<': 108, '<?xml version=': 2, '>': 108, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '4922360', 'n_tokens_mistral': 1725, 'n_tokens_neox': 1627, 'n_words': 303}