-
- Downloads
[FIX] *: use html_translate for non-sanitized html fields
Commit c21568e1 deactivated the sanitization of frontend html fields so that their modification through the editor worked again. However, this broke the possibility to display their traduction and to modify them. The problem is that the translate option of html fields should not equal "True" but instead be the html_translate function defined in openerp.tool.translate. The translate=True option is automatically change in html_translate though but there is a condition: the field should be sanitized, which is why this broke since the sanitization is disabled. This commit sets the translate option of non-sanitized html fields to html_translate. Maybe we should investigate for this to be automatic for non-sanitized html fields as well. Thanks to @rco-odoo.
Showing
- addons/event/models/event.py 2 additions, 1 deletionaddons/event/models/event.py
- addons/website_event_track/models/event.py 2 additions, 2 deletionsaddons/website_event_track/models/event.py
- addons/website_hr_recruitment/models/hr_job.py 2 additions, 2 deletionsaddons/website_hr_recruitment/models/hr_job.py
- addons/website_livechat/models/im_livechat.py 2 additions, 1 deletionaddons/website_livechat/models/im_livechat.py
- addons/website_quote/models/order.py 8 additions, 8 deletionsaddons/website_quote/models/order.py
- addons/website_slides/models/slides.py 3 additions, 2 deletionsaddons/website_slides/models/slides.py
Loading
Please register or sign in to comment