From b5d5a9acbac5a06eb0744ea8f0e333c4ca5c5074 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Sat, 30 May 2026 21:49:53 -0400 Subject: [PATCH] fix(fusion_clock): build paystub from payslip.line_ids, not fusion_payroll fields entech runs the enterprise hr_payroll module (not the custom fusion_payroll), whose hr.payslip lacks employee_cpp/ytd_* fields. Render the inline paystub from payslip.line_ids (name + total) so it works on any payroll provider. Co-Authored-By: Claude Opus 4.8 --- .../views/portal_payslip_templates.xml | 70 ++++++------------- 1 file changed, 23 insertions(+), 47 deletions(-) diff --git a/fusion_clock/views/portal_payslip_templates.xml b/fusion_clock/views/portal_payslip_templates.xml index deca7954..752ef70a 100644 --- a/fusion_clock/views/portal_payslip_templates.xml +++ b/fusion_clock/views/portal_payslip_templates.xml @@ -80,54 +80,30 @@ t-options="{'widget': 'monetary', 'display_currency': payslip.currency_id}"/> - +
-

Deductions

-
- CPP - -
-
- CPP2 - -
-
- EI - -
-
- Income Tax - -
-
- Total Deductions - -
-
- - -
-

Year to Date

-
- Gross - -
-
- CPP - -
-
- EI - -
-
- Income Tax - -
-
- Net - -
+

Breakdown

+ +
+ + +
+
+ +
+ Gross + +
+
+ Net + +
+