summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2019-06-25 08:00:41 +0000
committerNicolas Martinelli <nim@odoo.com>2019-06-25 08:01:50 +0000
commit28e24b9540dd4a4865ebe06f3cfd2067db4aac0d (patch)
treefeea259081c547afff3442c850a33e7e7830ab0c /addons
parentea1960d10a645321574412e431f9cddb73a30bee (diff)
[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) <nim@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/website_sale_stock/models/product_template.py2
1 files changed, 1 insertions, 1 deletions
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):