Skip to Content
Menú
This question has been flagged
1 Respondre
1944 Vistes

Is there a way to send payslip pdf to all employee emails using odoo online. The employees are not internal users but just portal users.

Avatar
Descartar
Best Answer

In Odoo Online, you can send payslip PDFs to employees who are portal users by leveraging the built-in email functionality in the Payroll module. Here's how to achieve this:

Steps to Send Payslips to Employee Emails

1. Ensure Employees Are Portal Users

Portal users in Odoo are associated with contacts that have an email address. For employees:

  1. Navigate to Employees > Employees.
  2. Open the employee's record and ensure:
    • The Work Email field is filled with a valid email address.
    • The employee's related contact has portal access:
      • Go to Contacts.
      • Open the contact linked to the employee.
      • Ensure they are marked as a portal user (via the "Grant Portal Access" button).

2. Generate and Validate Payslips

Before sending payslips, generate and validate them:

  1. Go to Payroll > Payslips.
  2. Create payslips for employees using the Generate Payslips button.
  3. Validate all payslips to finalize them.

3. Use the Batch Payslip Email Feature

Odoo allows you to send payslips in bulk via email:

  1. Navigate to Payroll > Payslips.
  2. Filter or select the payslips you want to send.
  3. Use the Action menu and choose Send by Email.
    • This sends an email with the payslip PDF attached to each employee's email address.
    • The email template used is predefined for payslips.

4. Customize the Payslip Email Template

You can customize the email template to include personalized details or a custom message:

  1. Go to Settings > Technical > Email > Templates.
  2. Search for the template named Payslip Email (or similar).
  3. Edit the template:
    • Add placeholders for dynamic fields (e.g., ${object.employee_id.name}).
    • Ensure the email includes the payslip PDF as an attachment.

5. Verify Email Delivery

After sending the emails:

  1. Check the Chatter in the employee's payslip record to confirm the email was sent.
  2. Monitor outgoing emails:
    • Navigate to Settings > Technical > Emails.
    • Check the email status (e.g., Sent, Failed).

Key Considerations

  • Portal Access Is Not Required for Email Delivery:
    • Employees don't need portal access to receive emails with payslip PDFs. Portal access is required only if they need to view payslips online.
  • Test the Workflow:
    • Send a test email to ensure the correct payslip and email content are delivered.
  • Ensure SMTP Configuration:
    • In Odoo Online, emails are sent using Odoo’s built-in mail server. Ensure no delivery issues occur.

Optional: Grant Portal Access for Payslip Viewing

If employees need to view payslips online:

  1. Grant portal access to employees:
    • Go to Contacts.
    • Open the employee’s contact.
    • Click Grant Portal Access.
  2. Enable payslip visibility:
    • Navigate to Payroll > Configuration > Settings.
    • Enable the option to allow employees to view their payslips on the portal.

By following these steps, you can efficiently send payslip PDFs to employee emails in Odoo Online, even if they are portal users only. Let me know if you need more assistance!

Avatar
Descartar
Autor

Thank you so much!!. some of the things don't work for me. They are mentioned below. I am using odoo online 17.e
1) Enable the option to allow employees to view their payslips on the portal. [I don't see this option at all]
2) Use the Action menu and choose Send by Email [I don't see this option at all]

Related Posts Respostes Vistes Activitat
0
de set. 15
3957
0
de maig 25
768
1
de jul. 21
4536
0
de març 23
2159
2
de febr. 23
2767