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

Read more ...

May 3, 2013

[SOLVED] OpenERP 7 Error: [_.sprintf] expecting number but found array

Today, i want to share you about how to Solve Error: [_.sprintf] expecting number but found array on  openERP 7.



From this site http://forum.openerp.com/forum/topic35219.html, they get some, There are probably :

  • This is occurred due to the addition of binary fields to the tree view.
  • After removing the binary fields from the respective the tree view, this error not occurred
  • Additional Info
  • Addition of binary field not supported in editable bottom.
but in my case, its happen because of casting hash of array, you can see below : 


hopefully it helpful...  :D
Read more ...