diff options
| author | Julien Mougenot <jum@odoo.com> | 2020-04-22 08:18:42 +0000 |
|---|---|---|
| committer | Julien Mougenot <jum@odoo.com> | 2020-04-22 15:11:02 +0000 |
| commit | dd9627120834961a546df3017fd7f2595e4762aa (patch) | |
| tree | 49d76b854f97442686d775e13d69eca0938a6f1e /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 97bc3717adb26bc459a61456228e8fae5f63fc2a (diff) | |
[FIX] web: handle empty notebooks in form views
Before this commit, when re-activating a previously active notebook tab, the form
renderer would assume that a tab was actually active. However this does not happen
if no tab is visible or defined and it results in a crash instead.
Now, if no active tab is found, a default active tab (0 = first) is set. This only
helps to prevent the crash and does not affect the current behaviour.
closes odoo/odoo#50006
X-original-commit: 73e0c0a1395ebd0e2b4ac7f857c863a0358c5e17
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Julien Mougenot (jum) <jum@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
