Skip to content

Commit e895edd

Browse files
committed
[FIX] js
1 parent c313da5 commit e895edd

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

spp_base_common/static/src/legacy/js/views/list/list_controller_fix.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/** @odoo-module **/
1+
odoo.define('spp_base_common.ListControllerPatch', function (require) {
2+
'use strict';
23

34
/**
45
* Patch for Odoo bug: swapped parameters in archive notification message.
@@ -10,13 +11,13 @@
1011
* Fixed to show: "Of the 50,000 records selected, only the first 20,000 have been archived"
1112
*/
1213

13-
import ListController from "web.ListController";
14-
import session from "web.session";
15-
import core from "web.core";
14+
var ListController = require('web.ListController');
15+
var session = require('web.session');
16+
var core = require('web.core');
1617

17-
const _t = core._t;
18+
var _t = core._t;
1819

19-
// Use legacy .include() method for Backbone-style controllers
20+
// Patch the ListController using .include()
2021
ListController.include({
2122
/**
2223
* @override
@@ -39,3 +40,5 @@ ListController.include({
3940
},
4041
});
4142

43+
});
44+

0 commit comments

Comments
 (0)