This question has been flagged

I have this module on Odoo v.11, and I upgraded Odoo to v.12.

When I open employee chart view, I get errors. But there aren't errors in v.11

There are two errors in v.12:

Uncaught TypeError: currentController.widget.canBeRemoved is not a functionhttps://outsystems-fi-from-master-staging-321599.dev.odoo.com/web/static/src/js/chrome/action_manager.js:114
Traceback:
TypeError: currentController.widget.canBeRemoved is not a function
    at Class.clearUncommittedChanges [as _super] (https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web/static/src/js/chrome/action_manager.js:114:45)
    at Class.clearUncommittedChanges (https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web_studio/static/src/js/action_manager.js:45:28)
    at Class.clearUncommittedChanges (https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web/static/src/js/core/class.js:123:38)
    at Class.clear_uncommitted_changes (https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web/static/src/js/chrome/abstract_web_client.js:238:36)
    at Class.on_hashchange (https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web_enterprise/static/src/js/web_client.js:176:21)
    at new_handler (https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js:968:21)
    at dispatch (https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web/static/lib/jquery/jquery.js:4641:58)
    at elemData.handle (https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web/static/lib/jquery/jquery.js:4309:63)
Uncaught TypeError: currentController.widget.on_attach_callback is not a functionhttps://outsystems-fi-from-master-staging-321599.dev.odoo.com/web/static/src/js/chrome/action_manager.js:84
Traceback:
TypeError: currentController.widget.on_attach_callback is not a function
    at Class.on_attach_callback (https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web/static/src/js/chrome/action_manager.js:84:38)
    at https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web/static/src/js/core/dom.js:38:22
    at Function._.each._.forEach (https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web/static/lib/underscore/underscore.js:145:9)
    at _notify (https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web/static/src/js/core/dom.js:36:7)
    at Object.append (https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web/static/src/js/core/dom.js:60:13)
    at Class.toggle_home_menu [as _super] (https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web_enterprise/static/src/js/web_client.js:303:17)
    at Class.toggle_home_menu (https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web_studio/static/src/js/home_menu_all.js:65:21)
    at Class.<anonymous> (https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web/static/src/js/core/class.js:123:38)
    at Class.toggle_home_menu (https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web_studio/static/src/js/web_client.js:162:21)
    at Class.toggle_home_menu (https://outsystems-fi-from-master-staging-321599.dev.odoo.com/web/static/src/js/core/class.js:123:38)
Avatar
Discard

can you share the solution if you've got it ?