Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odoo CE 13 : Error on Batch Payslip Generation when install Employee Loan Management for dev_hr_loan #84

Open
libressai opened this issue Mar 9, 2022 · 0 comments

Comments

@libressai
Copy link

After install module Employee Loan Management of Dev_hr_loan, when i want to generate payslip batch, i get this error 👍

Odoo Server Error

Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\pycompat.py", line 14, in reraise
raise value
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\service\model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 915, in call
return self.method(*args, **kw)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 515, in response_wrap
response = f(*args, **kw)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\web\controllers\main.py", line 1343, in call_button
action = self._call_kw(model, method, args, kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\web\controllers\main.py", line 1331, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 387, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 374, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\hr_payroll_account_community\wizard\hr_payroll_payslips_by_employees.py", line 12, in compute_sheet
return super(HrPayslipEmployees, self.with_context(journal_id=journal_id)).compute_sheet()
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\hr_payroll_community\wizard\hr_payroll_payslips_by_employees.py", line 40, in compute_sheet
payslips.compute_sheet()
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\dev_hr_loan\models\hr_payslip.py", line 24, in compute_sheet
[('employee_id', '=', self.employee_id.id), ('loan_id.state', '=', 'done'), ('is_paid', '=', False),('date','<=',self.date_to)])
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\fields.py", line 3681, in get
raise ValueError("Expected singleton: %s" % record)
ValueError: Expected singleton: hr.employee(2357, 2432)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant