fix(fusion_planning): add Schedule tab to the Payslips page navs
The Schedule tab is injected into the Clock/Timesheets/Reports navs via xpath inherits, but the two payslip templates (portal_payslip_list_page, portal_payslip_detail_page) had no inherit, so Payslips showed only 4 tabs. Add the matching inherits. Verified on the rendered /my/clock/payslips page: 5 nav items incl. Schedule. Live on entech 19.0.1.4.0. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
{
|
||||
'name': 'Fusion Planning',
|
||||
'version': '19.0.1.3.0',
|
||||
'version': '19.0.1.4.0',
|
||||
'category': 'Human Resources/Planning',
|
||||
'summary': 'Fusion Clock bridge to Odoo Planning - employee schedule on the portal',
|
||||
'description': """
|
||||
|
||||
@@ -45,4 +45,22 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Inject "Schedule" on the Payslips list page -->
|
||||
<template id="portal_payslip_list_page_inherit_schedule_nav"
|
||||
inherit_id="fusion_clock.portal_payslip_list_page"
|
||||
name="Fusion Planning: Add Schedule tab to Payslips list nav">
|
||||
<xpath expr="//div[hasclass('fclk-nav-bar')]/a[@href='/my/clock/timesheets']" position="after">
|
||||
<t t-call="fusion_planning.schedule_nav_button"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Inject "Schedule" on the Payslip detail page -->
|
||||
<template id="portal_payslip_detail_page_inherit_schedule_nav"
|
||||
inherit_id="fusion_clock.portal_payslip_detail_page"
|
||||
name="Fusion Planning: Add Schedule tab to Payslip detail nav">
|
||||
<xpath expr="//div[hasclass('fclk-nav-bar')]/a[@href='/my/clock/timesheets']" position="after">
|
||||
<t t-call="fusion_planning.schedule_nav_button"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user