Files
odoo_source/addons/website_quote/models/product_template.py
T
Pratima Gupta 8942a73fb3 [FIX]: website_quote: translating quote_description
Steps to reproduce:

-Install website_quote
-Add a language French
-Create a quotation template
-Add a line with a new prodcut
-Translate the field description

Bug: Traceback becasue the field quote_description was not translatable.

opw:697508
2016-12-13 12:32:38 +01:00

13 lines
509 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
from odoo.tools.translate import html_translate
class ProductTemplate(models.Model):
_inherit = "product.template"
website_description = fields.Html('Description for the website', sanitize_attributes=False) # hack, if website_sale is not installed
quote_description = fields.Html('Description for the quote', sanitize_attributes=False, translate=html_translate)