<commit_before><openerp>
<data>
    <record model="ir.ui.view" id="purchase_discount_order_line_form2">
        <field name="name">purchase_discount.order.line.form2 (purchase_discount)</field>
        <field name="model">purchase.order.line</field>
        <field name="inherit_id" ref="purchase.purchase_order_line_form2"/>
        <field name="arch" type="xml">
            <field name="price_unit" position="after">
                <field name="discount"/>
            </field>
        </field>
    </record>
    <record model="ir.ui.view" id="purchase_discount_order_line_tree">
        <field name="name">purchase_discount.order.line.tree</field>
        <field name="model">purchase.order.line</field>
        <field name="inherit_id" ref="purchase.purchase_order_line_tree"/>
        <field name="arch" type="xml">
            <field name="price_unit" position="after">
                <field name="discount"/>
            </field>
        </field>
    </record>
    
     <record model="ir.ui.view" id="purchase_discount_order_form">
         <field name="name">purchase.discount.order.form</field>
         <field name="model">purchase.order</field>
         <field name="inherit_id" ref="purchase.purchase_order_form"/>
         <field name="arch" type="xml">
              <xpath expr="//field[@name='order_line']/tree/field[@name='price_unit']" position="after">
                  <field name="discount"/>
              </xpath>
         </field>
     </record>
</data>
</openerp><commit_msg>Add discount on nested form view of purchase order line<commit_after><odoo>
  <record model="ir.ui.view" id="purchase_discount_order_line_form2">
    <field name="name">purchase_discount.order.line.form2 (purchase_discount)</field>
    <field name="model">purchase.order.line</field>
    <field name="inherit_id" ref="purchase.purchase_order_line_form2"/>
    <field name="arch" type="xml">
      <field name="price_unit" position="after">
        <field name="discount"/>
      </field>
    </field>
  </record>

  <record model="ir.ui.view" id="purchase_discount_order_line_tree">
    <field name="name">purchase_discount.order.line.tree</field>
    <field name="model">purchase.order.line</field>
    <field name="inherit_id" ref="purchase.purchase_order_line_tree"/>
    <field name="arch" type="xml">
      <field name="price_unit" position="after">
        <field name="discount"/>
      </field>
    </field>
  </record>

  <record model="ir.ui.view" id="purchase_discount_order_form_line_tree">
    <field name="name">purchase.discount.order.form</field>
    <field name="model">purchase.order</field>
    <field name="inherit_id" ref="purchase.purchase_order_form"/>
    <field name="arch" type="xml">
      <xpath expr="//field[@name='order_line']/tree/field[@name='price_unit']" position="after">
        <field name="discount"/>
      </xpath>
    </field>
  </record>

  <record model="ir.ui.view" id="purchase_discount_order_form_line_form">
    <field name="name">purchase.discount.order.form</field>
    <field name="model">purchase.order</field>
    <field name="inherit_id" ref="purchase.purchase_order_form"/>
    <field name="arch" type="xml">
      <xpath expr="//field[@name='order_line']/form//field[@name='price_unit']" position="after">
        <field name="discount"/>
      </xpath>
    </field>
  </record>
</odoo>
{'fraction_non_alphanumeric': 0.17179563788467284, 'fraction_numerical': 0.00179265013444876, 'mean_word_length': 3.512129380053908, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 93, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 7}, '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': '6882755', 'n_tokens_mistral': 1091, 'n_tokens_neox': 1084, 'n_words': 163}