Skip to content
Snippets Groups Projects
Commit b2dffa40 authored by Lucas Perais's avatar Lucas Perais
Browse files

[FIX] web: aceField with a value of false


Have a record with a field displayed with the aceField.
That field should have a value of false (ie: unset).
Display that record on a form view.

With the pager, go on to the next record.

Before this commit, a write was triggered because the aceField considered itself as changed
even though we did not do anything.
This was because the value of false was compared to the ace value (empty string) when leaving the record.
Being different, this triggered the current record to be updated and saved.

After this commit, a false value is locally transformed to the empty string when checking if the field has
some changes. Hence, there is no write triggered.

opw-3326914

closes odoo/odoo#121634

Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
parent 96bfd7dd
No related branches found
No related tags found
Loading
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