summaryrefslogtreecommitdiff
path: root/om_hr_payroll/views/report_payslip_templates.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 17:14:58 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 17:14:58 +0700
commit1ca3b3df3421961caec3b747a364071c80f5c7da (patch)
tree6778a1f0f3f9b4c6e26d6d87ccde16e24da6c9d6 /om_hr_payroll/views/report_payslip_templates.xml
parentb57188be371d36d96caac4b8d65a40745c0e972c (diff)
initial commit
Diffstat (limited to 'om_hr_payroll/views/report_payslip_templates.xml')
-rw-r--r--om_hr_payroll/views/report_payslip_templates.xml123
1 files changed, 123 insertions, 0 deletions
diff --git a/om_hr_payroll/views/report_payslip_templates.xml b/om_hr_payroll/views/report_payslip_templates.xml
new file mode 100644
index 0000000..35fc060
--- /dev/null
+++ b/om_hr_payroll/views/report_payslip_templates.xml
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <template id="report_payslip">
+ <t t-call="web.html_container">
+ <t t-foreach="docs" t-as="o">
+ <t t-call="web.external_layout">
+ <div class="page">
+ <h2>Pay Slip</h2>
+ <p t-field="o.name"/>
+
+ <table class="table table-sm table-bordered">
+ <tr>
+ <td>
+ <strong>Name</strong>
+ </td>
+ <td>
+ <span t-field="o.employee_id"/>
+ </td>
+ <td>
+ <strong>Designation</strong>
+ </td>
+ <td>
+ <span t-field="o.employee_id.job_id"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <strong>Address</strong>
+ </td>
+ <td colspan="3">
+ <div t-field="o.employee_id.address_home_id"
+ t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <strong>Email</strong>
+ </td>
+ <td>
+ <span t-field="o.employee_id.work_email"/>
+ </td>
+ <td>
+ <strong>Identification No</strong>
+ </td>
+ <td>
+ <span t-field="o.employee_id.identification_id"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <strong>Reference</strong>
+ </td>
+ <td>
+ <span t-field="o.number"/>
+ </td>
+ <td>
+ <strong>Bank Account</strong>
+ </td>
+ <td>
+ <span t-field="o.employee_id.bank_account_id"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <strong>Date From</strong>
+ </td>
+ <td>
+ <span t-field="o.date_from"/>
+ </td>
+ <td>
+ <strong>Date To</strong>
+ </td>
+ <td>
+ <span t-field="o.date_to"/>
+ </td>
+ </tr>
+ </table>
+
+ <table class="table table-sm">
+ <thead>
+ <tr>
+ <th>Code</th>
+ <th>Name</th>
+ <th>Quantity/rate</th>
+ <th>Amount</th>
+ <th>Total</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr t-foreach="o.line_ids.filtered(lambda line: line.appears_on_payslip)" t-as="line">
+ <td>
+ <span t-field="line.code"/>
+ </td>
+ <td>
+ <span t-field="line.name"/>
+ </td>
+ <td>
+ <span t-field="line.quantity"/>
+ </td>
+ <td>
+ <span t-esc="line.amount"
+ t-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/>
+ </td>
+ <td>
+ <span t-esc="line.total"
+ t-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/>
+ </td>
+
+ </tr>
+ </tbody>
+ </table>
+
+ <p class="text-right">
+ <strong>Authorized signature</strong>
+ </p>
+ </div>
+ </t>
+ </t>
+ </t>
+ </template>
+
+</odoo>