Skip to content

Commit

Permalink
TA#72174 [16.0][MIG] project_portal_hide_timesheets
Browse files Browse the repository at this point in the history
  • Loading branch information
majouda committed Jan 16, 2025
1 parent 5c33304 commit 2df70e7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<template id="portal_my_task" inherit_id="hr_timesheet.portal_my_task">
<xpath expr="(//li[@t-if='timesheets and allow_timesheets'])[1]" position="replace" />
<xpath expr="//li[@id='nav-header']/following-sibling::li[1]" position="replace" />
<div t-if="timesheets and allow_timesheets" position="replace" />
<template id="portal_my_task" inherit_id="hr_timesheet.portal_my_task" priority="100">
<xpath expr="//li[@id='nav-report']" position="replace">
<t t-esc="False"/>
</xpath>
<xpath expr="//li[@class='nav-item']" position="replace">
<t t-esc="False"/>
</xpath>
<xpath expr="//div[@class='container']" position="replace">
<t t-esc="False"/>
</xpath>
<xpath expr="//div[@t-if='task.planned_hours > 0']" position="replace">
<t t-esc="False"/>
</xpath>
<xpath expr="//t[@t-call='hr_timesheet.portal_my_task_planned_hours_template']" position="replace">
<t t-esc="False"/>
</xpath>
</template>

</odoo>
2 changes: 1 addition & 1 deletion project_time_range/views/portal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="mb8">
<div>
<strong>Min:</strong>
<span t-field="task.min_hours" t-field-options="{'widget': 'float_time'}" t-if="task.min_hours" />
<span t-field="task.planned_hours" t-field-options="{'widget': 'float_time'}" t-if="task.planned_hours" />
</div>
<div>
<strong>Ideal:</strong>
Expand Down

0 comments on commit 2df70e7

Please sign in to comment.