flectra/addons/project_scrum/views/other_views.xml
2018-01-18 15:28:29 +05:30

162 lines
7.2 KiB
XML
Executable File

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<!-- Project form inherited -->
<record id="view_project_form_inherited" model="ir.ui.view">
<field name="name">Project inherited form</field>
<field name="model">project.project</field>
<field name="inherit_id" ref="project.edit_project"/>
<field name="arch" type="xml">
<field name="user_id" position="replace">
<field name="user_id" options="{'no_create': True, 'no_create_edit': True}"/>
</field>
<field name="company_id" position="replace">
<field name="company_id" options="{'no_create': True, 'no_create_edit': True}"/>
</field>
<field name="branch_id" position="replace">
<field name="branch_id" options="{'no_create': True, 'no_create_edit': True}"/>
</field>
<field name="partner_id" position="replace">
<field name="partner_id" options="{'no_create': True, 'no_create_edit': True}"/>
</field>
<xpath expr="//field[@name='user_id']" position="before">
<field name="no_of_hours" invisible="1"/>
<field name="no_of_days" invisible="1"/>
</xpath>
<xpath expr="//button[@name='attachment_tree_view']" position="after">
<button class="oe_stat_button" name="show_sprints" type="object" icon="fa fa-dot-circle-o">
<field string="Sprints" name="sprint_count" widget="statinfo"/>
</button>
</xpath>
<xpath expr="//group[@name='misc']/group[1]" position="replace">
<group string="Configuration">
<field name="sequence" position="replace">
<field name="sequence"/>
</field>
</group>
</xpath>
<xpath expr="//group[@name='misc']/group[2]" position="replace">
<group string="Time Scheduling">
<field name="resource_calendar_id" position="replace">
<field name="resource_calendar_id"/>
</field>
</group>
</xpath>
<xpath expr="//notebook/page[@name='settings']" position="after">
<page string="Stages">
<field name="task_type_ids"/>
</page>
</xpath>
</field>
</record>
<!-- User Inherited view -->
<record id="view_users_form_inherited" model="ir.ui.view">
<field name="name">Users inherited form</field>
<field name="model">res.users</field>
<field name="inherit_id" ref="base.view_users_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='branch_ids']" position="after">
<field name="role_id" options="{'no_create': True, 'no_create_edit': True}"/>
</xpath>
</field>
</record>
<!-- Tasks Inherited view -->
<record id="view_tasks_form_inherited" model="ir.ui.view">
<field name="name">Tasks inherited form</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_form2"/>
<field name="arch" type="xml">
<field name="project_id" position="replace">
<field name="project_id" options="{'no_create': True, 'no_create_edit': True}"/>
</field>
<field name="user_id" position="replace">
<field name="user_id" options="{'no_create': True, 'no_create_edit': True}"/>
</field>
<field name="company_id" position="replace">
<field name="company_id" options="{'no_create': True, 'no_create_edit': True}"/>
</field>
<field name="branch_id" position="replace">
<field name="branch_id" options="{'no_create': True, 'no_create_edit': True}"/>
</field>
<field name="partner_id" position="replace">
<field name="partner_id" options="{'no_create': True, 'no_create_edit': True}"/>
</field>
<field name="tag_ids" position="replace">
<field name="tag_ids" options="{'no_create': True, 'no_create_edit': True}" widget="many2many_tags"/>
</field>
<xpath expr="//field[@name='branch_id']" position="after">
<field name="story_id" options="{'no_create': True, 'no_create_edit': True}"/>
<field name="velocity"/>
<field name="release_planning_id" options="{'no_create': True, 'no_create_edit': True}"/>
</xpath>
<xpath expr="//field[@name='project_id']" position="after">
<field name="sprint_id" options="{'no_create': True, 'no_create_edit': True}"/>
</xpath>
</field>
</record>
<!-- Task Search view inherited -->
<record id="view_tasks_search_inherited" model="ir.ui.view">
<field name="name">Tasks inherited search</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_search_form"/>
<field name="arch" type="xml">
<xpath expr="//group/filter[@name='project']" position="before">
<filter string="Sprint" name="group_by_sprint" context="{'group_by': 'sprint_id'}"/>
</xpath>
<xpath expr="//search/field[@name='name']" position="after">
<field name="sprint_id"/>
</xpath>
</field>
</record>
<!-- Task Tree view inherited -->
<record id="view_tasks_tree_inherited" model="ir.ui.view">
<field name="name">Tasks inherited tree</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_tree2"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='date_deadline']" position="after">
<field name="sprint_id"/>
<field name="branch_id"/>
<field name="start_date"/>
<field name="end_date"/>
<field name="actual_end_date"/>
<field name="velocity"/>
</xpath>
</field>
</record>
<record id="action_inherited_task" model="ir.actions.act_window">
<field name="name">Tasks</field>
<field name="res_model">project.task</field>
<field name="view_mode">kanban,tree,form</field>
<field name="context">{
'search_default_sprint_id': [active_id],
'default_sprint_id': active_id,
}
</field>
<field name="search_view_id" ref="project.view_task_search_form"/>
</record>
<!-- Resource Calendar -->
<record id="view_resource_calendar_inherited" model="ir.ui.view">
<field name="name">Resource Calendar</field>
<field name="model">resource.calendar</field>
<field name="inherit_id" ref="resource.resource_calendar_form"/>
<field name="arch" type="xml">
<field name="name" position="after">
<group col="4" colspan="4">
<field name="no_of_hours"/>
<field name="no_of_days"/>
</group>
</field>
</field>
</record>
</flectra>