Files
odoo-usability/pos_usability/views/pos_session.xml
2021-11-26 18:57:02 +03:00

39 lines
1.3 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>
</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>