Odoo Help

0

2
3 Answers
0
Sajad KK
5/20/14, 2:35 AM

Finally i got it working, here is my code

start: function() {

            var self = this;
            this.field_manager.has_been_loaded.done(function() {
                $('#rateit').rateit({
                    value: 0,
                    resetable: false
                });
                self.field_manager.on("change:actual_mode", self, self.check_actual_mode);
                self.check_actual_mode();
            });

 },
 
 check_actual_mode: function(source, options) {
    var self = this;
    if(self.field_manager.get("actual_mode")=='view'){
        $('#rateit').rateit('readonly',true);
    }
    else {
        $('#rateit').rateit('readonly',false);
    }
}

0
Ahmad farahat
11/2/18, 7:19 AM

please Does anyone has the solution of this?

0
George Vincent
7/14/16, 8:34 AM

Hi Sajad,

I have created a widget but with out clicking edit button i am able to give input to it. I tried to use your code but it tells me rateit method not found. What to give inside rateit ?.

Please help me i am struck 

Ask a Question
Writer
Keep Informed
3 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now