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.

37 lines
1.4 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. <odoo>
  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. <field name="amount_total" position="after">
  13. <field name="margin" widget="monetary"/>
  14. <field name="margin_percent" widget="monetary"/>
  15. </field>
  16. <xpath expr="//field[@name='lines']/tree/field[@name='discount']" position="after">
  17. <field name="purchase_price" widget="monetary"/>
  18. <field name="margin"/>
  19. <field name="margin_percent"/>
  20. </xpath>
  21. </field>
  22. </record>
  23. <record id="view_pos_order_tree" model="ir.ui.view">
  24. <field name="model">pos.order</field>
  25. <field name="inherit_id" ref="point_of_sale.view_pos_order_tree"/>
  26. <field name="arch" type="xml">
  27. <field name="amount_total" position="before">
  28. <field name="margin" widget="monetary" sum="Total"/>
  29. <field name="margin_percent" widget="monetary"/>
  30. </field>
  31. </field>
  32. </record>
  33. </odoo>