2010-05-04 07:12:13 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
<record id="view_analytic_entries_report_tree" model="ir.ui.view">
|
|
|
|
<field name="name">analytic.entries.report.tree</field>
|
|
|
|
<field name="model">analytic.entries.report</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-05-27 11:17:21 +00:00
|
|
|
<tree string="Analytic Entries Analysis">
|
2010-05-04 07:12:13 +00:00
|
|
|
<field name="date" invisible="1"/>
|
|
|
|
<field name="year" invisible="1"/>
|
|
|
|
<field name="day" invisible="1"/>
|
|
|
|
<field name="month" invisible="1"/>
|
|
|
|
<field name="user_id" invisible="1"/>
|
|
|
|
<field name="name" invisible="1"/>
|
2010-09-24 07:42:07 +00:00
|
|
|
<field name="partner_id" invisible="1"/>
|
2010-05-27 12:31:25 +00:00
|
|
|
<field name="company_id" invisible="1" groups="base.group_multi_company"/>
|
2010-05-04 07:12:13 +00:00
|
|
|
<field name="currency_id" invisible="1"/>
|
|
|
|
<field name="account_id" invisible="1"/>
|
|
|
|
<field name="general_account_id" invisible="1"/>
|
|
|
|
<field name="journal_id" invisible="1"/>
|
|
|
|
<field name="product_id" invisible="1"/>
|
|
|
|
<field name="product_uom_id" invisible="1"/>
|
2010-05-04 13:20:22 +00:00
|
|
|
<field name="nbr" sum="Entries"/>
|
2010-09-24 07:42:07 +00:00
|
|
|
<field name="unit_amount" sum="Quantity"/>
|
2010-05-04 07:12:13 +00:00
|
|
|
<field name="amount" sum="Amount"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_analytic_entries_report_search" model="ir.ui.view">
|
|
|
|
<field name="name">analytic.entries.report.search</field>
|
|
|
|
<field name="model">analytic.entries.report</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-05-27 11:17:21 +00:00
|
|
|
<search string="Analytic Entries Analysis">
|
2010-05-04 07:12:13 +00:00
|
|
|
<group col="10" colspan="12">
|
2010-08-03 13:37:19 +00:00
|
|
|
<filter icon="terp-go-year" string=" 365 Days "
|
|
|
|
domain="[('day','<=', time.strftime('%%Y-%%m-%%d')),('day','>',(datetime.date.today()-datetime.timedelta(days=365)).strftime('%%Y-%%m-%%d'))]"
|
|
|
|
help="Analytic Entries of last 365 days"/>
|
|
|
|
<filter icon="terp-go-month" string=" 30 Days "
|
|
|
|
name="month"
|
|
|
|
domain="[('day','<=', time.strftime('%%Y-%%m-%%d')), ('day','>',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]"
|
|
|
|
help="Analytic Entries of last 30 days"/>
|
|
|
|
<filter icon="terp-go-week"
|
|
|
|
string=" 7 Days "
|
|
|
|
separator="1"
|
|
|
|
domain="[('day','<=', time.strftime('%%Y-%%m-%%d')), ('day','>',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]"
|
|
|
|
help="Analytic Entries during last 7 days"/>
|
|
|
|
<separator orientation="vertical"/>
|
2010-09-24 07:42:07 +00:00
|
|
|
<field name="date" />
|
|
|
|
<field name="account_id" />
|
2010-08-03 13:37:19 +00:00
|
|
|
<field name="product_id" />
|
2010-09-24 07:42:07 +00:00
|
|
|
<field name="user_id">
|
2010-09-16 09:05:06 +00:00
|
|
|
<filter icon="terp-personal" domain="[('user_id','=',uid)]" help="My Entries"/>
|
2010-08-03 13:37:19 +00:00
|
|
|
</field>
|
|
|
|
</group>
|
2010-05-04 07:12:13 +00:00
|
|
|
<newline/>
|
2010-07-07 10:07:04 +00:00
|
|
|
<group expand="1" string="Group By...">
|
2010-06-07 09:04:11 +00:00
|
|
|
<filter string="User" name="User" icon="terp-personal" context="{'group_by':'user_id'}"/>
|
2010-09-24 07:42:07 +00:00
|
|
|
<filter string="Partner" icon="terp-personal" context="{'group_by':'partner_id'}"/>
|
2010-06-07 09:04:11 +00:00
|
|
|
<filter string="Company" icon="terp-go-home" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
|
2010-05-04 07:12:13 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-09-24 07:42:07 +00:00
|
|
|
<filter string="Account" icon="terp-folder-green" context="{'group_by':'account_id'}"/>
|
2010-06-07 09:04:11 +00:00
|
|
|
<filter string="General Account" icon="terp-folder-orange" context="{'group_by':'general_account_id'}"/>
|
2010-09-24 07:42:07 +00:00
|
|
|
<filter string="Journal" icon="terp-folder-green" context="{'group_by':'journal_id'}"/>
|
2010-05-04 07:12:13 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-06-07 09:04:11 +00:00
|
|
|
<filter string="Product" icon="terp-accessories-archiver" context="{'group_by':'product_id'}"/>
|
|
|
|
<filter string="Product UOM" icon="terp-mrp" context="{'group_by':'product_uom_id'}"/>
|
2010-05-04 07:12:13 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-06-16 11:41:41 +00:00
|
|
|
<filter string="Day" icon="terp-go-today" context="{'group_by':'day'}"/>
|
2010-06-07 09:04:11 +00:00
|
|
|
<filter string="Month" icon="terp-go-month" context="{'group_by':'month'}"/>
|
|
|
|
<filter string="Year" icon="terp-go-year" context="{'group_by':'year'}"/>
|
2010-05-04 07:12:13 +00:00
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-05-06 12:27:27 +00:00
|
|
|
<record id="view_account_analytic_entries_search" model="ir.ui.view">
|
|
|
|
<field name="name">account.analytic.entries.graph</field>
|
|
|
|
<field name="model">analytic.entries.report</field>
|
|
|
|
<field name="type">graph</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-05-27 11:17:21 +00:00
|
|
|
<graph string="Analytic Entries Analysis" type="bar">
|
2010-09-16 09:05:06 +00:00
|
|
|
<field name="user_id"/>
|
2010-05-06 12:27:27 +00:00
|
|
|
<field name="unit_amount" operator="+"/>
|
2010-09-24 07:42:07 +00:00
|
|
|
<field name="amount" operator="+"/>
|
2010-05-06 12:27:27 +00:00
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-05-04 07:12:13 +00:00
|
|
|
<record id="action_analytic_entries_report" model="ir.actions.act_window">
|
2010-05-27 11:17:21 +00:00
|
|
|
<field name="name">Analytic Entries Analysis</field>
|
2010-05-04 07:12:13 +00:00
|
|
|
<field name="res_model">analytic.entries.report</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,graph</field>
|
2010-09-24 07:42:07 +00:00
|
|
|
<field name="context">{'search_default_month':1,'group_by_no_leaf':1,'group_by':['account_id','month']}</field>
|
2010-05-04 07:12:13 +00:00
|
|
|
<field name="search_view_id" ref="view_analytic_entries_report_search"/>
|
2010-07-21 08:47:43 +00:00
|
|
|
<field name="help">A tool search lets you know statistics on your analytics records that match your needs.</field>
|
2010-05-04 07:12:13 +00:00
|
|
|
</record>
|
|
|
|
|
2010-09-07 11:57:28 +00:00
|
|
|
<menuitem action="action_analytic_entries_report" id="menu_action_analytic_entries_report" parent="account.menu_finance_statistic_report_statement" sequence="4"/>
|
2010-05-04 07:12:13 +00:00
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|