[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 fd63ab1709
commit 1952cd17e8
3 changed files with 28 additions and 0 deletions

View File

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

View File

@@ -15,6 +15,16 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: project_timebox
#: model_terms:ir.ui.view,arch_db:project_timebox.portal_my_task_timebox
msgid "<strong>Timebox Max:</strong>"
msgstr "<strong>Temps estimé maxi :</strong>"
#. module: project_timebox
#: model_terms:ir.ui.view,arch_db:project_timebox.portal_my_task_timebox
msgid "<strong>Timebox Min:</strong>"
msgstr "<strong>Temps estimé mini :</strong>"
#. module: project_timebox
#: model:ir.model.fields,field_description:project_timebox.field_timebox__create_uid
msgid "Created by"

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="after">
<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>