Skip to content
Snippets Groups Projects
Commit b27c0698 authored by nie's avatar nie
Browse files

[FIX] web: fields info for a specific view can be undefined

Steps:
- Install mrp
- Go to Manufacturing > Master Data > Bills of Materials
- Create a BoM
  - Components:
    - Add a component
- Save
- Click the component
- Close the modal window
- Click the component once more

Bug:
Traceback here:
https://github.com/odoo/odoo/blob/55a6642a9621fa9683895d5d45a015bb04c3017b/addons/web/static/src/js/views/basic/basic_view.js#L147
Error: can't convert undefined to object

Explanation:
As seen on the line just above:
https://github.com/odoo/odoo/blob/55a6642a9621fa9683895d5d45a015bb04c3017b/addons/web/static/src/js/views/basic/basic_view.js#L146


`fieldsInfo` might not have the view we are looking for.

opw:2452142

closes odoo/odoo#65737

Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
parent 98616c46
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment