[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",
|
||||
"views/project_task.xml",
|
||||
"views/timebox.xml",
|
||||
"views/portal_template.xml",
|
||||
],
|
||||
# only loaded in demonstration mode
|
||||
"demo": [],
|
||||
|
@@ -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"
|
||||
|
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="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>
|
Reference in New Issue
Block a user