You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.7 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <odoo>
  3. <record model="ir.ui.view" id="purchase_order_line_form2">
  4. <field name="name">purchase_discount.order.line.form2</field>
  5. <field name="model">purchase.order.line</field>
  6. <field name="inherit_id" ref="purchase.purchase_order_line_form2" />
  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_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_order_form">
  24. <field name="name">purchase_discount.purchase.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
  29. expr="//field[@name='order_line']/tree/field[@name='price_unit']"
  30. position="after"
  31. >
  32. <field name="discount" />
  33. </xpath>
  34. <xpath
  35. expr="//field[@name='order_line']/form//field[@name='price_unit']"
  36. position="after"
  37. >
  38. <field name="discount" />
  39. </xpath>
  40. </field>
  41. </record>
  42. </odoo>