[ADD] hr_payroll_batch_error_skip: for Odoo 13.0

This commit is contained in:
Jared Kipe
2020-09-02 17:12:00 -07:00
parent 724f4d7899
commit 202ce5bc84
4 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1 @@
from . import hr_payroll_payslips_by_employees

View File

@@ -0,0 +1,16 @@
import logging
from odoo import models
from odoo.exceptions import UserError
_logger = logging.getLogger(__name__)
class HrPayslipEmployees(models.TransientModel):
_inherit = 'hr.payslip.employees'
def _check_undefined_slots(self, work_entries, payslip_run):
try:
super()._check_undefined_slots(work_entries, payslip_run)
except UserError as e:
_logger.info('Caught user error when checking for undefined slots: ' + str(e))