From fcbf2d719ab195637d55e9cd7de4db01896e033b Mon Sep 17 00:00:00 2001 From: "Atchuthan, Sodexis" Date: Thu, 24 Jun 2021 13:45:46 +0530 Subject: [PATCH] [MIG] stock_quantity_history_location: Migration to 14.0 --- stock_quantity_history_location/__manifest__.py | 2 +- .../static/src/js/inventory_report.js | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/stock_quantity_history_location/__manifest__.py b/stock_quantity_history_location/__manifest__.py index c8be6d3..1b51ed6 100644 --- a/stock_quantity_history_location/__manifest__.py +++ b/stock_quantity_history_location/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Stock Quantity History Location", "summary": "Provides stock quantity by location on past date", - "version": "13.0.1.1.1", + "version": "14.0.1.0.0", "license": "AGPL-3", "author": "ForgeFlow," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-reporting", 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 83f78dd..434ae08 100644 --- a/stock_quantity_history_location/static/src/js/inventory_report.js +++ b/stock_quantity_history_location/static/src/js/inventory_report.js @@ -14,11 +14,9 @@ odoo.define("stock.InventoryReportLocationListController", function (require) { 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")); + if (this.modelName === "stock.quant" && this.$buttons.length) { + this.$buttons[0].firstElementChild.innerHTML = + "Inventory at Date & Location"; } }, });