[MIG] web_listview_range_select: Migration to 14.0

This commit is contained in:
Kévin Roche
2021-01-13 14:52:36 +01:00
committed by Karl Southern
parent 48457a94e1
commit e089cdcbd2
2 changed files with 13 additions and 15 deletions

View File

@@ -6,10 +6,10 @@
"summary": """
Enables selecting a range of records using the shift key
""",
"version": "13.0.1.0.0",
"version": "14.0.1.0.0",
"category": "Web",
"author": "Onestein, Odoo Community Association (OCA)",
"website": "https://github.com/oca/web",
"website": "https://github.com/OCA/web",
"license": "AGPL-3",
"depends": ["web"],
"data": ["templates/assets.xml"],

View File

@@ -31,9 +31,7 @@ odoo.define("web_listview_range_select", function(require) {
end = null;
this.$el.find("td.o_list_record_selector input").each(function (i, el) {
var id = $(el)
.closest("tr")
.data("id");
var id = $(el).closest("tr").data("id");
var checked = self._range_history.indexOf(id) !== -1;
if (checked && $(el).is(":checked")) {
if (start === null) {