2013-08-19 14:28:12 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Layout add nav and footer -->
|
|
|
|
|
|
|
|
<template id="footer_custom" inherit_id="website.layout" name="Custom Footer">
|
2013-09-18 14:50:28 +00:00
|
|
|
<xpath expr="//footer//ul[@name='products']" position="inside">
|
2013-09-10 14:15:02 +00:00
|
|
|
<li t-foreach="website_project_ids" t-as="project"><a t-attf-href="/project/#{ project.id }/"><t t-esc="project.name"/></a></li>
|
2013-08-19 14:28:12 +00:00
|
|
|
</xpath>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<!-- Page -->
|
|
|
|
|
2013-08-21 16:06:32 +00:00
|
|
|
|
|
|
|
<template id="kanban_card" name="Project">
|
2013-08-22 09:30:49 +00:00
|
|
|
<div class="thumbnail">
|
|
|
|
<a t-attf-href="/task/#{ object_id.id }/"><span t-field="object_id.name"/></a>
|
|
|
|
<div>
|
|
|
|
Assigned to <span t-field="object_id.user_id"/>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<span t-foreach="object_id.categ_ids" t-as="categ_id" class="label">
|
|
|
|
<t t-esc="categ_id.name"/>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<small>
|
|
|
|
<i class="icon-time"></i> <span t-field="object_id.date_start"/><br/>
|
|
|
|
<t t-if="object_id.date_end">Ending Date: <span t-field="object_id.date_end"/></t>
|
|
|
|
</small>
|
2013-08-21 16:06:32 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2013-08-21 08:52:46 +00:00
|
|
|
<template id="index" name="Project">
|
2013-08-19 14:28:12 +00:00
|
|
|
<t t-call="website.layout">
|
2013-09-15 17:25:37 +00:00
|
|
|
<t t-set="title">Project</t>
|
|
|
|
<div id="wrap">
|
|
|
|
<div class="oe_structure"/>
|
2013-08-19 14:28:12 +00:00
|
|
|
<div class="container">
|
2013-08-21 08:52:46 +00:00
|
|
|
<h4 t-field="project_id.name"/>
|
2013-08-21 16:06:32 +00:00
|
|
|
<t t-call="website.kanban">
|
|
|
|
<t t-set="model">project.task</t>
|
|
|
|
<t t-set="domain" t-value="[('project_id', '=', project_id.id)]"/>
|
|
|
|
<t t-set="column">stage_id</t>
|
2013-08-22 09:18:12 +00:00
|
|
|
<t t-set="template">website_project.kanban_card</t>
|
|
|
|
<t t-set="step">10</t>
|
|
|
|
<t t-set="scope">3</t>
|
2013-08-21 16:06:32 +00:00
|
|
|
</t>
|
2013-08-19 14:28:12 +00:00
|
|
|
</div>
|
2013-09-15 17:25:37 +00:00
|
|
|
<div class="oe_structure"/>
|
|
|
|
</div>
|
2013-08-19 14:28:12 +00:00
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|