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>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="goal_list_view" model="ir.ui.view">
|
|
|
|
<field name="name">Goal list</field>
|
|
|
|
<field name="model">gamification.goal</field>
|
|
|
|
<field name="arch" type="xml">
|
2013-02-15 14:16:51 +00:00
|
|
|
<tree string="Goal list" colors="red:state == 'failed';green:state == 'reached'">
|
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-15 10:42:14 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="goal_form_view" model="ir.ui.view">
|
|
|
|
<field name="name">Goal form</field>
|
|
|
|
<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-15 16:02:04 +00:00
|
|
|
<button string="Mark as reached" type="object" name="action_reach" states="inprogress"/>
|
|
|
|
<button string="Mark as failed" type="object" name="action_fail" states="inprogress"/>
|
|
|
|
<button string="Cancel completion" type="object" name="action_cancel" states="failed,reached"/>
|
2013-02-15 16:07:18 +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">
|
|
|
|
<field name="type_id"/>
|
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="plan_id"/>
|
|
|
|
</group>
|
|
|
|
<group string="Schedule">
|
|
|
|
<field name="start_date"/>
|
|
|
|
<field name="end_date"/>
|
|
|
|
</group>
|
|
|
|
<group string="Data">
|
|
|
|
<field name="target_goal"/>
|
|
|
|
<field name="current"/>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="goal_calendar_view" model="ir.ui.view">
|
|
|
|
<field name="name">Goal calendar</field>
|
|
|
|
<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>
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|