This question has been flagged
1 Reply
1978 Views

When clicking on a product in the Lots/Serial number list return :


Error: instance[methodName] is undefined
willStart/web.assets_common.js:4317:66
_.forEach@http://localhost:8069/web/content/20831-5cbcc0b/web.assets_common.js:108:566
willStart/web.assets_common.js:4317:21



However if I activate developer mode with assets, that works perfectly.



I use docker image FROM debian:buster-slim in Ubuntu 18.04
Avatar
Discard
Author Best Answer

ODOO update problem:

Odoo was very outdated. When we update it, we can't get the web_editor module to update, it returned a fault.

Part of the /static/src/js/wysiwyg/root.js file previously said:

publicMethods: ['isDirty', 'save', 'getValue', 'setValue', 'getEditable', 'on', 'trigger', 'focus'],

Now: 

publicMethods: ['isDirty', 'save', 'getValue', 'setValue', 'getEditable', 'on', 'trigger', 'focus', 'saveCroppedImages']

In order to update the web_editor module, we first had to update modules that depend on it, such as Stock or Account.


That solved the problem, we were able to update web_editor and the 

Error: instance [methodName] is undefined 

did not appear again when we clicked on an element of a list.

Avatar
Discard