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

    <record model="ir.ui.view" id="purchase_order_form_inherit">
        <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">
            <field name="payment_term_id" position="before">
                <field name="requisition_id"/>
            </field>
        </field>
    </record>

    <record model="ir.ui.view" id="purchase_order_search_inherit">
        <field name="name">purchase.order.list.select.inherit</field>
        <field name="model">purchase.order</field>
        <field name="inherit_id" ref="purchase.view_purchase_order_filter"/>
        <field name="arch" type="xml">
            <xpath expr="//filter[@name='approved']" position="after">
                <filter icon="terp-gtk-jump-to-rtl" string="Requisition" domain="[('requisition_id','!=',False)]"  help="Purchase Orders with requisition"/>
            </xpath>
        </field>
    </record>

    <record model="ir.ui.view" id="view_purchase_requisition_form">
        <field name="name">purchase.requisition.form</field>
        <field name="model">purchase.requisition</field>
        <field name="arch" type="xml">
            <form string="Purchase Requisition" version="7.0">
            <header>
                <button name="tender_in_progress" states="draft" string="Send to Suppliers" type="object" class="oe_highlight"/>
                <button name="tender_open" states="in_progress" string="Choose supplier(s)" type="object" class="oe_highlight"/>
                <button name="tender_reset" states="cancel" string="Reset to Draft" type="object" />
                <button name="open_product_line" states="open" string="Choose product lines" type="object" class="oe_highlight" groups="purchase.group_advance_bidding"/>
                <button name="generate_po" states="open" string="Make Purchase" type="object" class="oe_highlight"/>
                <button name="tender_cancel" states="draft,in_progress" string="Cancel Requisition" type="object" />
                <field name="state" widget="statusbar" statusbar_visible="draft,in_progress,open,done" statusbar_colors='{"in_progress":"blue"}'/>
            </header>
            <sheet>
                <div class="oe_right oe_button_box" style="margin-top: 10px">
                    <button name="open_product_line" type="object" string="View Products Lines"
                        attrs="{'invisible': ['|', ('state', 'not in', ('open','done')), ('exclusive', '=', 'exclusive')]}" groups="purchase.group_advance_bidding"/>
                </div>
                <div class="oe_edit_only">
                    <label for="name" class="oe_inline"/>
                </div>
                <h1>
                    <field name="name" class="oe_inline"/>
                </h1>
                <group>
                    <group>
                        <field name="user_id"/>
                        <field name="exclusive"/>
                        <field name="account_analytic_id" colspan="2" groups="purchase.group_analytic_accounting"/>
                        <field name="multiple_rfq_per_supplier"/>
                    </group>
                    <group>
                        <field name="date_start"/>
                        <field name="date_end"/>
                        <field name="schedule_date"/>
                        <field name="origin" placeholder="e.g. OP0025"/>
                        <field name="warehouse_id" widget="selection" groups="stock.group_locations"/>
                        <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                    </group>
                </group>
                <notebook>
                    <page string="Products">
                        <field name="line_ids">
                            <tree string="Products" editable="bottom">
                                <field name="product_id" on_change="onchange_product_id(product_id,product_uom_id,parent.account_analytic_id,account_analytic_id,parent.schedule_date,schedule_date)"/>
                                <field name="product_qty"/>
                                <field name="product_uom_id" groups="product.group_uom"/>
                                <field name="schedule_date"/>
                                <field name="account_analytic_id" groups="purchase.group_analytic_accounting"/>
                                
                            </tree>
                            <form string="Products" version="7.0">
                                <group>
                                    <field name="product_id" />
                                    <field name="product_qty"/>
                                    <field name="product_uom_id" />
                                    <field name="schedule_date"/>
                                    <field name="account_analytic_id" groups="purchase.group_analytic_accounting"/>
                                    <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                                </group>
                            </form>
                        </field>
                        <div class="oe_right oe_button_box" style="margin-top: 10px">
                            <button name="%(action_purchase_requisition_partner)d" type="action"
                                string="Request a Quotation" icon="gtk-execute"
                                attrs="{'invisible': ['|', ('line_ids','=',[]),('state', 'in', ('open','done'))]}"/>
                        </div>
                        <separator string="Requests for Quotation"/>
                        <field name="purchase_ids" readonly="1">
                            <tree string="Purchase Order">
                                <field name="name" string="Reference"/>
                                <field name="date_order" string="Order Date"/>
                                <field name="partner_id"/>
                                <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                                <field name="location_id" groups="stock.group_locations"/>
                                <field name="minimum_planned_date"/>
                                <field name="origin"/>
                                <field name="state"/>
                                <button name="purchase_cancel" states="draft,confirmed,wait_auth" string="Cancel Purchase Order" icon="gtk-cancel"/>
                                <button name="purchase_confirm" states="draft" string="Confirm Purchase Order" icon="gtk-apply"/>
                                <button name="purchase_approve" states="confirmed" string="Approved by Supplier" icon="gtk-ok"/>
                                <button name="wkf_send_rfq" states="draft" string="Send RFQ by Email" type="object" context="{'send_rfq':True}" icon="gtk-network"/>
                            </tree>
                        </field>
                        <separator string="Terms and Conditions"/>
                        <field name="description"/>
                    </page>
                </notebook>
            </sheet>
            <div class="oe_chatter">
              <field name="message_follower_ids" widget="mail_followers"/>
              <field name="message_ids" widget="mail_thread"/>
            </div> 
            </form>
        </field>
    </record>
    <record model="ir.ui.view" id="view_purchase_requisition_tree"><commit_msg>[FIX]purchase_requisition_view.xml: remove minimum schedule date from quotation list<commit_after><?xml version="1.0"?>
<openerp>
    <data>

    <record model="ir.ui.view" id="purchase_order_form_inherit">
        <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">
            <field name="payment_term_id" position="before">
                <field name="requisition_id"/>
            </field>
        </field>
    </record>

    <record model="ir.ui.view" id="purchase_order_search_inherit">
        <field name="name">purchase.order.list.select.inherit</field>
        <field name="model">purchase.order</field>
        <field name="inherit_id" ref="purchase.view_purchase_order_filter"/>
        <field name="arch" type="xml">
            <xpath expr="//filter[@name='approved']" position="after">
                <filter icon="terp-gtk-jump-to-rtl" string="Requisition" domain="[('requisition_id','!=',False)]"  help="Purchase Orders with requisition"/>
            </xpath>
        </field>
    </record>

    <record model="ir.ui.view" id="view_purchase_requisition_form">
        <field name="name">purchase.requisition.form</field>
        <field name="model">purchase.requisition</field>
        <field name="arch" type="xml">
            <form string="Purchase Requisition" version="7.0">
            <header>
                <button name="tender_in_progress" states="draft" string="Send to Suppliers" type="object" class="oe_highlight"/>
                <button name="tender_open" states="in_progress" string="Choose supplier(s)" type="object" class="oe_highlight"/>
                <button name="tender_reset" states="cancel" string="Reset to Draft" type="object" />
                <button name="open_product_line" states="open" string="Choose product lines" type="object" class="oe_highlight" groups="purchase.group_advance_bidding"/>
                <button name="generate_po" states="open" string="Make Purchase" type="object" class="oe_highlight"/>
                <button name="tender_cancel" states="draft,in_progress" string="Cancel Requisition" type="object" />
                <field name="state" widget="statusbar" statusbar_visible="draft,in_progress,open,done" statusbar_colors='{"in_progress":"blue"}'/>
            </header>
            <sheet>
                <div class="oe_right oe_button_box" style="margin-top: 10px">
                    <button name="open_product_line" type="object" string="View Products Lines"
                        attrs="{'invisible': ['|', ('state', 'not in', ('open','done')), ('exclusive', '=', 'exclusive')]}" groups="purchase.group_advance_bidding"/>
                </div>
                <div class="oe_edit_only">
                    <label for="name" class="oe_inline"/>
                </div>
                <h1>
                    <field name="name" class="oe_inline"/>
                </h1>
                <group>
                    <group>
                        <field name="user_id"/>
                        <field name="exclusive"/>
                        <field name="account_analytic_id" colspan="2" groups="purchase.group_analytic_accounting"/>
                        <field name="multiple_rfq_per_supplier"/>
                    </group>
                    <group>
                        <field name="date_start"/>
                        <field name="date_end"/>
                        <field name="schedule_date"/>
                        <field name="origin" placeholder="e.g. OP0025"/>
                        <field name="warehouse_id" widget="selection" groups="stock.group_locations"/>
                        <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                    </group>
                </group>
                <notebook>
                    <page string="Products">
                        <field name="line_ids">
                            <tree string="Products" editable="bottom">
                                <field name="product_id" on_change="onchange_product_id(product_id,product_uom_id,parent.account_analytic_id,account_analytic_id,parent.schedule_date,schedule_date)"/>
                                <field name="product_qty"/>
                                <field name="product_uom_id" groups="product.group_uom"/>
                                <field name="schedule_date"/>
                                <field name="account_analytic_id" groups="purchase.group_analytic_accounting"/>
                                
                            </tree>
                            <form string="Products" version="7.0">
                                <group>
                                    <field name="product_id" />
                                    <field name="product_qty"/>
                                    <field name="product_uom_id" />
                                    <field name="schedule_date"/>
                                    <field name="account_analytic_id" groups="purchase.group_analytic_accounting"/>
                                    <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                                </group>
                            </form>
                        </field>
                        <div class="oe_right oe_button_box" style="margin-top: 10px">
                            <button name="%(action_purchase_requisition_partner)d" type="action"
                                string="Request a Quotation" icon="gtk-execute"
                                attrs="{'invisible': ['|', ('line_ids','=',[]),('state', 'in', ('open','done'))]}"/>
                        </div>
                        <separator string="Requests for Quotation"/>
                        <field name="purchase_ids" readonly="1">
                            <tree string="Purchase Order">
                                <field name="name" string="Reference"/>
                                <field name="date_order" string="Order Date"/>
                                <field name="partner_id"/>
                                <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                                <field name="location_id" groups="stock.group_locations"/>
                                <field name="minimum_planned_date" invisible="1"/>
                                <field name="origin"/>
                                <field name="state"/>
                                <button name="purchase_cancel" states="draft,confirmed,wait_auth" string="Cancel Purchase Order" icon="gtk-cancel"/>
                                <button name="purchase_confirm" states="draft" string="Confirm Purchase Order" icon="gtk-apply"/>
                                <button name="purchase_approve" states="confirmed" string="Approved by Supplier" icon="gtk-ok"/>
                                <button name="wkf_send_rfq" states="draft" string="Send RFQ by Email" type="object" context="{'send_rfq':True}" icon="gtk-network"/>
                            </tree>
                        </field>
                        <separator string="Terms and Conditions"/>
                        <field name="description"/>
                    </page>
                </notebook>
            </sheet>
            <div class="oe_chatter">
              <field name="message_follower_ids" widget="mail_followers"/>
              <field name="message_ids" widget="mail_thread"/>
            </div> 
            </form>
        </field>
    </record>
    <record model="ir.ui.view" id="view_purchase_requisition_tree">
{'fraction_non_alphanumeric': 0.13343270040826907, 'fraction_numerical': 0.002397770721275355, 'mean_word_length': 1.6745233968804158, 'pattern_counts': {'":': 2, '<': 249, '<?xml version=': 2, '>': 249, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 9}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4820652', 'n_tokens_mistral': 4075, 'n_tokens_neox': 3773, 'n_words': 673}