Closed Fadouchi closed 5 years ago
Please report JS errors while in debug mode with assets. Which module causes this error and on which Odoo version?
Hello,
It takes some times and my PC freeze until the JS report finish i'll update you.
Here's some other infos :
Odoo 12.0-20190128 (Community Edition) MuK Utils : 12.0.1.6.27 MuK Autovacuum : 12.0.2.1.14 MuK Backend Theme : 12.0.1.6.4 MuK Web Utils : 12.0.2.9.7
Hello,
Finally the JS report test is finished, I am not familiar with that and I am not sure how to transfer the data that I got, but I did my best to at least show you the error that I've got.
All data : https://i.imgur.com/darx8gO.png for MuK modules : https://i.imgur.com/tUG2azd.png and https://i.imgur.com/UgG7rFo.png
One point I forgot to mention, is Odoo is hosted on docker container.
Debug with assets mode (most of the time used by developers) It enables all features from normal debug plus some extra. Odoo internally use assets bundles to improve performance which internal merge+minifies all static assets like css and JavaScript. So debug with assets will use actual css and javascript files instead of minifying/merging css and js files. This mode will reduce performance but it will give you proper error message in console if you are doing some JavaScript changes in odoo
Hello,
That's What I did, I activated the debug with assets and run JS report ... and here's the results
All data : https://i.imgur.com/darx8gO.png for MuK modules : https://i.imgur.com/tUG2azd.png and https://i.imgur.com/UgG7rFo.png
Ok now I see what you did: I mean first of all thx for the feedback there is an error in one of the test files. But I don't think its the same error as described on your first post. You don't need to run the JS tests. Just do the same steps and try to reproduce the error by trying to save a file. Since you are in debug mode the console output should be more clear as it will show the correct JS file and not just the asset bundle.
I am sorry If I coud not understand some point ... but here's what I did ..
First, activate debug mode with assets seconde, go to some PO on Odoo and try to open, then modify and here's the error !
Erreur: Uncaught TypeError: Cannot read property 'detach' of undefined
https://www.dislot.com/mail/static/src/js/chatter.js:130 Retraçage : TypeError: Cannot read property 'detach' of undefined at Class.update (https://www.dislot.com/mail/static/src/js/chatter.js:130:36) at Class._renderNode (https://www.dislot.com/mail/static/src/js/form_renderer.js:62:30) at Class.renderNode (https://www.dislot.com/web/static/src/js/core/class.js:123:38) at Function..map._.collect (https://www.dislot.com/web/static/lib/underscore/underscore.js:164:24) at Class._renderTagForm (https://www.dislot.com/web/static/src/js/views/form/form_renderer.js:721:26) at Class._renderNode [as _super] (https://www.dislot.com/web/static/src/js/views/form/form_renderer.js:601:29) at Class._renderNode (https://www.dislot.com/mail/static/src/js/form_renderer.js:66:32) at Class._renderNode (https://www.dislot.com/web/static/src/js/core/class.js:123:38) at Class._renderView (https://www.dislot.com/web/static/src/js/views/form/form_renderer.js:914:26) at Class._render (https://www.dislot.com/web/static/src/js/views/basic/basic_renderer.js:511:21)
Ok great :)
However, i don't see any reference to one of our modules. so i don't think the error is there.
I thought for a second the MuK module is doing something wrong,
I cannot understand why this problem is present as I have an older backup and all is running smoothly,
Thanks for your time :)
Cannot Open/Modify or save any file ! and lately i get this error but when I switch companies or change to superuser mode all works normal !
Uncaught TypeError: Cannot read property 'detach' of undefined https://www.mydomain.com/web/content/101725-51e6e39/web.assets_backend.js:2832 Retraçage : TypeError: Cannot read property 'detach' of undefined at Class.update (https://www.mydomain.com/web/content/101725-51e6e39/web.assets_backend.js:2832:47) at Class._renderNode (https://www.mydomain.com/web/content/101725-51e6e39/web.assets_backend.js:2869:354) at Class._renderNode (https://www.mydomain.com/web/content/97940-a6fab00/web.assets_common.js:3540:371) at Function..map..collect (https://www.mydomain.com/web/content/97940-a6fab00/web.assets_common.js:13:270) at Class._renderTagForm (https://www.mydomain.com/web/content/101725-51e6e39/web.assets_backend.js:1634:18) at Class._renderNode [as _super] (https://www.mydomain.com/web/content/101725-51e6e39/web.assets_backend.js:1626:246) at Class._renderNode (https://www.mydomain.com/web/content/101725-51e6e39/web.assets_backend.js:2870:50) at Class._renderNode (https://www.mydomain.com/web/content/97940-a6fab00/web.assets_common.js:3540:371) at Class._renderView (https://www.mydomain.com/web/content/101725-51e6e39/web.assets_backend.js:1641:1259) at Class._render (https://www.mydomain.com/web/content/101725-51e6e39/web.assets_backend.js:1572:178)