diff options
| author | nie <nie@odoo.com> | 2020-10-12 08:09:36 +0000 |
|---|---|---|
| committer | nie <nie@odoo.com> | 2020-10-13 13:53:46 +0000 |
| commit | c36acb474f23524e1f67f3606c0a070c0412abe6 (patch) | |
| tree | 7162ec7b1962368f2c1eaa8f0b9535e7d1180c36 /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | 103abd3284cea1723adc0e4b90e57961a4fac2a0 (diff) | |
[FIX] web: Find key in stringified JSON
Steps to reproduce the bug:
- In Projects, switch to the calendar view
- Click a task
Bug:
Traceback here: https://github.com/odoo/odoo/blob/7ba47e7215df69b6556a848532e4f33ef4243e83/addons/web/static/src/js/fields/basic_fields.js#L2181
TypeError: Cannot use 'in' operator to search for 'invisible' in {}
Explanation:
We could change the inherited model of CalendarView from AbstractView to BasicView but it would be adding 400 lines of code to every calendar view. So, for now, and to keep it simple, we just parse the modifiers where it's needed to.
opw:2352436
opw:2352890
opw:2354039
closes odoo/odoo#59867
X-original-commit: 422c52a0823b1a53eeb974e76d08a44cacf4ea0a
Signed-off-by: backspac <backspac@users.noreply.github.com>
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
