purchase_discount_view.xml 1.73 KB
Newer Older
François C. committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
<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>