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>
|
|
|
|
</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-15 14:16:51 +00:00
|
|
|
<tree string="Goal types" colors="blue:state == 'inprogress';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-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-18 13:06:56 +00:00
|
|
|
<button string="Start Plan" type="object" name="action_start" states="draft"/>
|
|
|
|
<button string="Close Plan" type="object" name="action_close" states="inprogress"/>
|
|
|
|
<button string="Cancel Plan" type="object" name="action_cancel" states="inprogress"/>
|
2013-02-15 14:29:41 +00:00
|
|
|
<field name="state" widget="statusbar"/>
|
|
|
|
</header>
|
2013-02-15 13:09:21 +00:00
|
|
|
<sheet>
|
|
|
|
<h1>
|
2013-02-18 13:06:56 +00:00
|
|
|
<div class="oe_edit_only">
|
|
|
|
<label for="name"/>
|
|
|
|
</div>
|
|
|
|
<field name="name"/>
|
2013-02-15 13:09:21 +00:00
|
|
|
</h1>
|
|
|
|
<group>
|
2013-02-15 13:32:34 +00:00
|
|
|
<group colspan="4">
|
2013-02-15 13:09:21 +00:00
|
|
|
<field name="period"/>
|
|
|
|
</group>
|
2013-02-15 13:32:34 +00:00
|
|
|
<group string="Report">
|
|
|
|
<field name="report_mode"/>
|
|
|
|
<field name="report_message_frequency"/>
|
|
|
|
<field name="report_message_group_id"/>
|
|
|
|
<field name="report_header"/>
|
|
|
|
</group>
|
2013-02-15 13:09:21 +00:00
|
|
|
</group>
|
|
|
|
<notebook>
|
|
|
|
<page string="Goals">
|
2013-02-15 13:59:40 +00:00
|
|
|
<field name="planline_ids">
|
2013-02-18 13:06:56 +00:00
|
|
|
<tree string="Planline List" version="7.0" editable="bottom" >
|
2013-02-15 13:59:40 +00:00
|
|
|
<field name="type_id"/>
|
|
|
|
<field name="target_goal"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
2013-02-15 13:09:21 +00:00
|
|
|
</page>
|
|
|
|
<page string="Subscription">
|
|
|
|
<group>
|
2013-02-15 13:32:34 +00:00
|
|
|
<field name="autojoin_group_id" string="Group" />
|
2013-02-15 13:09:21 +00:00
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<field colspan="4" name="user_ids" widget="many2many_kanban">
|
|
|
|
<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>
|
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</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-15 13:09:21 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|