[IMP] hr_timesheet: improve the timesheet tree view.
Purpose of the task is to improve the list view of timesheet. so the description(name) field should no longer be required in the list view and move the Description(move) field to the right of the task one in list view. As field is required at python and display as _rec_name on analytic line so if value is blank then we should fill the value with the '/'. task-2176065 closes #44101 Related: odoo/enterprise#8001 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
committed by
Yannick Tivisse
parent
bab3281476
commit
90075be373
@@ -23,9 +23,9 @@
|
||||
<field name="arch" type="xml">
|
||||
<tree editable="top" string="Timesheet Activities" js_class="timesheet_tree">
|
||||
<field name="date"/>
|
||||
<field name="name"/>
|
||||
<field name="project_id" required="1" context="{'form_view_ref': 'project.project_project_view_form_simplified',}"/>
|
||||
<field name="task_id" widget="task_with_hours" context="{'default_project_id': project_id}" domain="[('project_id', '=', project_id)]"/>
|
||||
<field name="name" required="0"/>
|
||||
<field name="is_timer_running" string="Timer" widget="timer_toggle_button" readonly="1" attrs="{ 'invisible': [('display_timer', '=', False)] }" invisible="not context.get('my_timesheet_display_timer')" />
|
||||
<field name="unit_amount" widget="timesheet_uom" sum="Total" attrs="{'readonly': [('id', '!=', False), ('timer_start', '!=', False)]}"/>
|
||||
<field name="company_id" invisible="1"/>
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
<field name="date"/>
|
||||
<field name="user_id" invisible="1"/>
|
||||
<field name="employee_id" required="1"/>
|
||||
<field name="name"/>
|
||||
<field name="name" required="0"/>
|
||||
<field name="unit_amount" widget="timesheet_uom"/>
|
||||
<field name="project_id" invisible="1"/>
|
||||
<field name="company_id" invisible="1"/>
|
||||
|
||||
Reference in New Issue
Block a user