diff options
| author | Jeremy Kersten <jke@odoo.com> | 2019-05-02 12:41:56 +0000 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2019-05-02 12:46:13 +0000 |
| commit | 9c1ad3604e2cc508f9c8fbda9aaf77b9a8fcb82c (patch) | |
| tree | b24b229581d4f1155fd01a9bc86ee729072f2931 /addons/web_editor/static/src/js | |
| parent | f0bc5e0b52710784e0aa49de15ced5e91a4a7145 (diff) | |
[FIX] website_forum: fix translation from faq
Since the refactoring of forum, faq sanitize is set to False.
The editor of the faq can make what he want...
But disable sanitize will break the translation since fields.py has code:
```python
def _setup_attrs(self, model, name):
super(Html, self)._setup_attrs(model, name)
# Translated sanitized html fields must use html_translate or a callable.
if self.translate is True and self.sanitize:
self.translate = html_translate
```
Now we don't become html_translate magically, but we need to specify it
in the field definition direclty.
Courtesy of @mart-e
This commit closes opw-1978662
closes odoo/odoo#33112
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/web_editor/static/src/js')
0 files changed, 0 insertions, 0 deletions
