1 <?xml version="1.0" encoding="utf-8"?>
4 <record id="view_report_cash_register_tree" model="ir.ui.view">
5 <field name="name">report.cash.register.tree</field>
6 <field name="model">report.cash.register</field>
7 <field name="type">tree</field>
8 <field name="arch" type="xml">
9 <tree string="Point of Sale Cash Register Analysis">
10 <field name="date" invisible="1"/>
11 <field name="user_id" invisible="1"/>
12 <field name="state" invisible="1"/>
13 <field name="year" invisible="1"/>
14 <field name="month" invisible="1"/>
15 <field name="day" invisible="1"/>
16 <field name="journal_id" invisible="1"/>
17 <field name="balance_start" />
18 <field name="balance_end_real" />
23 <record id="view_report_cash_register_search" model="ir.ui.view">
24 <field name="name">report.cash.register.search</field>
25 <field name="model">report.cash.register</field>
26 <field name="type">search</field>
27 <field name="arch" type="xml">
28 <search string="Point of Sale Cash Register Analysis">
31 <separator orientation="vertical"/>
32 <filter icon="terp-document-new"
34 domain="[('state','=',('draft'))]"/>
35 <filter icon="terp-camera_test"
37 domain="[('state','=',('confirm'))]"/>
38 <filter icon="terp-personal"
41 domain="[('user_id','=',uid)]"/>
42 <separator orientation="vertical"/>
43 <field name="user_id" widget="selection"/>
46 <group expand="1" string="Group By...">
47 <filter string="User" name="User" icon="terp-personal" context="{'group_by':'user_id'}"/>
48 <filter string="Journal" icon="terp-folder-orange" context="{'group_by':'journal_id'}"/>
49 <separator orientation="vertical"/>
50 <filter string="State" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
51 <separator orientation="vertical"/>
52 <filter string="Day" icon="terp-go-today" context="{'group_by':'day'}" help="Day from Creation date of cash register"/>
53 <filter string="Month" icon="terp-go-month" context="{'group_by':'month'}" help="Month from Creation date of cash register"/>
54 <filter string="Year" icon="terp-go-year" context="{'group_by':'year'}" help="Year from Creation date of cash register"/>
60 <record id="action_report_cash_register_all" model="ir.actions.act_window">
61 <field name="name">Register Analysis</field>
62 <field name="res_model">report.cash.register</field>
63 <field name="view_type">form</field>
64 <field name="view_mode">tree,form</field>
65 <field name="search_view_id" ref="view_report_cash_register_search"/>
66 <field name="context">{'search_default_year':1,'search_default_This Month':1,'search_default_today':1,'search_default_User':1,'group_by_no_leaf':1,'group_by':[]}</field>
69 <menuitem action="action_report_cash_register_all" id="menu_report_cash_register_all" parent="menu_point_rep" sequence="1"/>