Skip to content
Snippets Groups Projects
Commit 91a93cd6 authored by niyasraphy's avatar niyasraphy Committed by Abdelouahab (abla)
Browse files

[FIX] web: missing required attribute for html field


To reproduce
============

* referrals -> configuration -> rewards
* try creating a new reward keeping description empty
* here description is required html field
* traceback on clicking save

Problem
=======
in case of html field, `this.data[fieldName]` is an object `Markup{''}`,
so `!this.data[fieldName]` is always `false` as objects are considered
as true value in JS.

Solution
========
in case of html, check the length of the Markup object

opw-3469539

closes odoo/odoo#134119

Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
Co-authored-by: Niyas Raphy <https://github.com/niyasraphy>
parent 70668ee3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment