Odoo Help

0

0
1 Answer
0
Manuel Switzerland
9/9/19, 5:36 AM

okay, got it
might seem obvious for some ppl, but had to figure it out myself : in a custom module, define a variable like :
var snippetEditor = require('webeditor.snippet.editor');

from there, you can override what you want :

snippetEditor.Editor.include({        cleanForSave: function (parent, target, templateOptions) {            $('.slick-slideshow.slick-initialized').slick('unslick');
            if (this.isDestroyed()) {                return;            }            _.each(this.styles, function (option) {                option.cleanForSave();            });        }    });



I needed to call that "slick" function, so everything is working good now

Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now