purchase_discount_view.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <openerp>
  2. <data>
  3. <record model="ir.ui.view" id="purchase_discount_order_line_form">
  4. <field name="name">purchase_discount.order.line.form</field>
  5. <field name="model">purchase.order.line</field>
  6. <field name="inherit_id" ref="purchase.purchase_order_line_form"/>
  7. <field name="arch" type="xml">
  8. <field name="price_unit" position="after">
  9. <field name="discount"/>
  10. </field>
  11. </field>
  12. </record>
  13. <record model="ir.ui.view" id="purchase_discount_order_line_tree">
  14. <field name="name">purchase_discount.order.line.tree</field>
  15. <field name="model">purchase.order.line</field>
  16. <field name="inherit_id" ref="purchase.purchase_order_line_tree"/>
  17. <field name="arch" type="xml">
  18. <field name="price_unit" position="after">
  19. <field name="discount"/>
  20. </field>
  21. </field>
  22. </record>
  23. <record model="ir.ui.view" id="purchase_discount_order_form">
  24. <field name="name">purchase.discount.order.form</field>
  25. <field name="model">purchase.order</field>
  26. <field name="inherit_id" ref="purchase.purchase_order_form"/>
  27. <field name="arch" type="xml">
  28. <xpath expr="//field[@name='order_line']/tree/field[@name='price_unit']" position="after">
  29. <field name="discount"/>
  30. </xpath>
  31. </field>
  32. </record>
  33. </data>
  34. </openerp>