Odoo Help

Welcome!

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.

0

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

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

1

Pawan

--Pawan--
1267
| 4 3 5
Hyderabad, India
--Pawan--


Pawan
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/

Thanks

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)

Stats

Asked: 1/11/16, 8:24 PM
Seen: 690 times
Last updated: 1/12/16, 8:03 AM