[FIX] ...: untranslated selection
When using a method returning the list of selections, the labels needs to be translated with a _ call
This commit is contained in:
@@ -180,7 +180,7 @@ class barcode_rule(models.Model):
|
||||
@api.model
|
||||
def _encoding_selection_list(self):
|
||||
return [
|
||||
('any', 'Any'),
|
||||
('any', _('Any')),
|
||||
('ean13', 'EAN-13'),
|
||||
('ean8', 'EAN-8'),
|
||||
('upca', 'UPC-A'),
|
||||
|
||||
@@ -72,6 +72,12 @@ msgstr ""
|
||||
msgid "An internal identification of the barcode nomenclature"
|
||||
msgstr ""
|
||||
|
||||
#. module: barcodes
|
||||
#: code:addons/barcodes/barcodes.py:183
|
||||
#, python-format
|
||||
msgid "Any"
|
||||
msgstr ""
|
||||
|
||||
#. module: barcodes
|
||||
#: model:ir.model.fields,field_description:barcodes.field_barcode_rule_barcode_nomenclature_id
|
||||
#: model:ir.ui.view,arch_db:barcodes.view_barcode_nomenclature_form
|
||||
|
||||
@@ -648,6 +648,12 @@ msgstr ""
|
||||
msgid "Computers"
|
||||
msgstr ""
|
||||
|
||||
#. module: product
|
||||
#: code:addons/product/product.py:460
|
||||
#, python-format
|
||||
msgid "Consumable"
|
||||
msgstr ""
|
||||
|
||||
#. module: product
|
||||
#: model:ir.model.fields,help:product.field_product_uom_category_id
|
||||
msgid "Conversion between Units of Measure can only occur if they belong to the same category. The conversion will be made based on the ratios."
|
||||
@@ -2394,6 +2400,12 @@ msgstr ""
|
||||
msgid "Server"
|
||||
msgstr ""
|
||||
|
||||
#. module: product
|
||||
#: code:addons/product/product.py:460
|
||||
#, python-format
|
||||
msgid "Service"
|
||||
msgstr ""
|
||||
|
||||
#. module: product
|
||||
#: model:ir.ui.view,arch_db:product.product_template_search_view
|
||||
#: model:product.category,name:product.product_category_3
|
||||
|
||||
@@ -457,7 +457,7 @@ class product_template(osv.osv):
|
||||
return [x['product_tmpl_id'][0] for x in r]
|
||||
|
||||
def _get_product_template_type(self, cr, uid, context=None):
|
||||
return [('consu', 'Consumable'), ('service', 'Service')]
|
||||
return [('consu', _('Consumable')), ('service', _('Service'))]
|
||||
_get_product_template_type_wrapper = lambda self, *args, **kwargs: self._get_product_template_type(*args, **kwargs)
|
||||
|
||||
_columns = {
|
||||
|
||||
@@ -5233,6 +5233,12 @@ msgstr ""
|
||||
msgid "Stockable"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock
|
||||
#: code:addons/stock/product.py:400
|
||||
#, python-format
|
||||
msgid "Stockable Product"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock
|
||||
#: model:ir.model.fields,field_description:stock.field_stock_location_route_supplied_wh_id
|
||||
msgid "Supplied Warehouse"
|
||||
|
||||
@@ -397,7 +397,7 @@ class product_template(osv.osv):
|
||||
def _get_product_template_type(self, cr, uid, context=None):
|
||||
res = super(product_template, self)._get_product_template_type(cr, uid, context=context)
|
||||
if 'product' not in [item[0] for item in res]:
|
||||
res.append(('product', 'Stockable Product'))
|
||||
res.append(('product', _('Stockable Product')))
|
||||
return res
|
||||
|
||||
_columns = {
|
||||
|
||||
@@ -32,6 +32,12 @@ msgstr ""
|
||||
msgid "Digital Attachments"
|
||||
msgstr ""
|
||||
|
||||
#. module: website_sale_digital
|
||||
#: code:addons/website_sale_digital/product.py:22
|
||||
#, python-format
|
||||
msgid "Digital Content"
|
||||
msgstr ""
|
||||
|
||||
#. module: website_sale_digital
|
||||
#: model:ir.ui.view,arch_db:website_sale_digital.orders_followup_downloads
|
||||
msgid "Downloads <span class=\"caret\"/>"
|
||||
|
||||
@@ -19,7 +19,7 @@ class product_template(models.Model):
|
||||
def _get_product_template_type(self):
|
||||
res = super(product_template, self)._get_product_template_type()
|
||||
if 'digital' not in [item[0] for item in res]:
|
||||
res.append(('digital', 'Digital Content'))
|
||||
res.append(('digital', _('Digital Content')))
|
||||
return res
|
||||
|
||||
@api.multi
|
||||
|
||||
Reference in New Issue
Block a user