diff options
| author | Géry Debongnie <ged@odoo.com> | 2017-07-26 11:27:11 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2017-07-27 11:34:04 +0200 |
| commit | 72ed3a153a1f4c718fee33ac8550298e8a29f6cd (patch) | |
| tree | cdc06e861ab8ad9a0c221f8ea6ba1093e857f295 /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | 3d6420d4b3f062f12d7c18d7d9a976e2299b3444 (diff) | |
[FIX] web,pad: record is not considered dirty when pad is loaded
The pad widget does something unconventional: it creates the pad url
only when rendering in edit mode. This was done to prevent creating pad
by default for record in readonly mode.
Because of that, if the user clicks on create, then discard, the record was
considered dirty, so a confirmation modal popped up. In this commit, we
just make sure that the initial setValue from the rendering does not
'dirty' the record.
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
