May 12, 2013

[SOLVED] OpenERP 7 Error: [_.sprintf] expecting number but found array, because of NaN on JQuery

Previously i shared about this case, almost the same with http://febru.soluvas.com/2013/05/solved-openerp-7-error-sprintf.html

well, today i will share more about how to solve

 Error: [_.sprintf] expecting number but found array, because of NaN on JQuery

, in this case it happen because of some argument are empty, so when you do parseFloat it will return NaN type on JQuery.

see this error :
jquery openerp 7 error


For more about NaN, please recite this  http://api.jquery.com/Types/#NaN_and_Infinity

its because of

error on underscore library of openerp 7

the solution is, edit  web/static/lib/underscore/underscore.string.js then add some code to fixed NaN, you can use your own code to solve it, such as parseFloat().val() then check with isNaN() or anything up to you, in my case i show you the traditional solution as below :

openerp 7 underscore error


.
Previously i shared about this case, almost the same with http://febru.soluvas.com/2013/05/solved-openerp-7-error-sprintf.html

well, today i will share more about how to solve

 Error: [_.sprintf] expecting number but found array, because of NaN on JQuery

, in this case it happen because of some argument are empty, so when you do parseFloat it will return NaN type on JQuery.

see this error :
jquery openerp 7 error


For more about NaN, please recite this  http://api.jquery.com/Types/#NaN_and_Infinity

its because of

error on underscore library of openerp 7

the solution is, edit  web/static/lib/underscore/underscore.string.js then add some code to fixed NaN, you can use your own code to solve it, such as parseFloat().val() then check with isNaN() or anything up to you, in my case i show you the traditional solution as below :

openerp 7 underscore error

2 comments: