From 28e24b9540dd4a4865ebe06f3cfd2067db4aac0d Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Tue, 25 Jun 2019 08:00:41 +0000 Subject: [PATCH] [FIX] website_sale_stock: custom message translatable Make the 'Custom Message' field translatable since it is supposed to be used on the website and displayed in the language of the user. opw-2008088 closes odoo/odoo#34344 Signed-off-by: Nicolas Martinelli (nim) --- addons/website_sale_stock/models/product_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale_stock/models/product_template.py b/addons/website_sale_stock/models/product_template.py index ee8ea1e3ac3..b0706bfee30 100644 --- a/addons/website_sale_stock/models/product_template.py +++ b/addons/website_sale_stock/models/product_template.py @@ -14,7 +14,7 @@ class ProductTemplate(models.Model): ('custom', 'Show product-specific notifications'), ], string='Inventory Availability', help='Adds an inventory availability status on the web product page.', default='never') available_threshold = fields.Float(string='Availability Threshold', default=5.0) - custom_message = fields.Text(string='Custom Message', default='') + custom_message = fields.Text(string='Custom Message', default='', translate=True) @api.multi def _get_combination_info(self, combination=False, product_id=False, add_qty=1, pricelist=False, reference_product=False, only_template=False):