odoo/addons/gamification/view/plan.xml

105 lines
5.0 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="goal_plan_list_action" model="ir.actions.act_window">
<field name="name">Goal Plans</field>
<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">
<field name="name">Goal Plans List</field>
<field name="model">gamification.goal.plan</field>
<field name="arch" type="xml">
<tree string="Goal types" colors="blue:state == 'inprogress';grey:state == 'done'">
<field name="name"/>
<field name="period"/>
<field name="state" invisible="1"/>
</tree>
</field>
</record>
<record id="goal_plan_form_view" model="ir.ui.view">
<field name="name">Goal Plan Form</field>
<field name="model">gamification.goal.plan</field>
<field name="arch" type="xml">
<form string="Goal types" version="7.0">
<header>
<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"/>
<field name="state" widget="statusbar"/>
</header>
<sheet>
<h1>
<div class="oe_edit_only">
<label for="name"/>
</div>
<field name="name"/>
</h1>
<group>
<group colspan="4">
<field name="period"/>
</group>
<group string="Report">
<field name="report_mode"/>
<field name="report_message_frequency"/>
<field name="report_message_group_id"/>
<field name="report_header"/>
</group>
</group>
<notebook>
<page string="Goals">
<field name="planline_ids">
<tree string="Planline List" version="7.0" editable="bottom" >
<field name="type_id"/>
<field name="target_goal"/>
</tree>
</field>
</page>
<page string="Subscription">
<group>
<field name="autojoin_group_id" string="Group" />
</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>
<!-- 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>
</data>
</openerp>