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 14c1ef8
Showing 1 changed file with 16 additions and 4 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>

0 comments on commit 14c1ef8

Please sign in to comment.