46 lines
1.6 KiB
XML
46 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
Copyright 2021 Akretion France (http://www.akretion.com/)
|
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
-->
|
|
|
|
<odoo>
|
|
|
|
<record id="view_pos_session_form" model="ir.ui.view">
|
|
<field name="model">pos.session</field>
|
|
<field name="inherit_id" ref="point_of_sale.view_pos_session_form"/>
|
|
<field name="arch" type="xml">
|
|
<button name="show_journal_items" position="after">
|
|
<button name="%(point_of_sale.action_report_pos_order_all)d" type="action" class="oe_stat_button" icon="fa-table" string="Stats" context="{'search_default_session_id': active_id}"/>
|
|
</button>
|
|
<xpath
|
|
expr="//field[@name='cash_register_total_entry_encoding']/parent::group"
|
|
position="before"
|
|
>
|
|
<group>
|
|
<field
|
|
style="text-align:right;margin:0;padding:0;"
|
|
name="cash_register_balance_start"
|
|
widget="monetary"
|
|
options="{'currency_field': 'currency_id'}"
|
|
string="Starting Balance"
|
|
/>
|
|
</group>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_pos_session_tree" model="ir.ui.view">
|
|
<field name="model">pos.session</field>
|
|
<field name="inherit_id" ref="point_of_sale.view_pos_session_tree"/>
|
|
<field name="arch" type="xml">
|
|
<field name="state" position="attributes">
|
|
<attribute name="decoration-success">state == 'opened'</attribute>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|