[tryton-dev] Error on web client sao

2015-12-04 Thread Diego Abad
Hello, I am testing sao client with an application. One form of my app have a binary field with image widget. When I want to upload a file biggest than 100Kb and try to save the registry, sao show "processing..." message indefinitely. When I upload a file smallest than 100Kb this work. I am us

Re: [tryton-dev] Error on web client sao

2015-12-04 Thread Cédric Krier
On 2015-12-04 09:52, Diego Abad wrote: > Hello, > > I am testing sao client with an application. One form of my app have a > binary field with image widget. > When I want to upload a file biggest than 100Kb and try to save the > registry, sao show "processing..." message indefinitely. > When I

Re: [tryton-dev] Error on web client sao

2015-12-13 Thread Diego Abad
About this topic... BIG_IMAGE_SIZE value is set to Math.pow(10, 6) -> 1MB however apparently the error is that the comparison if (value > Sao.common.BIG_IMAGE_SIZE) is true although my image size is 482kB. I test changing BIG_IMAGE_SIZE to Math.pow(10, 7) and works. But I when I return BIG_I

Re: [tryton-dev] Error on web client sao

2015-12-13 Thread Cédric Krier
On 2015-12-12 01:23, Diego Abad wrote: > About this topic... > > BIG_IMAGE_SIZE value is set to Math.pow(10, 6) -> 1MB > > however apparently the error is that the comparison > if (value > Sao.common.BIG_IMAGE_SIZE) is true > although my image size is 482kB. Did you get this by using a debug

Re: [tryton-dev] Error on web client sao

2015-12-13 Thread Diego Abad
To reproduce the error, I am using: Trytond 3.8.0 Sao from hg -> commit: 9635. The last commit at time Chromium 47.0.2526.80 I debug the code and see that the problem is on call to function String.fromCharCode.apply(null, value) on tryton-sao.js:676 inside Sao.rpc.prepareObject. I found this

Re: [tryton-dev] Error on web client sao

2015-12-13 Thread Cédric Krier
On 2015-12-13 04:28, Diego Abad wrote: > To reproduce the error, I am using: > Trytond 3.8.0 > Sao from hg -> commit: 9635. The last commit at time > Chromium 47.0.2526.80 > > I debug the code and see that the problem is on call to function > String.fromCharCode.apply(null, value) on tryton-sao.