Skip to Content
Menu
This question has been flagged
1 Reply
2341 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
Related Posts Replies Views Activity
2
Aug 24
3627
1
Oct 22
2320
4
Oct 21
5471
1
Apr 18
3297
2
Jun 17
4596