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>
2013-04-08 13:17:29 +00:00
<field name= "view_mode" > kanban,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-03-06 16:56:59 +00:00
<field name= "manager_id" />
<field name= "state" />
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= "name" > Related Goals</field>
2013-04-08 13:17:29 +00:00
<field name= "view_mode" > kanban,tree</field>
2013-04-09 14:23:02 +00:00
<field name= "context" > {'search_default_group_by_type': True, 'search_default_inprogress': True, 'search_default_plan_id': active_id, 'default_plan_id': active_id}</field>
2013-04-08 13:17:29 +00:00
<field name= "help" type= "html" >
<p >
There is no goals associated to this plan matching your search.
Make sure that your plan is active and associated to at least one user.
</p>
</field>
2013-02-19 13:23:06 +00:00
</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-04-08 13:17:29 +00:00
<button string= "Start Now" 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-03-04 11:27:12 +00:00
<button string= "Report Progress" type= "object" name= "action_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-04-08 13:17:29 +00:00
2013-02-22 09:47:45 +00:00
<div class= "oe_title" >
<label for= "name" class= "oe_edit_only" />
<h1 >
2013-04-08 13:17:29 +00:00
<field name= "name" placeholder= "e.g. Monthly Sales Objectives" />
2013-02-22 09:47:45 +00:00
</h1>
2013-04-08 13:17:29 +00:00
<label for= "user_ids" class= "oe_edit_only" string= "Apply Plan To" />
<div >
<field name= "user_ids" widget= "many2many_tags" />
</div>
2013-02-22 09:47:45 +00:00
</div>
2013-02-19 13:23:06 +00:00
<!-- action buttons -->
<div class= "oe_right oe_button_box" >
2013-04-08 13:17:29 +00:00
<button type= "action" name= "%(goals_from_plan_act)d" string= "Related Goals" attrs= "{'invisible': [('state','=','draft')]}" />
2013-02-19 13:23:06 +00:00
</div>
2013-04-08 13:17:29 +00:00
<group >
<group >
<field name= "period" attrs= "{'readonly':[('state','!=','draft')]}" />
<field name= "visibility_mode" widget= "radio" colspan= "1" />
</group>
<group >
<field name= "manager_id" />
<field name= "start_date" attrs= "{'readonly':[('state','!=','draft')]}" />
</group>
2013-02-19 09:56:00 +00:00
</group>
2013-04-08 13:17:29 +00:00
<notebook >
<page string= "Goals" >
<field name= "planline_ids" nolabel= "1" colspan= "4" >
<tree string= "Planline List" version= "7.0" editable= "bottom" >
<field name= "type_id" />
<field name= "type_condition" />
<field name= "target_goal" />
<field name= "type_unit" />
</tree>
</field>
</page>
<page string= "Advanced Options" >
<group string= "Subscribe Users Automatically" >
2013-02-27 08:46:08 +00:00
<field name= "autojoin_group_id" />
2013-02-19 09:56:00 +00:00
</group>
2013-04-08 13:17:29 +00:00
<group string= "Notification Messages" >
<field name= "report_message_frequency" />
<field name= "report_header" placeholder= "e.g. The following message contains the current progress of the sale team..." attrs= "{'invisible': [('report_message_frequency','=','never')]}" />
<field name= "report_message_group_id" attrs= "{'invisible': [('report_message_frequency','=','never')]}" />
2013-02-19 09:56:00 +00:00
</group>
2013-04-08 13:17:29 +00:00
<group string= "Reminders for Manual Goals" >
<label for= "remind_update_delay" />
<div >
<field name= "remind_update_delay" class= "oe_inline" /> days
</div>
</group>
</page>
</notebook>
2013-04-05 15:19:53 +00:00
2013-04-08 13:17:29 +00:00
2013-02-15 13:09:21 +00:00
</sheet>
2013-02-28 09:22:47 +00:00
<div class= "oe_chatter" >
<field name= "message_follower_ids" widget= "mail_followers" />
<field name= "message_ids" widget= "mail_thread" />
</div>
2013-02-15 13:09:21 +00:00
</form>
</field>
</record>
2013-04-08 13:17:29 +00:00
<record model= "ir.ui.view" id= "view_goal_plan_kanban" >
<field name= "name" > Goal Plan Kanban</field>
<field name= "model" > gamification.goal.plan</field>
<field name= "arch" type= "xml" >
<kanban version= "7.0" class= "oe_background_grey" >
<field name= "planline_ids" />
<field name= "planline_count" />
<field name= "user_ids" />
<templates >
<t t-name= "kanban-box" >
<div t-attf-class= "oe_kanban_card oe_kanban_goal oe_kanban_global_click" >
<div class= "oe_dropdown_toggle oe_dropdown_kanban" >
<span class= "oe_e" > í</span>
<ul class= "oe_dropdown_menu" >
<li > <a type= "edit" > Configure Goal Plan</a> </li>
</ul>
</div>
<div class= "oe_kanban_content" >
<h4 > <field name= "name" /> </h4>
<div class= "oe_kanban_project_list" >
<a type= "action" name= "%(goals_from_plan_act)d" style= "margin-right: 10px" >
<span t-if= "record.planline_count.raw_value gt 1" > <field name= "planline_count" /> Goals</span>
<span t-if= "record.planline_count.raw_value lt 2" > <field name= "planline_count" /> Goal</span>
</a>
</div>
<div class= "oe_kanban_badge_avatars" >
<t t-foreach= "record.user_ids.raw_value.slice(0,11)" t-as= "member" >
<img t-att-src= "kanban_image('res.users', 'image_small', member)" t-att-data-member_id= "member" />
</t>
</div>
</div>
</div>
</t>
</templates>
</kanban>
</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>