From 9ddbefe9df3e6b8429d1c2b52b3d87ab2cea91cb Mon Sep 17 00:00:00 2001
From: jlzhou
Date: Mon, 11 Apr 2022 23:44:45 +0000
Subject: [PATCH] [FIX] add missing help content translation for stock.quant
view
closes odoo/odoo#89097
X-original-commit: b50f90cdae28b315d6a715b5444cec820dca45e1
Signed-off-by: Arnold Moyaux
---
addons/stock/i18n/stock.pot | 29 +++++++++++++++++++++++++++++
addons/stock/models/stock_quant.py | 16 +++++++++-------
2 files changed, 38 insertions(+), 7 deletions(-)
diff --git a/addons/stock/i18n/stock.pot b/addons/stock/i18n/stock.pot
index 8c1257fc4fc..115c8ee5c80 100644
--- a/addons/stock/i18n/stock.pot
+++ b/addons/stock/i18n/stock.pot
@@ -3182,6 +3182,12 @@ msgstr ""
msgid "Immediate transfer?"
msgstr ""
+#. module: stock
+#: code:addons/stock/models/stock_quant.py:0
+#, python-format
+msgid "Import"
+msgstr ""
+
#. module: stock
#: model:ir.model.fields,field_description:stock.field_stock_warehouse__in_type_id
msgid "In Type"
@@ -4500,6 +4506,12 @@ msgstr ""
msgid "No stock move found"
msgstr ""
+#. module: stock
+#: code:addons/stock/models/stock_quant.py:0
+#, python-format
+msgid "No Stock On Hand"
+msgstr ""
+
#. module: stock
#: model_terms:ir.actions.act_window,help:stock.action_picking_form
#: model_terms:ir.actions.act_window,help:stock.action_picking_tree_all
@@ -5240,6 +5252,12 @@ msgstr ""
msgid "Preferred route"
msgstr ""
+#. module: stock
+#: code:addons/stock/models/stock_quant.py:0
+#, python-format
+msgid "Press the CREATE button to define quantity for each product in your stock or import them from a spreadsheet throughout Favorites"
+msgstr ""
+
#. module: stock
#: model_terms:ir.ui.view,arch_db:stock.view_picking_form
msgid "Print"
@@ -7567,6 +7585,11 @@ msgstr ""
#. module: stock
#: model_terms:ir.ui.view,arch_db:stock.duplicated_sn_warning
msgid "This SN is already in another location."
+
+#. module: stock
+#: code:addons/stock/models/stock_quant.py:0
+#, python-format
+msgid "This analysis gives you an overview of the current stock level of your products."
msgstr ""
#. module: stock
@@ -8943,6 +8966,12 @@ msgstr ""
msgid "ZPL Labels with price"
msgstr ""
+#. module: stock
+#: code:addons/stock/models/stock_quant.py:0
+#, python-format
+msgid "Your stock is currently empty"
+msgstr ""
+
#. module: stock
#: model_terms:ir.ui.view,arch_db:stock.report_stock_rule
msgid "]
min:"
diff --git a/addons/stock/models/stock_quant.py b/addons/stock/models/stock_quant.py
index 655735e4502..0714e54fada 100644
--- a/addons/stock/models/stock_quant.py
+++ b/addons/stock/models/stock_quant.py
@@ -356,10 +356,12 @@ class StockQuant(models.Model):
'domain': [('location_id.usage', 'in', ['internal', 'transit'])],
'help': """
- Your stock is currently empty
+ {}
- Press the CREATE button to define quantity for each product in your stock or import them from a spreadsheet throughout Favorites Import
- """
+ {} {}
+ """.format(_('Your stock is currently empty'),
+ _('Press the CREATE button to define quantity for each product in your stock or import them from a spreadsheet throughout Favorites'),
+ _('Import')),
}
return action
@@ -935,10 +937,10 @@ class StockQuant(models.Model):
'context': ctx,
'domain': domain or [],
'help': """
- No Stock On Hand
- This analysis gives you an overview of the current stock
- level of your products.
- """
+ {}
+ {}
+ """.format(_('No Stock On Hand'),
+ _('This analysis gives you an overview of the current stock level of your products.')),
}
target_action = self.env.ref('stock.dashboard_open_quants', False)