diff options
| author | Khoi Nguyen <bng@odoo.com> | 2017-07-19 10:22:41 +0200 |
|---|---|---|
| committer | Khoi Nguyen <bng@odoo.com> | 2017-07-19 11:00:39 +0200 |
| commit | f889d3af82011be115f8e384130d25426482e772 (patch) | |
| tree | 2c6b8f34785441052739824156603525402a9eb7 /addons/web/static/src/js/fields | |
| parent | b63e22f50ea8cce8deaa7dcc0d1c5649d2d2880b (diff) | |
[FIX] web: prevent traceback when double-clicking links in modals
Before this revision, double-clicking links in a modal triggered a
traceback. This is because the second click attempts to change the
active view while it is still being changed by the first click (more
precisely, the controller of the active view is undefined on the second
click).
This commit ensures that on_attach_callback is called only if the
controller is defined.
Steps to reproduce the issue fixed by this commit:
1. Open a sales order;
2. Click on a product line;
3. Double-click on the product.
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions
