[FIX] hr_timesheet: removed future entry in demo data

Before this commit, when doing the same project entry five times
that does not set the default value of project in timer header
of the timesheet because the demo data contains the future timesheet
entry with different project_id and timesheet entry are order by date.

So this commit fixes the issue by removing the future entry
from the demo data so that selecting the same project entry
five times, set the value of project as default

task-2790019

closes odoo/odoo#88431

Related: odoo/enterprise#26090
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
This commit is contained in:
Manisha Tulsiyani
2022-05-18 14:53:53 +02:00
parent 8fa85a6871
commit 0b75ae6adb
@@ -3246,7 +3246,7 @@
<record id="project_2_task_6_account_analytic_line_19" model="account.analytic.line">
<field name="name">Quality analysis</field>
<field name="employee_id" ref="hr.employee_admin"/>
<field name="date" eval="(DateTime.now() + relativedelta(days=1)).strftime('%Y-%m-%d')"/>
<field name="date" eval="(DateTime.now() - relativedelta(days=1)).strftime('%Y-%m-%d')"/>
<field name="unit_amount">1</field>
<field name="project_id" ref="project.project_project_2"/>
<field name="task_id" ref="project.project_2_task_6"/>