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"; } }, });