Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed: error on Odoo version 13 & 14 #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sambatlim
Copy link

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

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
Copy link
Author

fixed issue #1

@pumppi
Copy link

pumppi commented Dec 26, 2020

Tested with Odoo 14 and these fixes worked well. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants