diff options
| author | Alexis de Lattre <alexis.delattre@akretion.com> | 2016-01-13 21:06:00 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-01-14 14:45:40 +0100 |
| commit | bd4e6ff3bf6313883a2564ce587a32f497158181 (patch) | |
| tree | 7ee9aeae35834b6c45387210e347f76b7a5d319e | |
| parent | 7ad626f8b65f8f4a5915b4342225dabbba5a1cca (diff) | |
[FIX] stock: consistent label of field
Field virtual_available on product.product is called Forecast Quantity but was
not on product.template.
This is not an issue to modify in stable as the term is already translated and
the translation of the string of the field is not based on the source (meaning
that, without reloading the translations, people will still see the translation
for 'Quantity Available').
Closes #10443
| -rw-r--r-- | addons/stock/i18n/stock.pot | 6 | ||||
| -rw-r--r-- | addons/stock/product.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/addons/stock/i18n/stock.pot b/addons/stock/i18n/stock.pot index a95c9aa7509..daae3a0fc74 100644 --- a/addons/stock/i18n/stock.pot +++ b/addons/stock/i18n/stock.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-08-03 15:25+0000\n" -"PO-Revision-Date: 2015-08-03 15:25+0000\n" +"POT-Creation-Date: 2016-01-14 12:26+0000\n" +"PO-Revision-Date: 2016-01-14 12:26+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -1477,6 +1477,7 @@ msgstr "" #. module: stock #: field:product.product,virtual_available:0 +#: field:product.template,virtual_available:0 msgid "Forecast Quantity" msgstr "" @@ -3600,7 +3601,6 @@ msgid "Quantity (UOS)" msgstr "" #. module: stock -#: field:product.template,virtual_available:0 #: field:stock.move,availability:0 msgid "Quantity Available" msgstr "" diff --git a/addons/stock/product.py b/addons/stock/product.py index 0da4c2f1a86..19225bbfb9d 100644 --- a/addons/stock/product.py +++ b/addons/stock/product.py @@ -418,7 +418,7 @@ class product_template(osv.osv): 'qty_available': fields.function(_product_available, multi='qty_available', digits_compute=dp.get_precision('Product Unit of Measure'), fnct_search=_search_product_quantity, type='float', string='Quantity On Hand'), 'virtual_available': fields.function(_product_available, multi='qty_available', digits_compute=dp.get_precision('Product Unit of Measure'), - fnct_search=_search_product_quantity, type='float', string='Quantity Available'), + fnct_search=_search_product_quantity, type='float', string='Forecast Quantity'), 'incoming_qty': fields.function(_product_available, multi='qty_available', digits_compute=dp.get_precision('Product Unit of Measure'), fnct_search=_search_product_quantity, type='float', string='Incoming'), 'outgoing_qty': fields.function(_product_available, multi='qty_available', digits_compute=dp.get_precision('Product Unit of Measure'), |
