Skip to Content
Menu
v 16.0 Third Party 17971
Download for v 16.0 Deploy on Odoo.sh Live Preview
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Employee Contracts (hr_contract)
Time Off (hr_holidays)
Employees (hr)
Calendar (calendar)
Lines of code 2847
Technical Name om_hr_payroll
LicenseLGPL-3
Websitehttps://www.odoomates.tech
Versions 13.0 14.0 15.0 16.0 17.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Employee Contracts (hr_contract)
Time Off (hr_holidays)
Employees (hr)
Calendar (calendar)
Lines of code 2847
Technical Name om_hr_payroll
LicenseLGPL-3
Websitehttps://www.odoomates.tech
Versions 13.0 14.0 15.0 16.0 17.0 18.0

Odoo 14 Payroll For Community Edition

Payslip Generation



If you need any help or support, just contact us:


Email: odoomates@gmail.com



Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
Dear all, I have a when Generate Payslip for employee. Employee creates two leave with two time off types, For example: A leave with time off types is paid time off from 8:00am to 10:00am Another leave from 10:00am to 13:00am Both vacations are for 1 day When Generate Payslips for that employee, there is ValueError: Expected singleton: hr.leave.type(1, 7) Please hepl me! Thank you.
by
SSG
on 7/11/23, 6:07 AM
  File "/home/developer/Desktop/tvs_project/odoo16_base_addons/addons/web/controllers/dataset.py", line 33, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/developer/Desktop/tvs_project/odoo16_base_addons/odoo/api.py", line 461, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/home/developer/Desktop/tvs_project/odoo16_base_addons/odoo/api.py", line 448, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/home/developer/Desktop/tvs_project/third_app/om_hr_payroll/wizard/hr_payroll_payslips_by_employees.py", line 25, in compute_sheet
    slip_data = self.env['hr.payslip'].onchange_employee_id(from_date, to_date, employee.id, contract_id=False)
  File "/home/developer/Desktop/tvs_project/third_app/om_hr_payroll/models/hr_payslip.py", line 463, in onchange_employee_id
    worked_days_line_ids = self.get_worked_day_lines(contracts, date_from, date_to)
  File "/home/developer/Desktop/tvs_project/third_app/om_hr_payroll/models/hr_payslip.py", line 209, in get_worked_day_lines
    'name': holiday.holiday_status_id.name or _('Global Leaves'),
  File "/home/developer/Desktop/tvs_project/odoo16_base_addons/odoo/fields.py", line 1132, in __get__
    record.ensure_one()
  File "/home/developer/Desktop/tvs_project/odoo16_base_addons/odoo/models.py", line 5119, in ensure_one
    raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: hr.leave.type(1, 7)


Re: Dear all, I have a when Generate Payslip for employee. Employee creates two leave with two time off types, For example: A leave with time off types is paid time off from 8:00am to 10:00am Another leave from 10:00am to 13:00am Both vacations are for 1 day When Generate Payslips for that employee, there is ValueError: Expected singleton: hr.leave.type(1, 7) Please hepl me! Thank you.
by
Odoo Mates
on 7/22/23, 10:18 AM Author

Hi,

Could you ping us in odoomates@gmail.com .



4
by
ziggula
on 5/31/23, 9:27 PM



by
Myo Thaw Khaing
on 1/21/23, 12:04 AM

4


Dear all, I have a when Generate Payslip for employee. Employee creates two leave with two time off types, For example: A leave with time off types is paid time off from 8:00am to 10:00am Another leave from 10:00am to 13:00am (Time off types is Sick time off).Both vacations are for 1 day When Generate Payslips for that employee, there is ValueError: Expected singleton: hr.leave.type(1, 7) Please hepl me! Thank you.
by
SSG
on 7/11/23, 6:09 AM
  File "/home/developer/Desktop/tvs_project/odoo16_base_addons/addons/web/controllers/dataset.py", line 33, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/developer/Desktop/tvs_project/odoo16_base_addons/odoo/api.py", line 461, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/home/developer/Desktop/tvs_project/odoo16_base_addons/odoo/api.py", line 448, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/home/developer/Desktop/tvs_project/third_app/om_hr_payroll/wizard/hr_payroll_payslips_by_employees.py", line 25, in compute_sheet
    slip_data = self.env['hr.payslip'].onchange_employee_id(from_date, to_date, employee.id, contract_id=False)
  File "/home/developer/Desktop/tvs_project/third_app/om_hr_payroll/models/hr_payslip.py", line 463, in onchange_employee_id
    worked_days_line_ids = self.get_worked_day_lines(contracts, date_from, date_to)
  File "/home/developer/Desktop/tvs_project/third_app/om_hr_payroll/models/hr_payslip.py", line 209, in get_worked_day_lines
    'name': holiday.holiday_status_id.name or _('Global Leaves'),
  File "/home/developer/Desktop/tvs_project/odoo16_base_addons/odoo/fields.py", line 1132, in __get__
    record.ensure_one()
  File "/home/developer/Desktop/tvs_project/odoo16_base_addons/odoo/models.py", line 5119, in ensure_one
    raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: hr.leave.type(1, 7)



by
ziggula
on 5/31/23, 9:27 PM

4


by
Myo Thaw Khaing
on 1/21/23, 12:03 AM

Easy to apply and clear explanation