Skip to Content
Menu
This question has been flagged
2 Replies
1181 Views

Odoo 15 javascript errors when: 

- when editing and trying to save some of the email templates

- when I try to crop the image in the text editor


Example 1: Javascript error when editing and saving the "User: New rank reached" email templates. 

UncaughtPromiseError > TypeError

Uncaught Promise > undefined is not an object (evaluating 'value.endsWith')

TypeError: undefined is not an object (evaluating 'value.endsWith')
    _getMatchedCSSRules@https://mydomain/web/assets/932-2f38457/web.assets_backend.min.js:9631:64
    classToStyle@https://mydomain/web/assets/932-2f38457/web.assets_backend.min.js:9583:116
    toInline@https://mydomain/web/assets/932-2f38457/web.assets_backend.min.js:9593:191
    _toInline@https://mydomain/web/assets/932-2f38457/web.assets_backend.min.js:9647:239
    commitChanges@https://mydomain/web/assets/932-2f38457/web.assets_backend.min.js:9646:116
    @https://mydomain/web/assets/931-3a53d88/web.assets_common.min.js:4730:376
    @https://mydomain/web/assets/931-3a53d88/web.assets_common.min.js:154:278
    commitChanges@https://mydomain/web/assets/932-2f38457/web.assets_backend.min.js:4755:187
    promiseReactionJob@[native code]

Example 2: here is the error I get when trying to crop an image inside a forum post text editor

Uncaught Javascript Error > null is not an object (evaluating 'this.cropper.parentNode.removeChild')
TypeError: null is not an object (evaluating 'this.cropper.parentNode.removeChild')
    unbuild@https://mydomain/web/assets/876-b2ed60d/1/web_editor.assets_wysiwyg.min.js:264:75
    uncreate@https://mydomain/web/assets/876-b2ed60d/1/web_editor.assets_wysiwyg.min.js:264:213
    destroy@https://mydomain/web/assets/876-b2ed60d/1/web_editor.assets_wysiwyg.min.js:191:14
    @https://mydomain/web/assets/876-b2ed60d/1/web_editor.assets_wysiwyg.min.js:270:89
    each@https://mydomain/web/assets/915-d1b7b69/1/web.assets_common_lazy.min.js:1352:174
    jQueryCropper@https://mydomain/web/assets/876-b2ed60d/1/web_editor.assets_wysiwyg.min.js:268:28
    destroy@https://mydomain/web/assets/876-b2ed60d/1/web_editor.assets_wysiwyg.min.js:1159:886
    @https://mydomain/web/assets/915-d1b7b69/1/web.assets_common_lazy.min.js:4585:493
    _onDocumentMousedown@[native code]

Avatar
Discard
Best Answer

May you try to instal the below packages once,

sudo apt-get install nodejs npm -y

sudo npm install -g rtlcss 


then restart Odoo

Avatar
Discard
Author Best Answer

After much investigation, this appears to be a Odoo 15 bug and not my installation issue.

Avatar
Discard

if you are able to reproduce the same in odoo runbot, report it in odoo github issues