[MIG] stock_quantity_history_location: Migration to 14.0

This commit is contained in:
Atchuthan, Sodexis
2021-06-24 13:45:46 +05:30
parent 4fbffa5324
commit fcbf2d719a
2 changed files with 4 additions and 6 deletions

View File

@@ -5,7 +5,7 @@
{ {
"name": "Stock Quantity History Location", "name": "Stock Quantity History Location",
"summary": "Provides stock quantity by location on past date", "summary": "Provides stock quantity by location on past date",
"version": "13.0.1.1.1", "version": "14.0.1.0.0",
"license": "AGPL-3", "license": "AGPL-3",
"author": "ForgeFlow," "Odoo Community Association (OCA)", "author": "ForgeFlow," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-reporting", "website": "https://github.com/OCA/stock-logistics-reporting",

View File

@@ -14,11 +14,9 @@ odoo.define("stock.InventoryReportLocationListController", function (require) {
if (this.context.no_at_date) { if (this.context.no_at_date) {
return; return;
} }
if (this.modelName === "stock.quant") { if (this.modelName === "stock.quant" && this.$buttons.length) {
$node this.$buttons[0].firstElementChild.innerHTML =
.find(".o_list_buttons") "Inventory at Date & Location";
.find(".btn-primary")
.html(_t("Inventory at Date & Location"));
} }
}, },
}); });