diff --git a/verdigado_attendance/__manifest__.py b/verdigado_attendance/__manifest__.py index 474e764..0e56e80 100644 --- a/verdigado_attendance/__manifest__.py +++ b/verdigado_attendance/__manifest__.py @@ -62,6 +62,7 @@ "verdigado_attendance/static/src/scss/backend.scss", "verdigado_attendance/static/src/js/systray.esm.js", "verdigado_attendance/static/src/js/time_off_calendar.js", + "verdigado_attendance/static/src/js/board_renderer.js", ], "web.assets_qweb": [ "verdigado_attendance/static/src/xml/hr_holidays.xml", diff --git a/verdigado_attendance/static/src/js/board_renderer.js b/verdigado_attendance/static/src/js/board_renderer.js new file mode 100644 index 0000000..5cc8b48 --- /dev/null +++ b/verdigado_attendance/static/src/js/board_renderer.js @@ -0,0 +1,24 @@ +odoo.define("verdigado_attendance.BoadRenderer", function (require) { + "use strict"; + var BoardView = require("board.BoardView"); + var core = require("web.core"); + + BoardView.prototype.config.Renderer.include({ + _createController: function (params) { + if (params.viewType === "hr_attendance_my_attendances") { + var client_action = core.action_registry.get( + "hr_attendance_my_attendances" + ); + var attendances = new client_action(this, {}, {}); + attendances.do_action = function () { + params.$node.empty(); + return attendances.appendTo(params.$node).then(function () { + return attendances.willStart(); + }); + }; + return attendances.appendTo(params.$node); + } + return this._super.apply(this, arguments); + }, + }); +}); diff --git a/verdigado_attendance/static/src/scss/backend.scss b/verdigado_attendance/static/src/scss/backend.scss index aad3af2..512a6bb 100644 --- a/verdigado_attendance/static/src/scss/backend.scss +++ b/verdigado_attendance/static/src/scss/backend.scss @@ -35,3 +35,12 @@ span[data-menu-xmlid="mail.menu_root_discuss"] { background-color: #e7f7eb !important; } } + +.oe_dashboard .o_hr_attendance_kiosk_mode_container { + position: relative; + margin-top: 90px; +} + +.oe_dashboard .o_hr_attendance_kiosk_backdrop { + background: none; +}