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.

39 lines
1.5 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2017 - Today: GRAP (http://www.grap.coop)
  4. @author Sylvain LE GAL (https://twitter.com/legalsylvain)
  5. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  6. -->
  7. <openerp><data>
  8. <record id="view_pos_order_form" model="ir.ui.view">
  9. <field name="model">pos.order</field>
  10. <field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>
  11. <field name="arch" type="xml">
  12. <xpath expr="//group[@name='order_total']" position="after">
  13. <group name="margin" string="Margin">
  14. <field name="margin" widget="monetary"/>
  15. <field name="margin_percent"/>
  16. </group>
  17. </xpath>
  18. <xpath expr="//field[@name='lines']/tree/field[@name='price_subtotal']" position="before">
  19. <field name="purchase_price"/>
  20. <field name="margin"/>
  21. <field name="margin_percent"/>
  22. </xpath>
  23. </field>
  24. </record>
  25. <record id="view_pos_order_tree" model="ir.ui.view">
  26. <field name="model">pos.order</field>
  27. <field name="inherit_id" ref="point_of_sale.view_pos_order_tree"/>
  28. <field name="arch" type="xml">
  29. <xpath expr="//field[@name='invoice_id']" position="after">
  30. <field name="margin" widget="monetary" sum="Total"/>
  31. <field name="margin_percent"/>
  32. </xpath>
  33. </field>
  34. </record>
  35. </data></openerp>