From 2bceb90f094b1e722f5ac923c0fb8e4ac1ed1e47 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?=
Date: Thu, 11 Nov 2021 09:25:20 +0100
Subject: [PATCH] [MIG] stock_inventory_cost_info: Migration to 14.0 TT31837
---
stock_quant_cost_info/README.rst | 10 +++++-----
stock_quant_cost_info/__manifest__.py | 4 ++--
.../i18n/stock_inventory_cost_info.pot | 18 ++++++++++++++++--
.../models/stock_inventory.py | 2 +-
.../static/description/index.html | 6 +++---
.../tests/test_stock_inventory_cost_info.py | 2 +-
.../views/stock_inventory_views.xml | 11 -----------
7 files changed, 28 insertions(+), 25 deletions(-)
diff --git a/stock_quant_cost_info/README.rst b/stock_quant_cost_info/README.rst
index 6fac21db12e4..1cb5619918f2 100644
--- a/stock_quant_cost_info/README.rst
+++ b/stock_quant_cost_info/README.rst
@@ -14,13 +14,13 @@ Stock Inventory Cost Info
: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--warehouse-lightgray.png?logo=github
- :target: https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_inventory_cost_info
+ :target: https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_inventory_cost_info
:alt: OCA/stock-logistics-warehouse
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_inventory_cost_info
+ :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_inventory_cost_info
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/153/13.0
+ :target: https://runbot.odoo-community.org/runbot/153/14.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -58,7 +58,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.
@@ -92,6 +92,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-warehouse `_ project on GitHub.
+This module is part of the `OCA/stock-logistics-warehouse `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/stock_quant_cost_info/__manifest__.py b/stock_quant_cost_info/__manifest__.py
index 4174a0bd08d8..08574016141f 100644
--- a/stock_quant_cost_info/__manifest__.py
+++ b/stock_quant_cost_info/__manifest__.py
@@ -4,8 +4,8 @@
{
"name": "Stock Inventory Cost Info",
"summary": "Shows the cost of the inventory adjustments",
- "version": "13.0.1.0.0",
- "author": "Tecnativa, " "Odoo Community Association (OCA)",
+ "version": "14.0.1.0.0",
+ "author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"category": "Warehouse",
"depends": ["stock"],
diff --git a/stock_quant_cost_info/i18n/stock_inventory_cost_info.pot b/stock_quant_cost_info/i18n/stock_inventory_cost_info.pot
index 7f6f69939cd4..a60fbcb8fe7d 100644
--- a/stock_quant_cost_info/i18n/stock_inventory_cost_info.pot
+++ b/stock_quant_cost_info/i18n/stock_inventory_cost_info.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"
@@ -28,13 +28,27 @@ msgstr ""
msgid "Currency"
msgstr ""
+#. module: stock_inventory_cost_info
+#: model:ir.model.fields,field_description:stock_inventory_cost_info.field_stock_inventory_line__display_name
+msgid "Display Name"
+msgstr ""
+
+#. module: stock_inventory_cost_info
+#: model:ir.model.fields,field_description:stock_inventory_cost_info.field_stock_inventory_line__id
+msgid "ID"
+msgstr ""
+
#. module: stock_inventory_cost_info
#: model:ir.model,name:stock_inventory_cost_info.model_stock_inventory_line
msgid "Inventory Line"
msgstr ""
+#. module: stock_inventory_cost_info
+#: model:ir.model.fields,field_description:stock_inventory_cost_info.field_stock_inventory_line____last_update
+msgid "Last Modified on"
+msgstr ""
+
#. module: stock_inventory_cost_info
#: model_terms:ir.ui.view,arch_db:stock_inventory_cost_info.stock_inventory_line_tree
-#: model_terms:ir.ui.view,arch_db:stock_inventory_cost_info.stock_inventory_line_tree2
msgid "Total"
msgstr ""
diff --git a/stock_quant_cost_info/models/stock_inventory.py b/stock_quant_cost_info/models/stock_inventory.py
index 00ce55c13c81..9ebdf5b47ac1 100644
--- a/stock_quant_cost_info/models/stock_inventory.py
+++ b/stock_quant_cost_info/models/stock_inventory.py
@@ -8,7 +8,7 @@ class InventoryLine(models.Model):
_inherit = "stock.inventory.line"
currency_id = fields.Many2one(
- string="Currency", related="inventory_id.company_id.currency_id", readonly=True
+ string="Currency", related="inventory_id.company_id.currency_id"
)
adjustment_cost = fields.Monetary(
string="Adjustment cost", compute="_compute_adjustment_cost", store=True
diff --git a/stock_quant_cost_info/static/description/index.html b/stock_quant_cost_info/static/description/index.html
index c7fe5d0133f4..0845fef66cc1 100644
--- a/stock_quant_cost_info/static/description/index.html
+++ b/stock_quant_cost_info/static/description/index.html
@@ -367,7 +367,7 @@ Stock Inventory Cost Info
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module extends the functionality of Inventory Adjustments to show a new
column Adjustment cost in Inventory Details list and PDF report table. The
value of Adjustment cost will be self-calculated according to:
@@ -407,7 +407,7 @@
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.
diff --git a/stock_quant_cost_info/tests/test_stock_inventory_cost_info.py b/stock_quant_cost_info/tests/test_stock_inventory_cost_info.py
index 91e37f01eb6c..188d88553e9a 100644
--- a/stock_quant_cost_info/tests/test_stock_inventory_cost_info.py
+++ b/stock_quant_cost_info/tests/test_stock_inventory_cost_info.py
@@ -8,7 +8,7 @@
@tagged("post_install", "-at_install")
class TestStockInventoryCostInfo(TransactionCase):
def setUp(self):
- super(TestStockInventoryCostInfo, self).setUp()
+ super().setUp()
product_obj = self.env["product.product"]
self.product_1 = product_obj.create(
{"name": "product test 1", "type": "product", "standard_price": 1000}
diff --git a/stock_quant_cost_info/views/stock_inventory_views.xml b/stock_quant_cost_info/views/stock_inventory_views.xml
index d3671e3f302c..344d67ebee5d 100644
--- a/stock_quant_cost_info/views/stock_inventory_views.xml
+++ b/stock_quant_cost_info/views/stock_inventory_views.xml
@@ -11,15 +11,4 @@
-
- stock.inventory.line.tree2.cost.info
- stock.inventory.line
-
-
-
-
-
-
-
-