2013-02-15 13:09:21 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<record id="goal_plan_list_action" model="ir.actions.act_window">
|
2013-02-18 13:06:56 +00:00
|
|
|
<field name="name">Goal Plans</field>
|
2013-02-15 13:09:21 +00:00
|
|
|
<field name="res_model">gamification.goal.plan</field>
|
|
|
|
<field name="view_mode">tree,form</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 plan.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Goal plans allow to create and assign to users easily a list of goals.
|
|
|
|
A goal plan is a predifined list of goals types with a target value.
|
|
|
|
The plan can use a period (weekly, monthly...) for automatic creation of goals.
|
|
|
|
The goals are created for the specified users or memeber of the group.
|
|
|
|
</p>
|
|
|
|
</field>
|
2013-02-15 13:09:21 +00:00
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="goal_plan_list_view" model="ir.ui.view">
|
2013-02-18 13:06:56 +00:00
|
|
|
<field name="name">Goal Plans List</field>
|
2013-02-15 13:09:21 +00:00
|
|
|
<field name="model">gamification.goal.plan</field>
|
|
|
|
<field name="arch" type="xml">
|
2013-02-18 15:51:17 +00:00
|
|
|
<tree string="Goal types" colors="blue:state == 'draft';grey:state == 'done'">
|
2013-02-15 13:09:21 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="period"/>
|
2013-02-15 14:16:51 +00:00
|
|
|
<field name="state" invisible="1"/>
|
2013-02-15 13:09:21 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2013-02-27 09:42:13 +00:00
|
|
|
<record id="goals_from_plan_act" model="ir.actions.act_window">
|
2013-02-19 13:23:06 +00:00
|
|
|
<field name="res_model">gamification.goal</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="name">Related Goals</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
|
|
|
|
2013-02-15 14:53:48 +00:00
|
|
|
<record id="goal_plan_form_view" model="ir.ui.view">
|
2013-02-18 13:06:56 +00:00
|
|
|
<field name="name">Goal Plan Form</field>
|
2013-02-15 13:09:21 +00:00
|
|
|
<field name="model">gamification.goal.plan</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Goal types" version="7.0">
|
2013-02-15 14:29:41 +00:00
|
|
|
<header>
|
2013-02-19 10:33:51 +00:00
|
|
|
<button string="Start Plan" type="object" name="action_start" states="draft" class="oe_highlight"/>
|
2013-02-21 12:57:59 +00:00
|
|
|
<button string="Check Plan" type="object" name="action_check" states="inprogress"/>
|
2013-02-19 10:33:51 +00:00
|
|
|
<button string="Close Plan" type="object" name="action_close" states="inprogress" class="oe_highlight"/>
|
2013-02-27 16:56:00 +00:00
|
|
|
<button string="Reset to Draft" type="object" name="action_cancel" states="inprogress"/>
|
|
|
|
<button string="Reset Completion" type="object" name="action_reset" states="done"/>
|
2013-02-26 11:34:03 +00:00
|
|
|
<button string="Report Progress" type="object" name="report_progress" states="inprogress,done" groups="base.group_no_one"/>
|
2013-02-15 14:29:41 +00:00
|
|
|
<field name="state" widget="statusbar"/>
|
|
|
|
</header>
|
2013-02-15 13:09:21 +00:00
|
|
|
<sheet>
|
2013-02-22 09:47:45 +00:00
|
|
|
<div class="oe_title">
|
|
|
|
<label for="name" class="oe_edit_only"/>
|
|
|
|
<h1>
|
|
|
|
<field name="name" attrs="{'readonly':[('state','!=','draft')]}"/>
|
|
|
|
</h1>
|
|
|
|
</div>
|
2013-02-19 13:23:06 +00:00
|
|
|
|
|
|
|
<!-- action buttons -->
|
|
|
|
<div class="oe_right oe_button_box">
|
2013-02-27 09:42:13 +00:00
|
|
|
<button name="action_show_related_goals" type="object" string="Related Goals" help="show all the generated goals for this plan"/>
|
2013-02-19 13:23:06 +00:00
|
|
|
</div>
|
|
|
|
|
2013-02-15 13:09:21 +00:00
|
|
|
<group>
|
2013-02-15 13:32:34 +00:00
|
|
|
<group colspan="4">
|
2013-02-20 12:33:28 +00:00
|
|
|
<field name="period" attrs="{'readonly':[('state','!=','draft')]}"/>
|
2013-02-20 16:05:17 +00:00
|
|
|
<field name="remind_update_delay"/>
|
2013-02-27 08:46:08 +00:00
|
|
|
|
2013-02-15 13:09:21 +00:00
|
|
|
</group>
|
2013-02-27 08:46:08 +00:00
|
|
|
<group string="Notify" colspan="4">
|
|
|
|
<label for="visibility_mode"/>
|
|
|
|
<div>
|
|
|
|
<field name="visibility_mode" colspan="2" />
|
|
|
|
|
|
|
|
<group name="visibility_mode_help" class="oe_grey oe_edit_only" colspan="1">
|
|
|
|
<p attrs="{'invisible': [('visibility_mode','!=','board')]}">
|
|
|
|
In Leaderboard mode, the reports will contain the progress of users of this plan.
|
|
|
|
</p>
|
|
|
|
<p attrs="{'invisible': [('visibility_mode','!=','progressbar')]}">
|
|
|
|
In Personal Progressbar mode, the progress of each user can only be seen by himself and the followers of this plan.
|
|
|
|
</p>
|
|
|
|
</group>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<field name="report_message_frequency" />
|
|
|
|
<field name="report_header" />
|
|
|
|
|
|
|
|
<label for="report_message_group_id"/>
|
|
|
|
<div>
|
|
|
|
<field name="report_message_group_id" />
|
|
|
|
<group name="report_help" class="oe_grey oe_edit_only" col="2" colspan="2">
|
|
|
|
<p attrs="{'invisible': [('report_message_group_id','!=',False)]}">
|
|
|
|
Select a group that will receive a copy of the reports.
|
|
|
|
</p>
|
|
|
|
<p attrs="{'invisible': [('report_message_group_id','=',False)]}">
|
|
|
|
A copy of the report that user recieve will be sent to this group.
|
|
|
|
</p>
|
|
|
|
</group>
|
|
|
|
</div>
|
2013-02-15 13:32:34 +00:00
|
|
|
</group>
|
2013-02-15 13:09:21 +00:00
|
|
|
</group>
|
2013-02-19 09:56:00 +00:00
|
|
|
|
|
|
|
<group string="Planlines">
|
2013-02-20 12:33:28 +00:00
|
|
|
<field name="planline_ids" nolabel="1">
|
|
|
|
<tree string="Planline List" version="7.0" editable="bottom" >
|
|
|
|
<field name="type_id"/>
|
|
|
|
<field name="target_goal"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
2013-02-19 09:56:00 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<group string="Subscription">
|
|
|
|
<group colspan="4">
|
2013-02-27 08:46:08 +00:00
|
|
|
<field name="autojoin_group_id" />
|
2013-02-19 09:56:00 +00:00
|
|
|
</group>
|
|
|
|
<group colspan="4">
|
|
|
|
<field name="user_ids" widget="many2many_kanban">
|
2013-02-15 13:09:21 +00:00
|
|
|
<kanban quick_create="false" create="true">
|
|
|
|
<field name="name"/>
|
|
|
|
<templates>
|
|
|
|
<t t-name="kanban-box">
|
|
|
|
<div style="position: relative">
|
|
|
|
<a t-if="! read_only_mode" type="delete" style="position: absolute; right: 0; padding: 4px; diplay: inline-block">X</a>
|
|
|
|
<div class="oe_module_vignette">
|
|
|
|
<div class="oe_module_desc">
|
|
|
|
<field name="name"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</templates>
|
|
|
|
</kanban>
|
|
|
|
</field>
|
2013-02-19 09:56:00 +00:00
|
|
|
</group>
|
|
|
|
</group>
|
2013-02-15 13:09:21 +00:00
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2013-02-15 13:59:40 +00:00
|
|
|
|
|
|
|
<!-- Planline -->
|
|
|
|
<record id="goal_planline_list_view" model="ir.ui.view">
|
|
|
|
<field name="name">Goal planline list</field>
|
|
|
|
<field name="model">gamification.goal.planline</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="planline list" >
|
|
|
|
<field name="type_id"/>
|
|
|
|
<field name="target_goal"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2013-02-18 13:48:03 +00:00
|
|
|
|
|
|
|
<record id="goal_plan_search_view" model="ir.ui.view">
|
|
|
|
<field name="name">Goal Plan Search</field>
|
|
|
|
<field name="model">gamification.goal.plan</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Search Goal Plans">
|
2013-02-20 12:33:28 +00:00
|
|
|
<filter name="draft_inprogress" string="Non-closed Plans"
|
2013-02-19 16:30:48 +00:00
|
|
|
domain="[('state', 'in', ('inprogress', 'draft'))]"/>
|
2013-02-19 13:23:06 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<group expand="0" string="Group By...">
|
2013-02-18 13:48:03 +00:00
|
|
|
<filter string="State" domain="[]" context="{'group_by':'state'}"/>
|
|
|
|
<filter string="Period" domain="[]" context="{'group_by':'period'}"/>
|
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2013-02-15 13:09:21 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|