Launchpad automatic translations update.
[odoo/odoo.git] / addons / point_of_sale / report / report_cash_register_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
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" />
19               </tree>
20           </field>
21         </record>
22
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">
29                   <group>
30                       <filter icon="terp-go-year" string="Year" name="year"
31                           domain="[('year','=',time.strftime('%%Y'))]"
32                           help="Cash Analysis created during this year"/>
33                       <separator orientation="vertical"/>
34
35                       <filter icon="terp-go-month" string="Month" name="This Month"
36                           domain="[('date','&lt;=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('date','&gt;=',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]"
37                           help="Cash Analysis created in current month"/>
38                       <filter icon="terp-go-month"
39                            string="Month -1"
40                            domain="[('date','&lt;=', (datetime.date.today() - relativedelta(day=31, months=1)).strftime('%%Y-%%m-%%d')),('date','&gt;=',(datetime.date.today() - relativedelta(day=1,months=1)).strftime('%%Y-%%m-%%d'))]"
41                            help="Cash Analysis created in last month"/>
42                       <separator orientation="vertical"/>
43                       <filter icon="terp-go-today"
44                              string="    Today    "
45                              name="today"
46                              domain="[('date','&lt;=', time.strftime('%%Y-%%m-%%d'))]"
47                              help="Cash Analysis created by today"/>
48                       <separator orientation="vertical"/>
49                         <filter icon="terp-document-new"
50                             string="Draft"
51                             domain="[('state','=',('draft'))]"/>
52                       <filter icon="terp-camera_test"
53                           string="Confirm"
54                           domain="[('state','=',('confirm'))]"/>
55                         <separator orientation="vertical"/>
56                         <field name="user_id" widget="selection">
57                         <filter icon="terp-personal"
58                             string="My Sales"
59                             help="My Sales"
60                             domain="[('user_id','=',uid)]"/>
61                         </field>
62                     </group>
63                     <newline/>
64                   <group expand="1" string="Group By...">
65                       <filter string="User" name="User" icon="terp-personal" context="{'group_by':'user_id'}"/>
66                       <filter string="Journal" icon="terp-folder-orange" context="{'group_by':'journal_id'}"/>
67                         <separator orientation="vertical"/>
68                         <filter string="state" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
69                       <separator orientation="vertical"/>
70                         <filter string="Day" icon="terp-go-today" context="{'group_by':'day'}" help="Day from Creation date of cash register"/>
71                         <filter string="Month" icon="terp-go-month" context="{'group_by':'month'}" help="Month from Creation date of cash register"/>
72                         <filter string="Year" icon="terp-go-year" context="{'group_by':'year'}" help="Year from Creation date of cash register"/>
73                   </group>
74               </search>
75           </field>
76         </record>
77
78         <record id="action_report_cash_register_all" model="ir.actions.act_window">
79           <field name="name">Register Analysis</field>
80           <field name="res_model">report.cash.register</field>
81           <field name="view_type">form</field>
82           <field name="view_mode">tree,form</field>
83           <field name="search_view_id" ref="view_report_cash_register_search"/>
84           <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>
85       </record>
86
87       <menuitem action="action_report_cash_register_all" id="menu_report_cash_register_all" parent="menu_point_rep" sequence="1"/>
88   </data>
89 </openerp>