[FIX] add missing help content translation for stock.quant view

closes odoo/odoo#89097

X-original-commit: b50f90cdae28b315d6a715b5444cec820dca45e1
Signed-off-by: Arnold Moyaux <arm@odoo.com>
This commit is contained in:
jlzhou
2022-04-21 09:28:50 +02:00
committed by Arnold Moyaux
parent 9b022bf2ff
commit 9ddbefe9df
2 changed files with 38 additions and 7 deletions
+29
View File
@@ -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 "]<br/>min:"
+9 -7
View File
@@ -356,10 +356,12 @@ class StockQuant(models.Model):
'domain': [('location_id.usage', 'in', ['internal', 'transit'])],
'help': """
<p class="o_view_nocontent_smiling_face">
Your stock is currently empty
{}
</p><p>
Press the CREATE button to define quantity for each product in your stock or import them from a spreadsheet throughout Favorites <span class="fa fa-long-arrow-right"/> Import</p>
"""
{} <span class="fa fa-long-arrow-right"/> {}</p>
""".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': """
<p class="o_view_nocontent_empty_folder">No Stock On Hand</p>
<p>This analysis gives you an overview of the current stock
level of your products.</p>
"""
<p class="o_view_nocontent_empty_folder">{}</p>
<p>{}</p>
""".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)