-
- Downloads
[FIX] hr_recruitment: handle key error in calendar.event object
When users try to apply for new job positions from the calendar view, a traceback will occur. Steps to reproduce: - Install the "hr_recruitment" module. - Go to the "Recruitment" icon; Kanban view will open; choose any job position; and click on the "NEW APPLICATIONS" button. - Then, select the "calendar" view and try to create a new record. After that, a traceback error will occur. Error: KeyError: 'default_partner_ids' When users try to apply for new job positions from the calendar view and the 'default_partner_ids' key does not exist in the context dictionary, a traceback occurs. Code reference: https://github.com/odoo/odoo/blob/16.0/addons/hr_recruitment/models/calendar.py#L18 sentry-4462451583 closes odoo/odoo#135253 Signed-off-by:Sofie Gvaladze (sgv) <sgv@odoo.com>
Please register or sign in to comment