187 lines
7.6 KiB
XML
Executable File
187 lines
7.6 KiB
XML
Executable File
<?xml version="1.0" encoding="utf-8"?>
|
|
<flectra>
|
|
<record id="view_project_story_form" model="ir.ui.view">
|
|
<field name="name">project.story</field>
|
|
<field name="model">project.story</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Project Story">
|
|
<header>
|
|
<button name="set_state_active" string="Open" type="object" class="oe_highlight" states="draft,cancel"/>
|
|
<button name="set_state_cancel" string="Cancel" type="object" class="oe_highlight" states="in_progress"/>
|
|
<button name="set_state_done" string="Done" type="object" class="oe_highlight" states="in_progress"/>
|
|
<field name="state" widget="statusbar"/>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_button_box" name="task_button_box">
|
|
<button name="action_view_tasks" string="Tasks"
|
|
type="object" class="oe_stat_button"
|
|
icon="fa-tasks"/>
|
|
</div>
|
|
<div class="oe_title">
|
|
<h1 class="o_row">
|
|
<field name="name" placeholder="Story Title"/>
|
|
</h1>
|
|
</div>
|
|
<group name="story_main_fields" col="4">
|
|
<field name="sprint_id" options="{'no_create': True, 'no_create_edit': True}" required="1"/>
|
|
<field name="branch_id" groups="base_branch_company.group_multi_branch" options="{'no_create': True, 'no_create_edit': True}"/>
|
|
<field name="priority_id" options="{'no_create': True, 'no_create_edit': True}"/>
|
|
<field name="story_type_id" options="{'no_create': True, 'no_create_edit': True}"/>
|
|
<field name="owner_id" readonly="1"/>
|
|
<field name="tags"/>
|
|
<field name="estimated_velocity"/>
|
|
<field name="actual_velocity"/>
|
|
</group>
|
|
<notebook>
|
|
<page string="Description">
|
|
<field name="description"/>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
<div class="oe_chatter">
|
|
<field name="message_follower_ids" widget="mail_followers"/>
|
|
<field name="message_ids" widget="mail_thread"/>
|
|
</div>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_project_story_tree" model="ir.ui.view">
|
|
<field name="name">project.story</field>
|
|
<field name="model">project.story</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Project Story">
|
|
<field name="name"/>
|
|
<field name="owner_id"/>
|
|
<field name="branch_id" groups="base_branch_company.group_multi_branch"/>
|
|
<field name="sprint_id"/>
|
|
<field name="priority_id"/>
|
|
<field name="story_type_id"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_project_story_search" model="ir.ui.view">
|
|
<field name="name">project.story</field>
|
|
<field name="model">project.story</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Story">
|
|
<field name="name"/>
|
|
<field name="sprint_id"/>
|
|
<filter string="Sprint" name="group_by_sprint" context="{'group_by': 'sprint_id'}"/>
|
|
<filter string="Branch" groups="base_branch_company.group_multi_branch" name="group_by_branch" context="{'group_by': 'branch_id'}"/>
|
|
<filter string="Owner" name="group_by_owner" context="{'group_by': 'owner_id'}"/>
|
|
<filter string="Priority" name="group_by_priority" context="{'group_by': 'priority'}"/>
|
|
<filter string="Type" name="group_by_type" context="{'group_by': 'type'}"/>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_project_story_sprint" model="ir.actions.act_window">
|
|
<field name="name">Project Story</field>
|
|
<field name="res_model">project.story</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">form,tree</field>
|
|
<field name="view_id" ref="view_project_story_tree"/>
|
|
<field name="search_view_id" ref="view_project_story_search"/>
|
|
</record>
|
|
|
|
<menuitem name="Story" id="menu_story" parent="menu_scrum" action="action_project_story_sprint" sequence="7"/>
|
|
|
|
<!-- Story Priority views -->
|
|
|
|
<record id="view_story_priority_tree" model="ir.ui.view">
|
|
<field name="name">story.priority</field>
|
|
<field name="model">story.priority</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Priority">
|
|
<field name="name"/>
|
|
<field name="code"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_story_priority_form" model="ir.ui.view">
|
|
<field name="name">story.priority</field>
|
|
<field name="model">story.priority</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Priority">
|
|
<sheet>
|
|
<group col="4">
|
|
<field name="name" required="1"/>
|
|
<field name="code"/>
|
|
</group>
|
|
</sheet>
|
|
<div class="oe_chatter">
|
|
<field name="message_follower_ids" widget="mail_followers"/>
|
|
<field name="message_ids" widget="mail_thread"/>
|
|
</div>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_story_priority" model="ir.actions.act_window">
|
|
<field name="name">Story Priorities</field>
|
|
<field name="res_model">story.priority</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">form,tree</field>
|
|
<field name="view_id" ref="view_story_priority_tree"/>
|
|
</record>
|
|
|
|
<menuitem
|
|
id="menu_story_priority"
|
|
parent="project.menu_project_config"
|
|
action="action_story_priority"
|
|
groups="project.group_project_manager"
|
|
sequence="1"
|
|
/>
|
|
|
|
<!-- Story Type views -->
|
|
|
|
<record id="view_story_type_tree" model="ir.ui.view">
|
|
<field name="name">story.type</field>
|
|
<field name="model">story.type</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Type">
|
|
<field name="name"/>
|
|
<field name="code"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_story_type_form" model="ir.ui.view">
|
|
<field name="name">story.type</field>
|
|
<field name="model">story.type</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Type">
|
|
<sheet>
|
|
<group col="4">
|
|
<field name="name" required="1"/>
|
|
<field name="code"/>
|
|
</group>
|
|
</sheet>
|
|
<div class="oe_chatter">
|
|
<field name="message_follower_ids" widget="mail_followers"/>
|
|
<field name="message_ids" widget="mail_thread"/>
|
|
</div>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_story_type" model="ir.actions.act_window">
|
|
<field name="name">Story Types</field>
|
|
<field name="res_model">story.type</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">form,tree</field>
|
|
<field name="view_id" ref="view_story_type_tree"/>
|
|
</record>
|
|
|
|
<menuitem
|
|
id="menu_story_type"
|
|
parent="project.menu_project_config"
|
|
action="action_story_type"
|
|
groups="project.group_project_manager"
|
|
sequence="2"
|
|
/>
|
|
|
|
</flectra> |