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

134 lines
6.5 KiB
XML
Executable File

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<data>
<template id="project_sprint_template_id">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<div class="page" t-foreach="docs" t-as="object" style="page-break-after: always;">
<div class="oe_structure"/>
<div class="row">
<div class="col-xs-6 mt16">
<table class="table">
<tr>
<th>Project Name</th>
<td>
<span t-field="object.project_id"/>
</td>
</tr>
<tr>
<th>Sprint Name</th>
<td>
<span t-field="object.name"/>
</td>
</tr>
<tr>
<th>Team Name</th>
<td>
<span t-field="object.team_id"/>
</td>
</tr>
<tr>
<th>Scrum Master</th>
<td>
<span t-field="object.team_id.master_id"/>
</td>
</tr>
<tr>
<th>Start Date</th>
<td>
<span t-field="object.start_date"/>
</td>
</tr>
<tr>
<th>End Date</th>
<td>
<span t-field="object.end_date"/>
</td>
</tr>
<tr>
<th>Estimated Velocity</th>
<td>
<span t-field="object.estimated_velocity"/>
</td>
</tr>
<tr>
<th>Actual Velocity</th>
<td>
<span t-field="object.actual_velocity"/>
</td>
</tr>
</table>
</div>
<div class="col-xs-6 mt16">
<table class="table">
<tr>
<th colspan="3">Team Member(s)</th>
</tr>
<tr>
<th>Name</th>
<th>Email</th>
<th>Role</th>
</tr>
<tr t-foreach="object.team_id.member_ids" t-as="member">
<td>
<span t-field="member.name"/>
</td>
<td>
<span t-field="member.login"/>
</td>
<td>
<span t-field="member.role_id"/>
</td>
</tr>
</table>
</div>
</div>
<h3 class="text-center">Task Details</h3>
<div>
<table class="table">
<tr>
<th>Task Seq.</th>
<th>Task Name</th>
<th>Velocity</th>
<th>Start Date</th>
<th>End Date</th>
<th>Actual End Date</th>
<th>Assigned to</th>
<th>State</th>
</tr>
<tr t-foreach="object.get_data()" t-as="data">
<td>
<span t-esc="data['reference']"/>
</td>
<td>
<span t-esc="data['name']"/>
</td>
<td>
<span t-esc="data['velocity']"/>
</td>
<td>
<span t-esc="data['start_date']"/>
</td>
<td>
<span t-esc="data['end_date']"/>
</td>
<td>
<span t-esc="data['actual_end_date']"/>
</td>
<td>
<span t-esc="data['assigned_to']"/>
</td>
<td>
<span t-esc="data['state']"/>
</td>
</tr>
</table>
</div>
<div class="oe_structure"/>
</div>
</t>
</t>
</template>
</data>
</flectra>