mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_listview_range_select: Migration to 14.0
This commit is contained in:
committed by
Karl Southern
parent
48457a94e1
commit
e089cdcbd2
@@ -6,10 +6,10 @@
|
|||||||
"summary": """
|
"summary": """
|
||||||
Enables selecting a range of records using the shift key
|
Enables selecting a range of records using the shift key
|
||||||
""",
|
""",
|
||||||
"version": "13.0.1.0.0",
|
"version": "14.0.1.0.0",
|
||||||
"category": "Web",
|
"category": "Web",
|
||||||
"author": "Onestein, Odoo Community Association (OCA)",
|
"author": "Onestein, Odoo Community Association (OCA)",
|
||||||
"website": "https://github.com/oca/web",
|
"website": "https://github.com/OCA/web",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"depends": ["web"],
|
"depends": ["web"],
|
||||||
"data": ["templates/assets.xml"],
|
"data": ["templates/assets.xml"],
|
||||||
|
|||||||
@@ -31,9 +31,7 @@ odoo.define("web_listview_range_select", function(require) {
|
|||||||
end = null;
|
end = null;
|
||||||
|
|
||||||
this.$el.find("td.o_list_record_selector input").each(function (i, el) {
|
this.$el.find("td.o_list_record_selector input").each(function (i, el) {
|
||||||
var id = $(el)
|
var id = $(el).closest("tr").data("id");
|
||||||
.closest("tr")
|
|
||||||
.data("id");
|
|
||||||
var checked = self._range_history.indexOf(id) !== -1;
|
var checked = self._range_history.indexOf(id) !== -1;
|
||||||
if (checked && $(el).is(":checked")) {
|
if (checked && $(el).is(":checked")) {
|
||||||
if (start === null) {
|
if (start === null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user