diff --git a/addons/hr/static/src/components/hr_presence_status_private/hr_presence_status_private.js b/addons/hr/static/src/components/hr_presence_status_private/hr_presence_status_private.js new file mode 100644 index 00000000000..9ad4f7b1cd5 --- /dev/null +++ b/addons/hr/static/src/components/hr_presence_status_private/hr_presence_status_private.js @@ -0,0 +1,13 @@ +/** @odoo-module */ + +import { registry } from "@web/core/registry"; +import { HrPresenceStatus, hrPresenceStatus } from "../hr_presence_status/hr_presence_status"; + +export class HrPresenceStatusPrivate extends HrPresenceStatus { } + +export const hrPresenceStatusPrivate = { + ...hrPresenceStatus, + component: HrPresenceStatusPrivate, +}; + +registry.category("fields").add("hr_presence_status_private", hrPresenceStatusPrivate); diff --git a/addons/hr/views/hr_employee_public_views.xml b/addons/hr/views/hr_employee_public_views.xml index 42d140c4874..51c23f75cb6 100644 --- a/addons/hr/views/hr_employee_public_views.xml +++ b/addons/hr/views/hr_employee_public_views.xml @@ -158,9 +158,6 @@