Odoo Help

3

1
1 Answer
2
Pieter Paulussen Belgium
7/1/16, 9:44 AM

You should first import the models using this statement:

var models = require('point_of_sale.models');

Then you can alter a specific function using:

models.TheWidgetThatContainsTheFunction.include({
    the_function_to_modify: function(){        //don't forget to include function vars!
         this.super();
         // ... do stuff here
         // return if necessary
    },
});


1 Comment
Sebin Siby India
7/2/16, 1:16 AM

Thank you Pieter

Ask a Question
Writer
Keep Informed
1 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