Skip to content
Snippets Groups Projects
Commit 9950c38e authored by Romain Estievenart's avatar Romain Estievenart
Browse files

[FIX] hr_skills: Remove non compliant ES5 syntax

Currently Odoo JavaScript code base support only ecmascript <= 5

So using a non compliant ES5 syntax can trigger a javascript engines
crash for some browsers like: IE, webview used by some old mobile
devices.

This commit fixes non compliant JS code syntax found to avoid potential
crash.
parent 62d0eee6
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ var AbstractGroupedOne2ManyRenderer = ListRenderer.extend({
return qweb.render('hr_trash_button');
},
_renderAddItemButton(group) {
_renderAddItemButton: function (group) {
return qweb.render(this.addLineButtonTemplate, {
context: JSON.stringify(this._getCreateLineContext(group)),
});
......@@ -141,8 +141,8 @@ var ResumeLineRenderer = AbstractGroupedOne2ManyRenderer.extend({
var date_start = data.date_start && data.date_start.format(dateFormat) || "";
var date_end = data.date_end && data.date_end.format(dateFormat) || _t("Current");
return _.extend(data, {
date_start,
date_end,
date_start: date_start,
date_end: date_end,
});
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment