跳至內容
選單
此問題已被標幟
1 回覆
1927 瀏覽次數

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.


頭像
捨棄
作者 最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
3月 25
2564
1
7月 23
1584
0
8月 22
3611
0
7月 22
2476
0
4月 21
5389