Odoo Help


This community 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.


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

Sebin Siby
on 7/1/16, 6:32 AM 183 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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