Skip to Content
Menu
This question has been flagged
1 Reply
1305 Views

Hello,

I've recently updated my database from odoo 14 to odoo 15.

I've installed the last today version of odoo enterprise 15.

When i want to send a customer invoice by mail, when i click on "send" button, i've this error :


UncaughtPromiseError > TypeError

Uncaught Promise > Cannot read properties of undefined (reading 'endsWith')

TypeError: Cannot read properties of undefined (reading 'endsWith')

at _getMatchedCSSRules (https://www.eccepartner.com/web/assets/18717-2a32d4b/web.assets_backend.min.js:9633:65)

at classToStyle (https://www.eccepartner.com/web/assets/18717-2a32d4b/web.assets_backend.min.js:9585:97)

at toInline (https://www.eccepartner.com/web/assets/18717-2a32d4b/web.assets_backend.min.js:9595:179)

at Class._toInline (https://www.eccepartner.com/web/assets/18717-2a32d4b/web.assets_backend.min.js:9649:231)

at Class.commitChanges (https://www.eccepartner.com/web/assets/18717-2a32d4b/web.assets_backend.min.js:9648:107)

at Class.commitChanges (https://www.eccepartner.com/web/assets/18716-a0e073a/web.assets_common.min.js:4730:371)

at https://www.eccepartner.com/web/assets/18717-2a32d4b/web.assets_backend.min.js:4757:250

at Function._.map._.collect (https://www.eccepartner.com/web/assets/18716-a0e073a/web.assets_common.min.js:154:270)

at Class.commitChanges (https://www.eccepartner.com/web/assets/18717-2a32d4b/web.assets_backend.min.js:4757:184)

at https://www.eccepartner.com/web/assets/18717-2a32d4b/web.assets_backend.min.js:4488:668

What's the problem ?


Thanks for your help,


Ericzen   


Avatar
Discard
Author

It seems that this property is the trouble : --darkreader-inline-bgcolor
who can explain me to assign a type to this property ?

Author Best Answer

After some research, it seems that the error came from this part of code in the file convert_inline.js from Web_editor module.

for (const [key, value] of Object.entries(processedStyle)) {
if (value.endsWith('important')) {
processedStyle[key] = value.replace(/\s*!important\s*$/, '');
}
}; 

after comment this part of code, i can send mail.

But i would like to know the values i need to check to find the one has no type or property.

Thank for your help

Regards,

Eric CATTELIN

Avatar
Discard