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.


What is the meaning of the _ (underscore) in many javascript file?

Pascal Tremblay
on 1/11/16, 8:24 PM 609 views

Hello all,

I'm working since many days in the file odoo-8.0-20151203/openerp/addons/point_of_sale/static/src/js/models.js

For example, in this file, we can find these two lines :

            var all_taxes = _(this.compute_all(product_taxes, base)).flatten();
            _(all_taxes).each(function(tax) {

What is the utility of the _ (underscore) in those lines?

Thank for your help.



| 4 3 5
Hyderabad, India

On 1/12/16, 8:03 AM

Pascal, _(underscore) used in js shows the involvement of a jquery library called Underscore.js you can further refer this link : http://underscorejs.org/


Pascal Tremblay
on 1/12/16, 8:03 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: 1/11/16, 8:24 PM
Seen: 609 times
Last updated: 1/12/16, 8:03 AM