2010-06-28 12:08:53 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
<record id="view_report_vote_tree" model="ir.ui.view">
|
|
|
|
<field name="name">report.vote.tree</field>
|
|
|
|
<field name="model">report.vote</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Idea Vote Analysis">
|
|
|
|
<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="idea_id" invisible="1"/>
|
|
|
|
<field name="idea_state"/>
|
|
|
|
<field name="creater_id" invisible="1"/>
|
|
|
|
<field name="category_id" invisible="1"/>
|
|
|
|
<field name="nbr" sum="# of Lines"/>
|
2010-09-03 13:08:21 +00:00
|
|
|
<field name="score" avg="Score"/>
|
2010-06-28 12:08:53 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_report_vote_search" model="ir.ui.view">
|
|
|
|
<field name="name">report.vote.search</field>
|
|
|
|
<field name="model">report.vote</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Idea Vote Analysis">
|
|
|
|
<group>
|
2010-09-06 10:55:58 +00:00
|
|
|
<filter icon="terp-go-year" string=" Year "
|
|
|
|
domain="[('date','<=', time.strftime('%%Y-%%m-%%d')),('date','>=',time.strftime('%%Y-01-01'))]"
|
2010-09-21 07:07:36 +00:00
|
|
|
help="Idea Vote created in curren year"/>
|
2010-09-06 10:55:58 +00:00
|
|
|
<filter icon="terp-go-month" string=" Month "
|
|
|
|
domain="[('date','<=', time.strftime('%%Y-%%m-%%d')),('date','>=',time.strftime('%%Y-%%m-01'))]"
|
2010-09-21 07:07:36 +00:00
|
|
|
help="Idea Vote created in current month"/>
|
2010-09-06 10:55:58 +00:00
|
|
|
<filter icon="terp-go-month"
|
|
|
|
string=" Month-1 "
|
2010-06-28 12:08:53 +00:00
|
|
|
separator="1"
|
2010-09-06 10:55:58 +00:00
|
|
|
domain="[('date','<=', (datetime.date (int(time.strftime('%%Y')), datetime.date.today().month, 1) - datetime.timedelta (days = 1)).strftime('%%Y-%%m-%%d')),('date','>',(datetime.date (int(time.strftime('%%Y')), datetime.date.today().month-1, 1)).strftime('%%Y-%%m-%%d'))]"
|
2010-09-21 07:07:36 +00:00
|
|
|
help="Idea Vote created last month"/>
|
2010-09-03 13:08:21 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-06-28 12:08:53 +00:00
|
|
|
<filter icon="terp-go-today"
|
|
|
|
string=" Today "
|
|
|
|
name="today"
|
|
|
|
separator="1"
|
|
|
|
domain="[('date','<=', time.strftime('%%Y-%%m-%%d'))]"
|
|
|
|
help="Idea Vote created by today"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter icon="terp-camera_test"
|
|
|
|
string="Open"
|
|
|
|
domain="[('idea_state','=',('open'))]"/>
|
2010-09-03 13:08:21 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-06-28 12:08:53 +00:00
|
|
|
<filter icon="terp-camera_test"
|
|
|
|
string="Accepted"
|
|
|
|
domain="[('idea_state','=',('close'))]"/>
|
|
|
|
<filter icon="terp-gtk-stop"
|
|
|
|
string="Refused"
|
|
|
|
domain="[('idea_state','=',('cancel'))]"/>
|
2010-09-03 13:08:21 +00:00
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="idea_id" string="Idea"/>
|
2010-09-29 06:07:54 +00:00
|
|
|
<field name="creater_id" string="Creator"/>
|
2010-09-03 13:08:21 +00:00
|
|
|
<field name="user_id"/>
|
2010-06-28 12:08:53 +00:00
|
|
|
</group>
|
|
|
|
<newline/>
|
2010-10-01 08:57:54 +00:00
|
|
|
<group expand="1" string="Group By..." colspan="10" col="12">
|
2010-09-29 06:07:54 +00:00
|
|
|
<filter string="Creator" icon="terp-personal" context="{'group_by':'creater_id'}"/>
|
2010-09-03 13:08:21 +00:00
|
|
|
<filter string="User" icon="terp-personal" name="User" context="{'group_by':'user_id'}"/>
|
|
|
|
<separator orientation="vertical"/>
|
2010-09-06 10:55:58 +00:00
|
|
|
<filter string="Idea" icon="terp-idea" context="{'group_by':'idea_id'}"/>
|
2010-09-03 13:08:21 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-06-28 12:08:53 +00:00
|
|
|
<filter string="Category" icon="terp-stock_symbol-selection" context="{'group_by':'category_id'}"/>
|
|
|
|
<separator orientation="vertical"/>
|
2010-09-03 13:08:21 +00:00
|
|
|
<filter string="State" icon="terp-stock_effects-object-colorize" name="State" context="{'group_by':'idea_state'}"/>
|
2010-06-28 12:08:53 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-10-01 08:59:38 +00:00
|
|
|
<filter string="Day" icon="terp-go-today" context="{'group_by':'day'}" help="Open Date"/>
|
|
|
|
<filter string="Month" icon="terp-go-month" context="{'group_by':'month'}" help="Open Date"/>
|
|
|
|
<filter string="Year" icon="terp-go-year" context="{'group_by':'year'}" help="Open Date"/>
|
2010-06-28 12:08:53 +00:00
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_report_vote_all" model="ir.actions.act_window">
|
2010-09-03 13:08:21 +00:00
|
|
|
<field name="name">Ideas Analysis</field>
|
2010-06-28 12:08:53 +00:00
|
|
|
<field name="res_model">report.vote</field>
|
|
|
|
<field name="view_type">form</field>
|
2010-08-13 10:45:35 +00:00
|
|
|
<field name="view_mode">tree,form</field>
|
2010-06-28 12:08:53 +00:00
|
|
|
<field name="search_view_id" ref="view_report_vote_search"/>
|
2010-09-03 13:08:21 +00:00
|
|
|
<field name="context">{'search_default_User':1,'search_default_State':1,'group_by_no_leaf':1,'group_by':[]}</field>
|
2010-06-28 12:08:53 +00:00
|
|
|
</record>
|
|
|
|
|
2010-08-13 06:06:34 +00:00
|
|
|
<menuitem action="action_report_vote_all" id="menu_report_vote_all" parent="menu_idea_reporting" sequence="1" groups="base.group_tool_manager,base.group_system"/>
|
2010-06-28 12:08:53 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|
|
|
|
|