diff options
| author | Julien Castiaux <juc@odoo.com> | 2019-05-06 09:49:05 +0000 |
|---|---|---|
| committer | Julien Castiaux <juc@odoo.com> | 2019-05-06 09:59:18 +0000 |
| commit | f79582c1f819fd3751916ae99ee61586038c59a5 (patch) | |
| tree | a5fabb0bd97bebb896d75b5d37ab1d19187878a3 /addons/web/static/src/xml/base.xml | |
| parent | e12b6013d5e52bfbad93dc7fad40f17658490475 (diff) | |
[FIX] mail: prevent record discard on new attachment
Open a record having a chatter, edit a field, add an attachment, leave
the page. The discard warning popup in not shown.
When an attachment is added, it reloads the record to fetch the new
`attachment_message_count`. Reloading the view was discarding the
changes because the `keepChanges` option was not set and defaults to
`false`. The changes were discarded thus the internal `_isDirty` flag
evaluated to `false` thus the popup was not shown as nothing would have
been saved.
The option was set in another `attachment_message_count` reload already,
in `chatter.js@_openComposer`.
opw-1974147
closes odoo/odoo#33180
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
0 files changed, 0 insertions, 0 deletions
