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.

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