25 lines
948 B
XML
25 lines
948 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!--
|
|
Inherit the pos.session form view to add a "Reprint Closing Summary"
|
|
button in the header, visible only when the session is closed.
|
|
-->
|
|
<record id="view_pos_session_form_closing_receipt" model="ir.ui.view">
|
|
<field name="name">pos.session.form.closing.receipt</field>
|
|
<field name="model">pos.session</field>
|
|
<field name="inherit_id" ref="point_of_sale.view_pos_session_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//header" position="inside">
|
|
<button
|
|
name="action_reprint_closing_summary"
|
|
type="object"
|
|
string="Reprint Closing Summary"
|
|
class="btn-secondary"
|
|
invisible="state != 'closed'"
|
|
icon="fa-print"
|
|
/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|