[IMP] project_average_acceptable_time : add explanation and precision #16

Merged
b0g merged 1 commits from 14.0-project_average_acceptable_time into 14.0 2023-11-21 13:50:03 +00:00
3 changed files with 23 additions and 7 deletions
Showing only changes of commit 149327c0e5 - Show all commits

View File

@@ -3,7 +3,7 @@
{ {
"name": "project_average_acceptable_time", "name": "project_average_acceptable_time",
"version": "12.0.1.0.0", "version": "14.0.1.0.0",
"author": "Elabore", "author": "Elabore",
"website": "https://github.com/elabore-coop/project-tools", "website": "https://github.com/elabore-coop/project-tools",
"maintainer": "Clément Thomas", "maintainer": "Clément Thomas",

View File

@@ -17,13 +17,19 @@ msgstr ""
#. module: project_average_acceptable_time #. module: project_average_acceptable_time
#: model_terms:ir.ui.view,arch_db:project_average_acceptable_time.portal_my_home_average_acceptable_time #: model_terms:ir.ui.view,arch_db:project_average_acceptable_time.portal_my_home_average_acceptable_time
msgid "<b>Average acceptable time</b>:" msgid "<b>Average acceptable time of </b>:"
msgstr "<b>Temps moyen acceptable</b>:" msgstr "<b>Temps moyen acceptable de </b>:"
#. module: project_project_view_kanban_inherit_average_acceptable_time
#: model_terms:ir.ui.view,arch_db:project_average_acceptable_time.portal_my_home_average_acceptable_time
msgid "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."
msgstr "Le temps moyen acceptable est le temps accordé qui ne nécessite pas de validation pour lancer la réalisation de la tâche. Par exemple, si vous choisissez 30min alors, toutes les tâches ne dépassant pas 30 min, peuvent être traitées directement sans attendre une validation de votre part."
#. module: project_average_acceptable_time #. module: project_average_acceptable_time
#: model_terms:ir.ui.view,arch_db:project_average_acceptable_time.portal_my_home_average_acceptable_time #: model_terms:ir.ui.view,arch_db:project_average_acceptable_time.portal_my_home_average_acceptable_time
msgid "Average acceptable time" msgid "Average acceptable time of"
msgstr "Temps moyen acceptable" msgstr "Temps moyen acceptable de"
#. module: project_average_acceptable_time #. module: project_average_acceptable_time
#: model_terms:ir.ui.view,arch_db:project_average_acceptable_time.project_project_view_kanban_inherit_average_acceptable_time #: model_terms:ir.ui.view,arch_db:project_average_acceptable_time.project_project_view_kanban_inherit_average_acceptable_time
@@ -40,7 +46,13 @@ msgstr "Temps moyen acceptable"
msgid "Average acceptable time (h)" msgid "Average acceptable time (h)"
msgstr "Temps moyen acceptable (h)" msgstr "Temps moyen acceptable (h)"
#. module: project_average_acceptable_time
#: model_terms:ir.ui.view,arch_db:project_average_acceptable_time.portal_my_details_average_acceptable_time
msgid "<small>ex : number format should be 0.5 for 30 min (and not 0,5)</small>"
msgstr "<small>ex : le format doit être 0.5 pour 30 min (et pas 0,5)</small"
#. module: project_average_acceptable_time #. module: project_average_acceptable_time
#: model:ir.model,name:project_average_acceptable_time.model_project_project #: model:ir.model,name:project_average_acceptable_time.model_project_project
msgid "Project" msgid "Project"
msgstr "Projet" msgstr "Projet"

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"> <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"> <xpath expr="//div[hasclass('o_portal_my_details')]" position="inside">
<hr class="mt-1 mb-0"/> <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> </xpath>
</template> </template>
@@ -13,12 +16,13 @@
<xpath expr="//input[@name='redirect']" position="before"> <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"> <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> <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 <input
type="text" type="text"
name="average_acceptable_time" name="average_acceptable_time"
t-attf-class="form-control #{error.get('average_acceptable_time') and 'is-invalid' or ''}" 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-att-value="average_acceptable_time or user_id.default_project_id.average_acceptable_time"
t-options="{'widget': 'float_time'}"
/> />
</div> </div>
</xpath> </xpath>