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">
|
2010-04-20 11:04:24 +00:00
|
|
|
<field name="date" invisible="1"/>
|
|
|
|
<field name="user_id" invisible="1"/>
|
2010-03-10 09:41:29 +00:00
|
|
|
<field name="year" invisible="1"/>
|
2010-04-20 11:04:24 +00:00
|
|
|
<field name="day" invisible="1"/>
|
2010-03-10 09:41:29 +00:00
|
|
|
<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"/>
|
2010-04-20 11:04:24 +00:00
|
|
|
<field name="partner_id" invisible="1"/>
|
|
|
|
<field name="product_id" invisible="1"/>
|
|
|
|
<field name="product_qty" invisible="1"/>
|
2010-03-10 09:41:29 +00:00
|
|
|
<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"/>
|
2010-04-07 09:07:16 +00:00
|
|
|
<field name="payment_term" invisible="1"/>
|
|
|
|
<field name="period_id" invisible="1"/>
|
|
|
|
<field name="fiscal_position" invisible="1"/>
|
|
|
|
<field name="currency_id" invisible="1"/>
|
|
|
|
<field name="journal_id" invisible="1"/>
|
2010-04-29 08:27:53 +00:00
|
|
|
<field name="date_due" invisible="1"/>
|
|
|
|
<field name="address_contact_id" invisible="1"/>
|
|
|
|
<field name="address_invoice_id" invisible="1"/>
|
|
|
|
<field name="account_id" invisible="1"/>
|
|
|
|
<field name="partner_bank" invisible="1"/>
|
2010-04-29 11:46:49 +00:00
|
|
|
<field name="residual" sum="Total Residual"/>
|
|
|
|
<field name="delay_to_pay" avg="Avg. Delay To Pay"/>
|
2010-03-10 09:41:29 +00:00
|
|
|
</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">
|
2010-05-03 09:19:40 +00:00
|
|
|
<group col="10" colspan="12">
|
2010-05-25 12:05:09 +00:00
|
|
|
<filter icon="gtk-media-rewind" string="Last 365 Days"
|
2010-04-20 11:04:24 +00:00
|
|
|
domain="[('date','<=', time.strftime('%%Y-%%m-%%d')),('date','>',(datetime.date.today()-datetime.timedelta(days=365)).strftime('%%Y-%%m-%%d'))]"
|
2010-05-21 10:28:04 +00:00
|
|
|
help="Invoices of last 365 days"/>
|
2010-05-25 12:05:09 +00:00
|
|
|
<filter icon="gtk-media-rewind" string="Last 30 Days"
|
2010-04-20 11:04:24 +00:00
|
|
|
name="month"
|
|
|
|
domain="[('date','<=', time.strftime('%%Y-%%m-%%d')), ('date','>',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]"
|
2010-05-21 10:28:04 +00:00
|
|
|
help="Invoices of last 30 days"/>
|
2010-04-20 11:04:24 +00:00
|
|
|
<filter icon="gtk-media-rewind"
|
|
|
|
string=" 7 Days "
|
|
|
|
separator="1"
|
|
|
|
domain="[('date','<=', time.strftime('%%Y-%%m-%%d')), ('date','>',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]"
|
|
|
|
help="Invoices during last 7 days"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter string="Draft"
|
|
|
|
icon="terp-account"
|
|
|
|
domain="[('state','=','draft')]"
|
|
|
|
help = "Draft tasks"/>
|
|
|
|
<filter string="Pro-forma"
|
|
|
|
icon="terp-account"
|
|
|
|
domain="[('state','=','proforma'),('state','=','proforma2')]"
|
|
|
|
help = "Pro-forma tasks"/>
|
|
|
|
<filter string="Current"
|
|
|
|
icon="terp-account"
|
|
|
|
domain="[('state', '=' ,'open')]"
|
|
|
|
help = "In progress tasks"/>
|
2010-05-21 10:28:04 +00:00
|
|
|
<filter string="Done"
|
|
|
|
icon="terp-account"
|
|
|
|
domain="[('state','=','paid')]"
|
|
|
|
help = "Done tasks"/>
|
2010-04-20 11:04:24 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-05-21 10:28:04 +00:00
|
|
|
<field name="partner_id"/>
|
|
|
|
<field name="user_id" widget="selection">
|
2010-04-20 11:04:24 +00:00
|
|
|
<filter icon="terp-account"
|
|
|
|
string="Invoices Non Users"
|
|
|
|
help="Invoices Non Users"
|
|
|
|
domain="[('user_id','=',False)]"/>
|
2010-05-21 10:28:04 +00:00
|
|
|
</field>
|
2010-04-09 08:22:51 +00:00
|
|
|
</group>
|
2010-05-25 08:06:45 +00:00
|
|
|
<newline/>
|
2010-05-25 16:33:03 +00:00
|
|
|
<group expand="1" string="Group By...">
|
2010-04-15 07:11:27 +00:00
|
|
|
<filter string="Salesman" name='User' icon="terp-account" context="{'group_by':'user_id'}"/>
|
2010-04-29 08:27:53 +00:00
|
|
|
<filter string="Partner" icon="terp-account" context="{'group_by':'partner_id'}"/>
|
2010-05-21 10:28:04 +00:00
|
|
|
<filter string="Product" icon="terp-account" context="{'group_by':'product_id'}"/>
|
2010-04-29 08:27:53 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-05-21 10:28:04 +00:00
|
|
|
<filter string="Company" icon="terp-account" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
|
2010-04-29 08:27:53 +00:00
|
|
|
<filter string="State" icon="terp-account" context="{'group_by':'state'}"/>
|
|
|
|
<filter string="Type" icon="terp-account" context="{'group_by':'type'}"/>
|
2010-03-10 12:15:50 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-04-07 09:07:16 +00:00
|
|
|
<filter string="Journal" icon="terp-account" context="{'group_by':'journal_id'}"/>
|
2010-04-29 08:27:53 +00:00
|
|
|
<filter string="Account" icon="terp-account" context="{'group_by':'account_id'}"/>
|
|
|
|
<filter string="Bank Account" icon="terp-account" context="{'group_by':'partner_bank'}"/>
|
2010-03-10 12:15:50 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-05-21 10:28:04 +00:00
|
|
|
<filter string="Currency" icon="terp-account" context="{'group_by':'currency_id'}"/>
|
|
|
|
<filter string="Payment Term" icon="terp-account" context="{'group_by':'payment_term'}"/>
|
2010-04-07 09:07:16 +00:00
|
|
|
<filter string="Force Period" icon="terp-account" context="{'group_by':'period_id'}"/>
|
|
|
|
<filter string="Fiscal Position" icon="terp-account" context="{'group_by':'fiscal_position'}"/>
|
2010-05-21 10:28:04 +00:00
|
|
|
<newline/>
|
2010-04-20 11:04:24 +00:00
|
|
|
<filter string="Day" icon="terp-account" context="{'group_by':'day'}"/>
|
2010-04-28 14:40:43 +00:00
|
|
|
<filter string="Month" icon="terp-account" context="{'group_by':'month'}"/>
|
2010-03-10 12:15:50 +00:00
|
|
|
<filter string="Year" icon="terp-account" context="{'group_by':'year'}"/>
|
|
|
|
</group>
|
2010-03-10 09:41:29 +00:00
|
|
|
<newline/>
|
2010-05-25 16:33:03 +00:00
|
|
|
<group expand="0" string="Extended options..." groups="base.group_extended">
|
2010-05-25 08:06:45 +00:00
|
|
|
<field name="type"/>
|
|
|
|
<field name="currency_id" widget="selection"/>
|
|
|
|
<field name="partner_bank" widget="selection"/>
|
|
|
|
<field name="fiscal_position" widget="selection"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="address_contact_id"/>
|
|
|
|
<field name="account_id"/>
|
|
|
|
<newline/>
|
|
|
|
<field name="payment_term" widget="selection"/>
|
|
|
|
<field name="journal_id" widget="selection"/>
|
|
|
|
<field name="period_id" widget="selection"/>
|
|
|
|
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="address_invoice_id"/>
|
|
|
|
<field name="product_id"/>
|
2010-04-20 11:04:24 +00:00
|
|
|
<newline/>
|
2010-05-25 08:06:45 +00:00
|
|
|
<field name="date" string="Date Invoiced"/>
|
|
|
|
<field name="date_due"/>
|
2010-03-10 11:05:01 +00:00
|
|
|
</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>
|
2010-05-13 13:17:19 +00:00
|
|
|
<field name="context">{'search_default_month':1,'search_default_User':1,'group_by_no_leaf':1,'group_by':[],'search_default_user_id':uid}</field>
|
2010-03-10 09:41:29 +00:00
|
|
|
<field name="search_view_id" ref="view_account_invoice_report_search"/>
|
|
|
|
</record>
|
|
|
|
|
2010-05-26 10:45:44 +00:00
|
|
|
<menuitem action="action_account_invoice_report_all" id="menu_action_account_invoice_report_all" parent="account.menu_finance_statistic_report_statement" sequence="0"/>
|
2010-03-10 09:41:29 +00:00
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|