1 <?xml version="1.0" encoding="utf-8"?>
4 <record id="view_account_invoice_report_tree" model="ir.ui.view">
5 <field name="name">account.invoice.report.tree</field>
6 <field name="model">account.invoice.report</field>
7 <field name="type">tree</field>
8 <field name="arch" type="xml">
9 <tree string="Invoices Statistics">
11 <field name="user_id"/>
12 <field name="year" invisible="1"/>
13 <field name="month" invisible="1"/>
14 <field name="type" invisible="1"/>
15 <field name="company_id" invisible="1"/>
16 <field name="partner_id"/>
17 <field name="product_id"/>
18 <field name="product_qty"/>
19 <!--field name="delay" avg="Days to Close"/-->
20 <field name="nbr" sum="# of Lines"/>
21 <field name="price_average" avg="Average Price"/>
22 <field name="price_total" sum="Total Price"/>
23 <field name="state" invisible="1"/>
24 <field name="payment_term" invisible="1"/>
25 <field name="period_id" invisible="1"/>
26 <field name="fiscal_position" invisible="1"/>
27 <field name="currency_id" invisible="1"/>
28 <field name="journal_id" invisible="1"/>
33 <record id="view_account_invoice_report_graph" model="ir.ui.view">
34 <field name="name">account.invoice.report.graph</field>
35 <field name="model">account.invoice.report</field>
36 <field name="type">graph</field>
37 <field name="arch" type="xml">
38 <graph string="Invoices Statistics" type="bar">
39 <field name="product_id"/>
40 <field name="price_total"/>
45 <record id="view_account_invoice_report_search" model="ir.ui.view">
46 <field name="name">account.invoice.report.search</field>
47 <field name="model">account.invoice.report</field>
48 <field name="type">search</field>
49 <field name="arch" type="xml">
50 <search string="Invoices">
52 <filter icon="terp-account"
54 domain="[('year','=',time.strftime('%%Y'))]"
55 help="Invoices of the year"/>
56 <filter icon="terp-account"
58 domain="[('month','=',time.strftime('%%m'))]"
59 help="Invoices of this month"/>
60 <separator orientation="vertical"/>
61 <filter icon="terp-account"
63 domain="[('state','=','draft')]"/>
64 <filter icon="terp-account"
66 domain="[('state','<>','draft'),('state','<>','cancel')]"/>
67 <filter icon="terp-account"
69 domain="[('state','=','paid')]"/>
70 <separator orientation="vertical"/>
71 <field name="product_id"/>
72 <field name="user_id" widget="selection">
73 <filter icon="terp-account"
76 domain="[('user_id','=',uid)]"/>
78 <field name="partner_id"/>
79 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
82 <group expand="1" string="Extended options..." colspan="10" col="12">
83 <filter icon="terp-account"
84 string="Customer Invoices"
85 domain="[('type','=','out_invoice')]"
87 <filter icon="terp-account"
88 string="Customer Refunds"
89 domain="[('type','=','out_refund')]"/>
90 <separator orientation="vertical"/>
91 <filter icon="terp-account"
92 string="Supplier Invoices"
93 domain="[('type','=','in_invoice')]"/>
94 <filter icon="terp-account"
95 string="Supplier Refunds"
96 domain="[('type','=','in_refund')]"/>
99 <group expand="1" string="Group By..." colspan="10" col="12">
100 <filter string="Company" icon="terp-account" context="{'group_by':'company_id'}"/>
101 <filter string="Salesman" name='User' icon="terp-account" context="{'group_by':'user_id'}"/>
102 <filter string="Payment Term" icon="terp-account" context="{'group_by':'payment_term'}"/>
103 <separator orientation="vertical"/>
104 <filter string="Currency" icon="terp-account" context="{'group_by':'currency_id'}"/>
105 <filter string="Journal" icon="terp-account" context="{'group_by':'journal_id'}"/>
106 <filter string="Product" icon="terp-account" context="{'group_by':'product_id'}"/>
107 <filter string="Partner" icon="terp-account" context="{'group_by':'partner_id'}"/>
108 <filter string="Type" icon="terp-account" context="{'group_by':'type'}"/>
109 <filter string="State" icon="terp-account" context="{'group_by':'state'}"/>
110 <separator orientation="vertical"/>
111 <filter string="Force Period" icon="terp-account" context="{'group_by':'period_id'}"/>
112 <filter string="Fiscal Position" icon="terp-account" context="{'group_by':'fiscal_position'}"/>
113 <filter string="Month" icon="terp-account" context="{'group_by':'date'}"/>
114 <filter string="Year" icon="terp-account" context="{'group_by':'year'}"/>
120 <record id="action_account_invoice_report_all" model="ir.actions.act_window">
121 <field name="name">Invoices</field>
122 <field name="res_model">account.invoice.report</field>
123 <field name="view_type">form</field>
124 <field name="view_mode">tree,graph</field>
125 <field name="context">{'search_default_User':1,'search_default_user_id':uid}</field>
126 <field name="search_view_id" ref="view_account_invoice_report_search"/>
129 <menuitem action="action_account_invoice_report_all" id="menu_action_account_invoice_report_all" parent="account.menu_finance_reporting" sequence="0"/>