2010-03-10 09:41:29 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
<record id="view_account_invoice_report_tree" model="ir.ui.view">
|
|
|
|
<field name="name">account.invoice.report.tree</field>
|
|
|
|
<field name="model">account.invoice.report</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Invoices Statistics">
|
|
|
|
<field name="date"/>
|
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="year" invisible="1"/>
|
|
|
|
<field name="month" invisible="1"/>
|
2010-03-10 11:05:01 +00:00
|
|
|
<field name="type" invisible="1"/>
|
2010-03-10 09:41:29 +00:00
|
|
|
<field name="company_id" invisible="1"/>
|
|
|
|
<field name="partner_id"/>
|
|
|
|
<field name="product_id"/>
|
|
|
|
<field name="product_qty"/>
|
|
|
|
<!--field name="delay" avg="Days to Close"/-->
|
|
|
|
<field name="nbr" sum="# of Lines"/>
|
|
|
|
<field name="price_average" avg="Average Price"/>
|
|
|
|
<field name="price_total" sum="Total Price"/>
|
|
|
|
<field name="state" invisible="1"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_account_invoice_report_graph" model="ir.ui.view">
|
|
|
|
<field name="name">account.invoice.report.graph</field>
|
|
|
|
<field name="model">account.invoice.report</field>
|
|
|
|
<field name="type">graph</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<graph string="Invoices Statistics" type="bar">
|
|
|
|
<field name="product_id"/>
|
|
|
|
<field name="price_total"/>
|
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_account_invoice_report_search" model="ir.ui.view">
|
|
|
|
<field name="name">account.invoice.report.search</field>
|
|
|
|
<field name="model">account.invoice.report</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Invoices">
|
|
|
|
<filter icon="terp-account"
|
|
|
|
string="This Year"
|
|
|
|
domain="[('year','=',time.strftime('%%Y'))]"
|
|
|
|
help="Invoices of the year"/>
|
|
|
|
<filter icon="terp-account"
|
|
|
|
string="This Month"
|
|
|
|
domain="[('month','=',time.strftime('%%m'))]"
|
|
|
|
help="Invoices of this month"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter icon="terp-account"
|
|
|
|
string="Draft"
|
|
|
|
domain="[('state','=','draft')]"/>
|
|
|
|
<filter icon="terp-account"
|
|
|
|
string="Invoices"
|
|
|
|
domain="[('state','<>','draft'),('state','<>','cancel')]"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="product_id"/>
|
|
|
|
<field name="user_id" widget="selection">
|
|
|
|
<filter icon="terp-account"
|
|
|
|
string="My Invoices"
|
|
|
|
domain="[('user_id','=',uid)]"/>
|
|
|
|
</field>
|
|
|
|
<field name="partner_id"/>
|
|
|
|
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
|
|
|
|
|
|
|
<newline/>
|
2010-03-10 11:05:01 +00:00
|
|
|
|
2010-03-10 09:41:29 +00:00
|
|
|
<group expand="1" string="Group By..." colspan="10" col="12">
|
2010-03-10 09:57:59 +00:00
|
|
|
<filter string="Company" icon="terp-account" context="{'group_by':'company_id'}"/>
|
|
|
|
<filter string="Salesman" icon="terp-account" context="{'group_by':'user_id'}" default="1"/>
|
2010-03-10 09:41:29 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-03-10 09:57:59 +00:00
|
|
|
<filter string="Product" icon="terp-account" context="{'group_by':'product_id'}"/>
|
|
|
|
<filter string="Partner" icon="terp-account" context="{'group_by':'partner_id'}"/>
|
|
|
|
<filter string="State" icon="terp-account" context="{'group_by':'state'}"/>
|
2010-03-10 09:41:29 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-03-10 09:57:59 +00:00
|
|
|
<filter string="Month" icon="terp-account" context="{'group_by':'date'}"/>
|
|
|
|
<filter string="Year" icon="terp-account" context="{'group_by':'year'}"/>
|
2010-03-10 09:41:29 +00:00
|
|
|
</group>
|
2010-03-10 11:05:01 +00:00
|
|
|
<newline/>
|
|
|
|
<group expand="1" string="Extended options..." colspan="10" col="12">
|
|
|
|
<filter icon="terp-account"
|
|
|
|
string="Customer Invoices"
|
|
|
|
domain="[('type','=','out_invoice')]"/>
|
|
|
|
<filter icon="terp-account"
|
|
|
|
string="Supplier Invoices"
|
|
|
|
domain="[('type','=','in_invoice')]"/>
|
|
|
|
<filter icon="terp-account"
|
|
|
|
string="Customer Refunds"
|
|
|
|
domain="[('type','=','out_refund')]"/>
|
|
|
|
<filter icon="terp-account"
|
|
|
|
string="Supplier Refunds"
|
|
|
|
domain="[('type','=','in_refund')]"/>
|
|
|
|
</group>
|
2010-03-10 09:41:29 +00:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_account_invoice_report_all" model="ir.actions.act_window">
|
|
|
|
<field name="name">Invoices</field>
|
|
|
|
<field name="res_model">account.invoice.report</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,graph</field>
|
|
|
|
<field name="search_view_id" ref="view_account_invoice_report_search"/>
|
|
|
|
</record>
|
|
|
|
|
2010-03-10 11:26:43 +00:00
|
|
|
<menuitem action="action_account_invoice_report_all" id="menu_action_account_invoice_report_all" parent="account.menu_finance_reporting" sequence="0"/>
|
2010-03-10 09:41:29 +00:00
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|