[IMP] project_average_acceptable_time : add explanation and precision

This commit is contained in:
Boris Gallet
2023-11-16 15:29:17 +01:00
committed by Stéphan Sainléger
parent 5ec345051c
commit 162b7f46a3
3 changed files with 23 additions and 7 deletions

View File

@@ -4,7 +4,10 @@
<template id="portal_my_home_average_acceptable_time" name="Portal My Home: Average acceptable time" inherit_id="portal.portal_layout" priority="40">
<xpath expr="//div[hasclass('o_portal_my_details')]" position="inside">
<hr class="mt-1 mb-0"/>
<b>Average acceptable time</b>: <t t-esc="user_id.default_project_id.average_acceptable_time" t-options="{'widget': 'float_time'}"/>
<div title="The average acceptable time is the time allowed which does not require validation to start carrying out the task. For example, if you choose 30 min then all tasks not exceeding 30 min can be processed directly without waiting for validation from you.">
<b>Average acceptable time of <t t-esc="user_id.default_project_id.name"/></b>:
<t t-esc="user_id.default_project_id.average_acceptable_time" t-options="{'widget': 'float_time'}"/>
</div>
</xpath>
</template>
@@ -13,12 +16,13 @@
<xpath expr="//input[@name='redirect']" position="before">
<div t-attf-class="form-group #{error.get('average_acceptable_time') and 'o_has_error' or ''} col-xl-6">
<label class="col-form-label" for="average_acceptable_time">Average acceptable time (h)</label>
<p><small>ex : number format should be 0.5 for 30 min (and not 0,5)</small></p>
<input
type="text"
name="average_acceptable_time"
t-attf-class="form-control #{error.get('average_acceptable_time') and 'is-invalid' or ''}"
t-att-value="average_acceptable_time or user_id.default_project_id.average_acceptable_time"
t-options="{'widget': 'float_time'}"
/>
</div>
</xpath>