[IMP] project_timebox: add timebox fields in task portal view
This commit is contained in:
@@ -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": [],
|
||||||
|
17
project_timebox/views/portal_template.xml
Normal file
17
project_timebox/views/portal_template.xml
Normal 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>
|
Reference in New Issue
Block a user