Just started getting this whenever we try to edit a quote, or add a follower to one. Ideas?
Uncaught SecurityError: Failed to read the 'rules' property from 'CSSStyleSheet': Cannot access rules https://oursite.com/web_editor/static/src/js/transcoder.js:16 Traceback:
Error: Failed to read the 'rules' property from 'CSSStyleSheet': Cannot access rules
at getMatchedCSSRules (https://oursite.com/web_editor/static/src/js/transcoder.js:16:27)
at Object.style_to_class (https://oursite.com/web_editor/static/src/js/transcoder.js:193:5)
at Class.render_value (https://oursite.com/web_editor/static/src/js/backend.js:150:24)
at Class.reinitialize (https://oursite.com/web/static/src/js/views/form_common.js:158:28)
at Class.trigger (https://oursite.com/web/static/src/js/framework/mixins.js:222:31)
at Class.trigger (https://oursite.com/web/static/src/js/framework/mixins.js:272:42)
at https://oursite.com/web/static/src/js/framework/mixins.js:337:22
at Function._.each._.forEach (https://oursite.com/web/static/lib/underscore/underscore.js:150:9)
at Class.set (https://oursite.com/web/static/src/js/framework/mixins.js:318:11)
at Class.test_effective_readonly (https://oursite.com/web/static/src/js/views/form_common.js:422:18
I realized that in a new database the problem doesn't appear until the "mail" module is installed. I don't know what is the cause of this....
Please refer this link.
https://github.com/odoo/odoo/issues/22517
Okay, the solution is to change the code of transcoder.js located in web_editor/static/src/js:
The property "rules" is not well checked.
This line is wrong (around line number 16):
if (sheets[i].rules) {
It has to be changed to this:
if (sheets[i].hasOwnProperty('rules')) {