timesheet
timesheet copied to clipboard
[18.0][MIG] hr_timesheet_portal: Migration to 18.0
This migration follows the recent migration of hr_timesheet_portal to 17.0. There is already OCA/timesheet#800 for 18.0, but that one is more of a direct drop-in of code that works in 18.0, whereas this PR includes the full commit history and therefore provides traceability of the changes. However, the contribution of its author is acknowledged, as they were added to the list of contributors in the migration to 17.0.
Speaking of which:
hr_timesheet_portal/static/src/js/hr_timesheet_portal.esm.js
- Replaced
sessionand bounduserservice with a staticuserimport. - Used
browser.setTimeoutinstead of the globalsetTimeoutto satisfy ESLint. - Removed legacy
this.userbinding and unused imports.
hr_timesheet_portal/templates/portal.xml
- Replaced
analytic_account_idwithaccount_id.
@hbrunn once again, would you be so kind to review it for me please?