2013-02-15 10:42:14 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<openerp >
<data >
<record id= "goal_list_action" model= "ir.actions.act_window" >
<field name= "name" > Goals</field>
<field name= "res_model" > gamification.goal</field>
<field name= "view_mode" > tree,form,calendar</field>
2013-02-19 16:30:48 +00:00
<field name= "help" type= "html" >
<p class= "oe_view_nocontent_create" >
Click to create a goal.
</p>
<p >
A goal is defined by a user and a goal type.
Goals can be created automatically by using goal plans.
</p>
</field>
2013-02-15 10:42:14 +00:00
</record>
<record id= "goal_list_view" model= "ir.ui.view" >
2013-02-18 13:06:56 +00:00
<field name= "name" > Goal List</field>
2013-02-15 10:42:14 +00:00
<field name= "model" > gamification.goal</field>
<field name= "arch" type= "xml" >
2013-02-22 09:47:45 +00:00
<tree string= "Goal List" colors= "red:state == 'failed';green:state == 'reached';grey:state == 'canceled'" >
2013-02-15 10:42:14 +00:00
<field name= "type_id" />
<field name= "user_id" />
<field name= "current" />
<field name= "target_goal" />
<field name= "start_date" />
<field name= "end_date" />
2013-02-15 14:54:15 +00:00
<field name= "completeness" widget= "progressbar" />
2013-02-15 14:16:51 +00:00
<field name= "state" invisible= "1" />
2013-02-20 12:33:28 +00:00
<field name= "planline_id" invisible= "1" />
2013-02-15 10:42:14 +00:00
</tree>
</field>
</record>
<record id= "goal_form_view" model= "ir.ui.view" >
2013-02-18 13:06:56 +00:00
<field name= "name" > Goal Form</field>
2013-02-15 10:42:14 +00:00
<field name= "model" > gamification.goal</field>
<field name= "arch" type= "xml" >
<form string= "Goal" version= "7.0" >
2013-02-15 14:16:51 +00:00
<header >
2013-02-27 11:12:20 +00:00
<button string= "Start goal" type= "object" name= "action_start" states= "draft" class= "oe_highlight" />
2013-02-27 16:56:00 +00:00
2013-02-20 12:33:28 +00:00
<button string= "Goal Reached" type= "object" name= "action_reach" states= "inprogress,inprogress_update" />
2013-02-19 16:56:09 +00:00
<button string= "Goal Failed" type= "object" name= "action_fail" states= "inprogress,inprogress_update" />
2013-02-19 10:33:51 +00:00
<button string= "Reset Completion" type= "object" name= "action_cancel" states= "failed,reached" />
2013-02-21 13:50:00 +00:00
<field name= "state" widget= "statusbar" statusbar_visible= "inprogress" />
2013-02-15 14:16:51 +00:00
</header>
2013-02-15 10:42:14 +00:00
<sheet >
<group >
<group string= "Reference" >
2013-02-22 13:40:24 +00:00
<field name= "type_id" on_change= "on_change_type_id(type_id)" attrs= "{'readonly':[('state','!=','draft')]}" />
<field name= "user_id" attrs= "{'readonly':[('state','!=','draft')]}" />
<field name= "planline_id" groups= "base.group_no_one" attrs= "{'readonly':[('state','!=','draft')]}" />
2013-02-15 10:42:14 +00:00
</group>
<group string= "Schedule" >
2013-02-22 13:40:24 +00:00
<field name= "start_date" attrs= "{'readonly':[('state','!=','draft')]}" />
<field name= "end_date" attrs= "{'readonly':[('state','!=','draft')]}" />
2013-02-20 16:05:17 +00:00
<field name= "computation_mode" invisible= "1" />
2013-02-22 09:47:45 +00:00
<label for= "remind_update_delay" attrs= "{'invisible':[('computation_mode','!=', 'manually')]}" />
<div attrs= "{'invisible':[('computation_mode','!=', 'manually')]}" >
<field name= "remind_update_delay" class= "oe_inline" />
days
</div>
2013-02-21 13:50:00 +00:00
<field name= "last_update" groups= "base.group_no_one" />
2013-02-15 10:42:14 +00:00
</group>
2013-02-27 16:56:00 +00:00
<group string= "Data" colspan= "4" >
2013-02-22 13:40:24 +00:00
<field name= "target_goal" attrs= "{'readonly':[('state','!=','draft')]}" />
2013-02-27 16:56:00 +00:00
<label for= "current" />
<div >
<field name= "current" attrs= "{'readonly':[('computation_mode','!=','manually')]}" class= "oe_inline" />
<button string= "Refresh state" type= "object" name= "update" states= "inprogress,inprogress_update,failed,reached" class= "oe_highlight oe_inline" />
<button name= "write" type= "object" string= "The current value is up to date" help= "Indicate that the current value of the manual goal is still correct and avoid reminders" attrs= "{'invisible':[('computation_mode','!=', 'manually')]}" />
</div>
2013-02-15 10:42:14 +00:00
</group>
</group>
</sheet>
2013-02-19 09:08:26 +00:00
<div class= "oe_chatter" >
2013-02-28 09:22:47 +00:00
<field name= "message_follower_ids" widget= "mail_followers" />
2013-02-19 09:08:26 +00:00
<field name= "message_ids" widget= "mail_thread" />
</div>
2013-02-15 10:42:14 +00:00
</form>
</field>
</record>
<record id= "goal_calendar_view" model= "ir.ui.view" >
2013-02-18 13:06:56 +00:00
<field name= "name" > Goal Calendar</field>
2013-02-15 10:42:14 +00:00
<field name= "model" > gamification.goal</field>
<field name= "arch" type= "xml" >
<calendar string= "Goal"
date_start="start_date"
date_stop="end_date"
color="type_id">
<field name= "type_id" />
</calendar>
</field>
</record>
2013-02-18 13:48:03 +00:00
<record id= "goal_search_view" model= "ir.ui.view" >
<field name= "name" > Goal Search</field>
<field name= "model" > gamification.goal</field>
<field name= "arch" type= "xml" >
<search string= "Search Goals" >
2013-02-28 11:28:10 +00:00
<filter name= "my" string= "My Goals" domain= "[('user_id', '=', uid)]" />
<separator />
<filter name= "draft" string= "Draft" domain= "[('state', '=', 'draft')]" />
<filter name= "inprogress" string= "In Progress" domain= "[('state', 'in', ('inprogress', 'inprogress_update'))]" />
<filter name= "closed" string= "Closed" domain= "[('state', 'in', ('reached', 'failed'))]" />
<separator />
2013-02-20 12:33:28 +00:00
<field name= "planline_id" />
2013-02-19 13:23:06 +00:00
<field name= "user_id" />
<field name= "type_id" />
2013-02-18 13:48:03 +00:00
<group expand= "0" string= "Group By..." >
<filter string= "User" domain= "[]" context= "{'group_by':'user_id'}" />
<filter string= "Goal Type" domain= "[]" context= "{'group_by':'type_id'}" />
<filter string= "State" domain= "[]" context= "{'group_by':'state'}" />
<filter string= "End Date" domain= "[]" context= "{'group_by':'end_date'}" />
</group>
</search>
</field>
</record>
2013-02-15 10:42:14 +00:00
</data>
</openerp>