Hello, I am trying to create a new model and display a tree view for its records. Right now I am creating a simple hello world, but am having some problems.
My Module's python code is the following:
And the model's view is:
The menu item with the label "Itens de Cesta" was displayed on the stock module, just as I wanted, but when I click it, expecting to load the model's tree view, I get the following error:
Error:
Uncaught TypeError: Cannot read property 'type' of undefined
http://localhost:8069/web/content/13020-f14d50c/web.assets_backend.js:478
Traceback:
TypeError: Cannot read property 'type' of undefined
at Class.get_default_view [as _super] (http://localhost:8069/web/content/13020-f14d50c/web.assets_backend.js:478:432)
at Class.get_default_view (http://localhost:8069/web/content/13020-f14d50c/web.assets_backend.js:2192:227)
at Class.get_default_view (http://localhost:8069/web/content/12996-d7813a7/web.assets_common.js:3819:371)
at Class.init (http://localhost:8069/web/content/13020-f14d50c/web.assets_backend.js:472:752)
at Class.prototype.(anonymous function) [as init] (http://localhost:8069/web/content/12996-d7813a7/web.assets_common.js:3816:488)
at new Class (http://localhost:8069/web/content/12996-d7813a7/web.assets_common.js:3817:65)
at Object.widget (http://localhost:8069/web/content/13020-f14d50c/web.assets_backend.js:451:80)
at http://localhost:8069/web/content/13020-f14d50c/web.assets_backend.js:449:219
at http://localhost:8069/web/content/12996-d7813a7/web.assets_common.js:802:681
at fire (http://localhost:8069/web/content/12996-d7813a7/web.assets_common.js:796:299)
Can anyone point out what I am missing here?
Thank you!