You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

93 lines
4.2 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- SPRINT TREE VIEW -->
<record id="project_sprint_view_tree" model="ir.ui.view">
<field name="name">project.sprint.view.tree</field>
<field name="model">project.sprint</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="sprint_goal"/>
<field name="start_date"/>
<field name="end_date"/>
</tree>
</field>
</record>
<!-- SPRINT FORM VIEW -->
<record id="project_sprint_view_form" model="ir.ui.view">
<field name="name">project.sprint.view.form</field>
<field name="model">project.sprint</field>
<field name="arch" type="xml">
<form>
<header>
<field name="state" widget="statusbar"/>
<button class="oe_highlight" name="action_reset_states"
string="Reset"
attrs="{'invisible': [('state', 'in', 'to_start')]}"
type="object"/>
<button class="oe_highlight" name="action_start_sprint"
string="Start"
attrs="{'invisible': [('state','in', ['ongoing','completed'])]}"
type="object"/>
<button class="oe_highlight" name="action_finish_sprint"
string="Finish" type="object"
attrs="{'invisible': [('state', 'not in', 'ongoing')]}"/>
</header>
<sheet>
<div class="oe_button_box" name="button_box">
<button class="oe_stat_button"
type="object" name="action_get_tasks">
<div class="o_field_widget o_stat_info">
<span class="o_stat_text p-2">
Tasks
</span>
</div>
</button>
<button class="oe_stat_button p-2"
type="object" name="action_get_backlogs">
<div class="o_field_widget o_stat_info">
<span class="o_stat_text p-2">
Backlogs
</span>
</div>
</button>
<button class="oe_stat_button p-2"
type="object" name="action_get_all_tasks">
<div class="o_field_widget o_stat_info">
<span class="o_stat_text p-2">
All tasks
</span>
</div>
</button>
</div>
<group>
<h1>
<field name="name" placeholder="Sprint name...."/>
</h1>
<group>
<field name="start_date"
attrs="{'readonly': [('state', '!=', 'to_start')]}"/>
<field name="end_date"/>
<field name="project_id"/>
</group>
<notebook>
<page string="Goals">
<field name="sprint_goal" widget="html"/>
</page>
</notebook>
</group>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids"/>
<field name="message_ids"/>
</div>
</form>
</field>
</record>
<!-- Action for the model project.sprint -->
<record id="action_view_project_sprint" model="ir.actions.act_window">
<field name="name">Sprint</field>
<field name="res_model">project.sprint</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>