<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record model="ir.ui.view" id="view_purchase_order_form">
            <field name="name">purchase.order.form.inherit</field>
            <field name="model">purchase.order</field>
            <field name="inherit_id" ref="purchase.purchase_order_form"/>
            <field name="arch" type="xml">
                <xpath expr="//sheet/div[@class='oe_title']/h1/label[@string='Request for Quotation ']" position="replace"/>
                <xpath expr="//sheet/div[@class='oe_title']/h1/label[@string='Purchase Order ']" position="replace"/>
                <xpath expr="//sheet/div[@class='oe_title']/h1/field[@name='name']" position="before">
                    <field name="type" nolabel="1" class="oe_inline"/>
                    <label string=" "/>
                </xpath>
                <xpath expr="//sheet/div[@class='oe_title']/h1" position="after">
                    <h2 attrs="{'invisible': [('state', '!=', 'cancel')]}">
                        <label for="cancel_reason_id" string="Reason for Cancellation:"/>
                        <field name="cancel_reason_id" class="oe_inline" />
                    </h2>
                </xpath>
                <xpath expr="//field[@name='state']" position="attributes">
                    <attribute name="statusbar_visible">draft,sent,bid,draftpo,approved,done</attribute>
                </xpath>
                <xpath expr="//button[@name='action_cancel_draft']" position="attributes">
                    <attribute name="states">cancel,draftpo</attribute>
                    <attribute name="string">Reset to Draft RFQ</attribute>
                </xpath>
                <xpath expr="//button[@string='Send PO by Email']" position="attributes">
                    <attribute name="states">draftpo,approved</attribute>
                </xpath>
                <xpath expr="//button[@name='bid_received']" position="attributes">
                    <attribute name="string">Bid Encoded</attribute>
                    <attribute name="type">object</attribute>
                    <attribute name="states">sent,draftbid</attribute>
                </xpath>
                <xpath expr="//button[@id='bid_confirm']" position="attributes">
                    <attribute name="states">draftpo</attribute>
                </xpath>
                <xpath expr="//button[@id='draft_confirm']" position="attributes">
                    <attribute name="states">draftpo</attribute>
                    <attribute name="invisible">1</attribute>
                </xpath>
                <xpath expr="//field[@name='incoterm_id']" position="after">
                    <field name="incoterm_address"/>
                </xpath>
                <xpath expr="//field[@name='dest_address_id']" position="replace"/>
                <field name="warehouse_id" position="before">
                    <field name="consignee_id"/><commit_msg>[UPD] in draftpo state, propose email with rfq instead of po<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record model="ir.ui.view" id="view_purchase_order_form">
            <field name="name">purchase.order.form.inherit</field>
            <field name="model">purchase.order</field>
            <field name="inherit_id" ref="purchase.purchase_order_form"/>
            <field name="arch" type="xml">
                <xpath expr="//sheet/div[@class='oe_title']/h1/label[@string='Request for Quotation ']" position="replace"/>
                <xpath expr="//sheet/div[@class='oe_title']/h1/label[@string='Purchase Order ']" position="replace"/>
                <xpath expr="//sheet/div[@class='oe_title']/h1/field[@name='name']" position="before">
                    <field name="type" nolabel="1" class="oe_inline"/>
                    <label string=" "/>
                </xpath>
                <xpath expr="//sheet/div[@class='oe_title']/h1" position="after">
                    <h2 attrs="{'invisible': [('state', '!=', 'cancel')]}">
                        <label for="cancel_reason_id" string="Reason for Cancellation:"/>
                        <field name="cancel_reason_id" class="oe_inline" />
                    </h2>
                </xpath>
                <xpath expr="//field[@name='state']" position="attributes">
                    <attribute name="statusbar_visible">draft,sent,bid,draftpo,approved,done</attribute>
                </xpath>
                <xpath expr="//button[@name='action_cancel_draft']" position="attributes">
                    <attribute name="states">cancel,draftpo</attribute>
                    <attribute name="string">Reset to Draft RFQ</attribute>
                </xpath>
                <xpath expr="//button[@string='Send PO by Email']" position="after">
                    <button name="wkf_send_rfq" states="draftpo" string="Send PO by Email" type="object" context="{'send_rfq':True}"/>
                </xpath>
                <xpath expr="//button[@name='bid_received']" position="attributes">
                    <attribute name="string">Bid Encoded</attribute>
                    <attribute name="type">object</attribute>
                    <attribute name="states">sent,draftbid</attribute>
                </xpath>
                <xpath expr="//button[@id='bid_confirm']" position="attributes">
                    <attribute name="states">draftpo</attribute>
                </xpath>
                <xpath expr="//button[@id='draft_confirm']" position="attributes">
                    <attribute name="states">draftpo</attribute>
                    <attribute name="invisible">1</attribute>
                </xpath>
                <xpath expr="//field[@name='incoterm_id']" position="after">
                    <field name="incoterm_address"/>
                </xpath>
                <xpath expr="//field[@name='dest_address_id']" position="replace"/>
                <field name="warehouse_id" position="before">
                    <field name="consignee_id"/>
{'fraction_non_alphanumeric': 0.1647661543546521, 'fraction_numerical': 0.0036357626838539082, 'mean_word_length': 2.062753036437247, 'pattern_counts': {'":': 0, '<': 122, '<?xml version=': 2, '>': 122, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3618552', 'n_tokens_mistral': 1678, 'n_tokens_neox': 1586, 'n_words': 254}