Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1905 Vistas

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 Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
1
mar 25
2547
1
jul 23
1537
0
ago 22
3596
0
jul 22
2454
0
abr 21
5377