Smile-SA / odoo_addons

Odoo addons developed by Smile
GNU Affero General Public License v3.0
285 stars 304 forks source link

this.wysiwyg.saveCroppedImages error (Odoo 13 / smile_access_control) #74

Closed nekopep closed 4 years ago

nekopep commented 4 years ago

I've installed odoo CE 13 nightly build 20200228 and your plugin smile_access_control 13.0.1.0

sadly when I try to add a user profile: I just set a profile name and click on save and get this javascript error on debian 10.2

RRetraçage : TypeError: this.wysiwyg.saveCroppedImages is not a function at Class.commitChanges (https://odoo.neko-labs.home/web/content/4844-b94610e/web.assets_backend.js:2581:55) at Class.prototype. (https://odoo.neko-labs.home/web/content/4827-9ce60e3/web.assets_common.js:3866:488) at Class.commitChanges (https://odoo.neko-labs.home/web/content/4844-b94610e/web.assets_backend.js:2635:13) at Class.commitChanges (https://odoo.neko-labs.home/web/content/4827-9ce60e3/web.assets_common.js:3869:371) at https://odoo.neko-labs.home/web/content/4844-b94610e/web.assets_backend.js:1384:235 at Function..map..collect (https://odoo.neko-labs.home/web/content/4827-9ce60e3/web.assets_common.js:115:270) at Class.commitChanges (https://odoo.neko-labs.home/web/content/4844-b94610e/web.assets_backend.js:1384:169) at https://odoo.neko-labs.home/web/content/4844-b94610e/web.assets_backend.js:1367:355

Do i miss something?

nekopep commented 4 years ago

I've created a new database and do not have anymore the issue. I close the issue.

MochSM commented 3 years ago

This because custom modules that use HTML editor, if you face error like that simply upgrade your custom modules.

a0c commented 2 years ago

Upgrading custom modules didn't solve it for me, so I had to delete auto-generated JS/CSS/JS.MAP assets from Attahments (ir_attachments) as described here. The assets were regenerated on next access (just browse Odoo from web) and the error was gone.

MochSM commented 1 year ago

@a0c this solution should not work anymore for newer versions.

hassannnasir commented 1 year ago

@a0c this solution should not work anymore for newer versions. Can you please share a solution if there's any for this error.