diff options
| author | Aaron Bohy <aab@odoo.com> | 2020-03-20 13:03:50 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2020-03-20 13:40:42 +0000 |
| commit | f6c06bd0b87dac11d76a3134eb61c7ef4eb59270 (patch) | |
| tree | 3e029d023fa677ec9b4622d5804af57b562ed51a /addons/hr_gamification/security/gamification_security.xml | |
| parent | 5d86eb64aca928960b3647cd74e5f653dfdf8f8e (diff) | |
[FIX] web: nested x2many with non inline views
Let's assume a form view with an x2many list, containing itself
an x2many field (no widget, so simply displaying the number of
records). When a record of the list is clicked, a form view
opens and displays the same sub x2many field, with widget
many2many_tags. Both list and form views of the x2many aren't
inline (thus have to be fetched on demand).
Before this commit, it crashed when the user clicked on a row
of the x2many list.
The bug has been introduced by a9cebd5a, which wrongly removed the
code handling this specific situation. At least, now we have a
test attesting that this code isn't useless.
Note that the diff isn't as scary as it looks like (we just added
an if/else, and thus indented the former code inside the else
clause).
closes odoo/odoo#48116
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
Diffstat (limited to 'addons/hr_gamification/security/gamification_security.xml')
0 files changed, 0 insertions, 0 deletions
