diff --git a/stock_quantity_history_location/static/src/js/inventory_report.js b/stock_quantity_history_location/static/src/js/inventory_report.js index f2e054f..1e00fdc 100644 --- a/stock_quantity_history_location/static/src/js/inventory_report.js +++ b/stock_quantity_history_location/static/src/js/inventory_report.js @@ -1,23 +1,25 @@ -odoo.define('stock.InventoryReportLocationListController', function (require) { -"use strict"; +/* eslint-disable no-unused-vars */ +odoo.define("stock.InventoryReportLocationListController", function(require) { + "use strict"; -var core = require('web.core'); -var InventoryReportListController = require('stock.InventoryReportListController'); + var core = require("web.core"); + var InventoryReportListController = require("stock.InventoryReportListController"); -var qweb = core.qweb; -var _t = core._t; + var qweb = core.qweb; + var _t = core._t; - -var InventoryReportLocationListController = InventoryReportListController.include({ - - renderButtons: function ($node) { - this._super.apply(this, arguments); - if (this.context.no_at_date) { - return; - } - if (this.modelName === "stock.quant") { - $node.find('.o_list_buttons').find(".btn-primary").html(_t("Inventory at Date & Location")) - } - }, -}); + var InventoryReportLocationListController = InventoryReportListController.include({ + renderButtons: function($node) { + this._super.apply(this, arguments); + if (this.context.no_at_date) { + return; + } + if (this.modelName === "stock.quant") { + $node + .find(".o_list_buttons") + .find(".btn-primary") + .html(_t("Inventory at Date & Location")); + } + }, + }); }); diff --git a/stock_quantity_history_location/wizards/stock_quantity_history.xml b/stock_quantity_history_location/wizards/stock_quantity_history.xml index 88b8e58..d81ccff 100644 --- a/stock_quantity_history_location/wizards/stock_quantity_history.xml +++ b/stock_quantity_history_location/wizards/stock_quantity_history.xml @@ -1,22 +1,33 @@ - + -