Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
1916 Weergaven

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
Annuleer
Auteur Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
mrt. 25
2560
1
jul. 23
1564
0
aug. 22
3605
0
jul. 22
2465
0
apr. 21
5385