Odoo Help


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

Pascal Tremblay
on 1/11/16, 8:24 PM 1,508 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.

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

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