Polymorphe57 / hello_world_view_code

This repository contains the code of the hello world view that was presented at the Odoo Experience 2018 during the talk entitled "Visualizing Data in Odoo: How to Create a New View".
10 stars 10 forks source link

fixed: error on Odoo version 13 & 14 #2

Open sambatlim opened 3 years ago

sambatlim commented 3 years ago

fixed view error on odoo version 13 & 14 due to there is the absent of ControlPanel and SearchPanel:

Traceback:
TypeError: Cannot read property 'modelExtension' of undefined
    at Class.init (http://localhost:8069/web/static/src/js/views/abstract_view.js:201:72)
    at Class.prototype.<computed> [as init] (http://localhost:8069/web/static/src/js/core/class.js:90:38)
    at Class.init (http://localhost:8069/hello_world_view/static/src/js/hello_world_view.js:118:21)
    at Class.prototype.<computed> [as init] (http://localhost:8069/web/static/src/js/core/class.js:90:38)
    at new Class (http://localhost:8069/web/static/src/js/core/class.js:107:33)
    at Class._createViewController (http://localhost:8069/web/static/src/js/chrome/action_manager_act_window.js:191:24)
    at http://localhost:8069/web/static/src/js/chrome/action_manager_act_window.js:306:43
sambatlim commented 3 years ago

fixed issue #1

pumppi commented 3 years ago

Tested with Odoo 14 and these fixes worked well. Thanks