Skip to Content
Menu
This question has been flagged

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
Discard
Author 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
Discard
Related Posts Replies Views Activity
1
Mar 25
2544
1
Jul 23
1532
0
Aug 22
3593
0
Jul 22
2451
0
Apr 21
5376