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.

22 lines
976 B

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Copyright 2018 GRAP - Sylvain LE GAL
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. -->
  5. <odoo>
  6. <record id="view_pos_order_form" model="ir.ui.view">
  7. <field name="model">pos.order</field>
  8. <field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>
  9. <field name="arch" type="xml">
  10. <field name="session_id" position="after">
  11. <field name="returned_order_id" attrs="{'invisible': [('returned_order_id', '=', False)]}" />
  12. </field>
  13. <xpath expr="//div[@name='button_box']" position="inside">
  14. <button name="action_view_refund_orders" type="object" icon="fa-undo" class="oe_stat_button" attrs="{'invisible': [('refund_order_qty', '=', 0)]}">
  15. <field string="Refunds" name="refund_order_qty" widget="statinfo"/>
  16. </button>
  17. </xpath>
  18. </field>
  19. </record>
  20. </odoo>