diff options
| author | David Monjoie <dmo@odoo.com> | 2017-06-19 15:43:59 +0200 |
|---|---|---|
| committer | David Monjoie <dmo@odoo.com> | 2017-06-23 09:58:43 +0200 |
| commit | 3cbfc40303dcc4e5f668050326beb6ff014bf72a (patch) | |
| tree | cd1b6060b289174e1483200b031a2a84216f0074 /addons/web/static/src/js/views/basic/basic_renderer.js | |
| parent | 1192ca10487de40b86655eae1f2646970bc32f05 (diff) | |
[FIX] web: fix m2o with show_address
When the show_address option is enabled, the display_name of a
partner becomes a newline concatenated version of his name and his
address, so the internal value of the widget is this conglomerate.
However, if one uses a keypress that does not change the value of
the input in edit mode, say ESC for example, the keyup handler of
this widget will compare the value in the input with its internal
value. If the internal value is still the conglomerate, which is
the case if the user hasn't changed the input content since
switching in edit mode, we need to trim it to compare it to the
actual input value, which is the "standard" display_name, ignoring
the magic show_address feature which is only used in readonly.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions
