[IMP] project_timebox: add timebox fields in task portal view

This commit is contained in:
Stéphan Sainléger
2022-08-24 16:47:38 +02:00
parent 309f8d4510
commit 87bdd51043
2 changed files with 18 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ This module is maintained by Elabore.
"security/ir.model.access.csv", "security/ir.model.access.csv",
"views/project_task.xml", "views/project_task.xml",
"views/timebox.xml", "views/timebox.xml",
"views/portal_template.xml",
], ],
# only loaded in demonstration mode # only loaded in demonstration mode
"demo": [], "demo": [],

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="portal_my_task_timebox" name="My Task: Timebox" inherit_id="project.portal_my_task" priority="40">
<xpath expr="//t[@t-set='card_body']/div[hasclass('row','mb-4')]" position="before">
<div id="timebox" class="row mb-2">
<div class="col-12 col-md-6" t-if="task.timebox_min_id">
<strong>Timebox Min:</strong>
<span t-field="task.timebox_min_id" />
</div>
<div class="col-12 col-md-6" t-if="task.timebox_max_id">
<strong>Timebox Max:</strong>
<span t-field="task.timebox_max_id" />
</div>
</div>
</xpath>
</template>
</odoo>