summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/backend/convert_inline.js
diff options
context:
space:
mode:
authorJason Van Malder <jvm@odoo.com>2020-01-30 08:16:33 +0000
committerJason Van Malder <jvm@odoo.com>2020-01-31 17:20:34 +0000
commitcf2f53e4cf4e8f5e2e2d23c5aaf4554630be68c8 (patch)
treea71673dfbb77e8b11737acd37ba02b9e6cf5e9a2 /addons/web_editor/static/src/js/backend/convert_inline.js
parent58732e4dc80234f9fdbf560101aac8a40ddd325c (diff)
[FIX] web_editor: fix required html fields
Issue - Studio - Add an required html field - Create new record - Leave it empty It is saved Cause The isSet function of FieldHtml widget, have a "/" in the <br> tag and summernote empty = <p><br></p>. If you add a space, the value becomes <p>&nbsp;&nbsp; <p>. Solution Remove the "/" and the spaces, check if value != <p></p> && <p><br></p> OPW-2183687 closes odoo/odoo#44427 X-original-commit: c984b1b1210cea1e63f3bc66cec2120554c76c2a Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src/js/backend/convert_inline.js')
0 files changed, 0 insertions, 0 deletions