[REV] hr_timesheet: revert use of timesheet_ids in project kanban

This commit reverts 0fff5b0327 as it
fetches all the records which is a bad idea.

closes odoo/odoo#80022

X-original-commit: 737a0ed1f6d904bf6cd32be4e882f5dd3cfefcbe
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
This commit is contained in:
Laurent Stukkens (LTU)
2021-11-18 15:11:30 +00:00
parent 612b705975
commit 48f8aad0b5
+1 -2
View File
@@ -274,14 +274,13 @@
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="allow_timesheets" invisible="1"/>
<field name="timesheet_ids" invisible="1"/>
<field name="total_timesheet_time" invisible="1"/>
<field name="remaining_hours" invisible="1"/>
<field name="has_planned_hours_tasks" invisible="1"/>
<field name="encode_uom_in_days" invisible="1"/>
</field>
<xpath expr="//div[hasclass('o_kanban_manage_view')]" position="inside">
<div role="menuitem" t-if="record.allow_timesheets.raw_value and record.timesheet_ids.raw_value.length" groups="hr_timesheet.group_hr_timesheet_user">
<div role="menuitem" t-if="record.allow_timesheets.raw_value and record.total_timesheet_time.raw_value" groups="hr_timesheet.group_hr_timesheet_user">
<a name="%(act_hr_timesheet_line_by_project)d" type="action">Timesheets</a>
</div>
</xpath>