Skip to Content
Menú
This question has been flagged
1 Respondre
1895 Vistes

I am trying to inherit the slide.slide.quiz.validation in website_slides to change the label of a button of quiz page in eLearning. No errors are showing upon upgrading my custom module and the website_slides however there are still no changes. I already put the ff:


custom_module > static > src > js > custom_js.js:

odoo.define('custom_module.quiz', function (require) {
    "use strict";
    
    var Quiz = require('website_slides.quiz').Quiz;
    
    
    Quiz.include({
        xmlDependencies: (Quiz.prototype.xmlDependencies || []).concat(
            ["/custom_module/static/src/xml/slide_quiz.xml"]
        )
    });
    });
    


custom_module > static > src > xml> custom_template.xml:




custom_module > views > assets.xml:

 



assets.xml already included in the manifest file. I also inherited the slide.channel model. 


This is the template from website_slides > static > src > xml:


I'm still working on resolving issues in my code, but I've reached a point where I'm stuck. I would appreciate any comments or help you can offer. Thanks in advance.


Avatar
Descartar
Autor Best Answer

It is now solved. I still use the t-operation="replace" to change the Reset button and remove the t-if condition. My doubt is correct regarding the proper loading of custom js. There is just a typo error in declaring in assets.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de març 25
2532
1
de jul. 23
1529
0
d’ag. 22
3584
0
de jul. 22
2445
0
d’abr. 21
5369