Odoo Help


How do I inherit the model.js in point of sale module in odoo9?

Sebin Siby
on 7/1/16, 6:32 AM 500 views

I need to modify a function in model.js. I couldn't inherit the .js file in odoo9. How can I inherit the .js file odoo?

Pieter Paulussen
On 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:

    the_function_to_modify: function(){        //don't forget to include function vars!
         // ... do stuff here
         // return if necessary

Thank you Pieter

Sebin Siby
on 7/2/16, 1:16 AM

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.


Odoo Training Center

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

Test it now

Question tools

1 follower(s)


Asked: 7/1/16, 6:32 AM
Seen: 500 times
Last updated: 9/6/16, 9:49 AM