[IMP] project: improve project form view usability
Some points have to be improved * 'Name of the tasks' field should always be visible. It shows the user such a change in configuration is possible; * tasks stat button is a way for the user to create a new task from the project form view. Just like the subtasks stat button that always shows on the task formview; * as he might be changing the 'name of the tasks', he should see the consequence of this change in the stat button (as the 'name of tasks' field might not directly speak to everyone, it is a way to show them what this field does); This commit is linked to task ID 1884015 and closes PR #26906 .
This commit is contained in:
committed by
Thibault Delavallée
parent
c53da322a9
commit
dd7c0774de
@@ -95,7 +95,7 @@
|
||||
<button class="oe_stat_button" name="attachment_tree_view" type="object" icon="fa-files-o">
|
||||
<field string="Documents" name="doc_count" widget="statinfo"/>
|
||||
</button>
|
||||
<button class="oe_stat_button" type="action" attrs="{'invisible': [('task_count', '=', 0)]}"
|
||||
<button class="oe_stat_button" type="action"
|
||||
name="%(act_project_project_2_project_task_all)d" icon="fa-tasks">
|
||||
<field string="Tasks" name="task_count" widget="statinfo" options="{'label_field': 'label_tasks'}"/>
|
||||
</button>
|
||||
@@ -120,7 +120,7 @@
|
||||
<h1>
|
||||
<field name="name" placeholder="Project Name"/>
|
||||
</h1>
|
||||
<div name="options_active" class="oe_edit_only">
|
||||
<div name="options_active">
|
||||
<div>
|
||||
<label for="label_tasks" class="oe_inline" string="Name of the tasks :"/>
|
||||
<field name="label_tasks" class="oe_inline oe_input_align"/>
|
||||
|
||||
Reference in New Issue
Block a user