summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorAdrien Dieudonne <adr@odoo.com>2017-08-09 13:59:21 +0200
committerAdrien Dieudonne <adr@odoo.com>2017-08-10 10:33:05 +0200
commit3a886327a6d39367d0f75140a0297d66e2e7fb23 (patch)
treebe66be000129e450a9172666b977f94acb4b42dd /addons/web/static/src/js/views/basic
parent1e8f6d01ffe324348ce5d75f8643f170f6478657 (diff)
[FIX] pad: don't consider record as dirty
Before this rev., when the user opened a form view containing a pad widget, with a pad url already configured, a dialog directly popped asking "The record has been modified, your changes will be discarded. Are you sure you want to ?". This is because of an unconventional behavior of this widget: the field actually encodes an url, the one of the pad to display. When the user saves, a write is forced so that the server can retrieve the pad's content and store it in DB. To force the write, the widget always notifies a fake change on the url. However, we don't want this change to trigger the confirm dialog. With this rev., this fake change doesn't make the record 'dirty'.
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions