From ddbacb15ca394efb6ad7ba1b682ebc34ec564bdb 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/README.rst | 10 ++++-----
.../__manifest__.py | 2 +-
stock_quantity_history_location/i18n/it.po | 21 ++++++++++++++-----
.../i18n/stock_quantity_history_location.pot | 18 +++++++++++-----
.../static/description/index.html | 6 +++---
.../static/src/js/inventory_report.js | 8 +++----
6 files changed, 41 insertions(+), 24 deletions(-)
diff --git a/stock_quantity_history_location/README.rst b/stock_quantity_history_location/README.rst
index c0788ab..c2ce70d 100644
--- a/stock_quantity_history_location/README.rst
+++ b/stock_quantity_history_location/README.rst
@@ -14,13 +14,13 @@ Stock Quantity History Location
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github
- :target: https://github.com/OCA/stock-logistics-reporting/tree/13.0/stock_quantity_history_location
+ :target: https://github.com/OCA/stock-logistics-reporting/tree/14.0/stock_quantity_history_location
:alt: OCA/stock-logistics-reporting
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/stock-logistics-reporting-13-0/stock-logistics-reporting-13-0-stock_quantity_history_location
+ :target: https://translation.odoo-community.org/projects/stock-logistics-reporting-14-0/stock-logistics-reporting-14-0-stock_quantity_history_location
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/151/13.0
+ :target: https://runbot.odoo-community.org/runbot/151/14.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -49,7 +49,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -74,6 +74,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-This module is part of the `OCA/stock-logistics-reporting `_ project on GitHub.
+This module is part of the `OCA/stock-logistics-reporting `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
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/i18n/it.po b/stock_quantity_history_location/i18n/it.po
index 0bff160..3373291 100644
--- a/stock_quantity_history_location/i18n/it.po
+++ b/stock_quantity_history_location/i18n/it.po
@@ -16,17 +16,25 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"
+#. module: stock_quantity_history_location
+#: model:ir.model.fields,field_description:stock_quantity_history_location.field_stock_quantity_history__display_name
+msgid "Display Name"
+msgstr ""
+
+#. module: stock_quantity_history_location
+#: model:ir.model.fields,field_description:stock_quantity_history_location.field_stock_quantity_history__id
+msgid "ID"
+msgstr ""
+
#. module: stock_quantity_history_location
#: model:ir.model.fields,field_description:stock_quantity_history_location.field_stock_quantity_history__include_child_locations
msgid "Include child locations"
msgstr "Includi locazioni figlie"
#. module: stock_quantity_history_location
-#. openerp-web
-#: code:addons/stock_quantity_history_location/static/src/js/inventory_report.js:0
-#, python-format
-msgid "Inventory at Date & Location"
-msgstr "Inventario alla Data e Locazione"
+#: model:ir.model.fields,field_description:stock_quantity_history_location.field_stock_quantity_history____last_update
+msgid "Last Modified on"
+msgstr ""
#. module: stock_quantity_history_location
#: model:ir.model.fields,field_description:stock_quantity_history_location.field_stock_quantity_history__location_id
@@ -37,3 +45,6 @@ msgstr "Locazione"
#: model:ir.model,name:stock_quantity_history_location.model_stock_quantity_history
msgid "Stock Quantity History"
msgstr "Storico quantità giacenza"
+
+#~ msgid "Inventory at Date & Location"
+#~ msgstr "Inventario alla Data e Locazione"
diff --git a/stock_quantity_history_location/i18n/stock_quantity_history_location.pot b/stock_quantity_history_location/i18n/stock_quantity_history_location.pot
index 86435f3..8d96fb7 100644
--- a/stock_quantity_history_location/i18n/stock_quantity_history_location.pot
+++ b/stock_quantity_history_location/i18n/stock_quantity_history_location.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 13.0\n"
+"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -13,16 +13,24 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
+#. module: stock_quantity_history_location
+#: model:ir.model.fields,field_description:stock_quantity_history_location.field_stock_quantity_history__display_name
+msgid "Display Name"
+msgstr ""
+
+#. module: stock_quantity_history_location
+#: model:ir.model.fields,field_description:stock_quantity_history_location.field_stock_quantity_history__id
+msgid "ID"
+msgstr ""
+
#. module: stock_quantity_history_location
#: model:ir.model.fields,field_description:stock_quantity_history_location.field_stock_quantity_history__include_child_locations
msgid "Include child locations"
msgstr ""
#. module: stock_quantity_history_location
-#. openerp-web
-#: code:addons/stock_quantity_history_location/static/src/js/inventory_report.js:0
-#, python-format
-msgid "Inventory at Date & Location"
+#: model:ir.model.fields,field_description:stock_quantity_history_location.field_stock_quantity_history____last_update
+msgid "Last Modified on"
msgstr ""
#. module: stock_quantity_history_location
diff --git a/stock_quantity_history_location/static/description/index.html b/stock_quantity_history_location/static/description/index.html
index ac0c72d..44248ff 100644
--- a/stock_quantity_history_location/static/description/index.html
+++ b/stock_quantity_history_location/static/description/index.html
@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

+

This module allows to run an Inventory report or Inventory Valuation
report by location, for a past date or for current date.
Table of contents
@@ -404,7 +404,7 @@ report by location, for a past date or for current date.
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
-feedback.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -422,7 +422,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-
This module is part of the OCA/stock-logistics-reporting project on GitHub.
+
This module is part of the OCA/stock-logistics-reporting project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
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";
}
},
});