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

    <record id="view_order_line_form2_lr" model="ir.ui.view">
        <field name="name">sale.order.line.form2.lr</field>
        <field name="model">sale.order.line</field>
        <field name="type">form</field>
        <field name="inherit_id" ref="sale.view_order_line_form2"/>
        <field name="arch" type="xml">
            <button name="button_cancel" position="attributes">
                <attribute name="states">draft,confirmed,exception</attribute>
            </button>
            <field name="price_unit" position="after">
                <field name="price_is"/>
            </field>
        </field>
    </record>

    <record id="view_order_form" model="ir.ui.view">
        <field name="name">sale.order.form</field>
        <field name="model">sale.order</field>
        <field name="inherit_id" ref="logistic_consignee.view_order_form"/>
        <field name="arch" type="xml">

          <h1 position="before">
            <div class="oe_right oe_button_box" style="width: 300px;" name="buttons">
              <button class="oe_inline oe_stat_button" name="action_open_logistic_requisition"
                type="object" icon="fa-thumb-tack">
                <field string="Linked LR" name="lr_count" widget="statinfo" />
              </button>
              <button class="oe_inline oe_stat_button" name="action_open_lr_sources"
                type="object" icon="fa-search">
                <field string="Linked LRS" name="lr_source_count" widget="statinfo" />
              </button>
              <button class="oe_inline oe_stat_button" name="action_open_lr_purchases"
                type="object" icon="fa-shopping-cart" states="draft">
                <field string="Relevant Bid &amp; PO" name="lr_purchase_count" widget="statinfo" />
              </button>
              <button class="oe_inline oe_stat_button" name="action_open_lr_purchases"
                type="object" icon="fa-shopping-cart" states="accepted,waiting_date,progress,manual,shipping_except,invoice_except">
                <field string="Relevant PO" name="lr_purchase_count" widget="statinfo" />
              </button>
            </div>
          </h1>

          <field name="consignee_id" position="before">
            <field name='order_type'/>
          </field>
          <field name="consignee_id" position="attributes">
            <attribute name="attrs">{'required': [('order_type', '!=', 'cost_estimate_only')]}</attribute>
          </field>
          <xpath expr="//field[@name='order_line']/tree" position="attributes">
            <attribute name="editable" eval="0"/>
          </xpath>
          <xpath expr="//field[@name='order_line']/tree//field[@name='price_unit']"
              position="after">
              <field name="price_is"/>
          </xpath>
          <xpath expr="//field[@name='order_line']/form//field[@name='warehouse_id']" position="after">
              <field name="lr_source_id" groups="base.group_no_one"/>
          </xpath>
        </field>
    </record>

  </data>
</openerp><commit_msg>fix view of sale order that seems to break<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
  <data>

    <record id="view_order_line_form2_lr" model="ir.ui.view">
        <field name="name">sale.order.line.form2.lr</field>
        <field name="model">sale.order.line</field>
        <field name="type">form</field>
        <field name="inherit_id" ref="sale.view_order_line_form2"/>
        <field name="arch" type="xml">
            <button name="button_cancel" position="attributes">
                <attribute name="states">draft,confirmed,exception</attribute>
            </button>
            <field name="price_unit" position="after">
                <field name="price_is"/>
            </field>
        </field>
    </record>

    <record id="view_order_form" model="ir.ui.view">
        <field name="name">sale.order.form</field>
        <field name="model">sale.order</field>
        <field name="inherit_id" ref="logistic_consignee.view_order_form"/>
        <field name="arch" type="xml">

          <h1 position="before">
            <div class="oe_right oe_button_box" style="width: 300px;" name="buttons">
              <button class="oe_inline oe_stat_button" name="action_open_logistic_requisition"
                type="object" icon="fa-thumb-tack">
                <field string="Linked LR" name="lr_count" widget="statinfo" />
              </button>
              <button class="oe_inline oe_stat_button" name="action_open_lr_sources"
                type="object" icon="fa-search">
                <field string="Linked LRS" name="lr_source_count" widget="statinfo" />
              </button>
              <button class="oe_inline oe_stat_button" name="action_open_lr_purchases"
                type="object" icon="fa-shopping-cart" states="draft">
                <field string="Relevant Bid &amp; PO" name="lr_purchase_count" widget="statinfo" />
              </button>
              <button class="oe_inline oe_stat_button" name="action_open_lr_purchases"
                type="object" icon="fa-shopping-cart" states="accepted,waiting_date,progress,manual,shipping_except,invoice_except">
                <field string="Relevant PO" name="lr_purchase_count" widget="statinfo" />
              </button>
            </div>
          </h1>

          <field name="consignee_id" position="before">
            <field name='order_type'/>
          </field>
          <field name="consignee_id" position="attributes">
            <attribute name="attrs">{'required': [('order_type', '!=', 'cost_estimate_only')]}</attribute>
          </field>
          <xpath expr="//field[@name='order_line']/tree" position="attributes">
            <attribute name="editable" eval="0"/>
          </xpath>
          <xpath expr="//field[@name='order_line']/tree//field[@name='price_unit']"
              position="after">
              <field name="price_is"/>
          </xpath>
          <xpath expr="//field[@name='order_line']/form//field[@name='delay']" position="after">
              <field name="lr_source_id" groups="base.group_no_one"/>
          </xpath>
        </field>
    </record>

  </data>
</openerp>
{'fraction_non_alphanumeric': 0.15841584158415842, 'fraction_numerical': 0.0038326413286489938, 'mean_word_length': 2.5364201016374928, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 2, '>': 131, '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': '6633374', 'n_tokens_mistral': 1911, 'n_tokens_neox': 1856, 'n_words': 301}