Denis Ledoux
8121f29848
[FIX] web: float seen as changed with digits set to 0
...
Do not check float_is_zero for float fields with
digits specifically set to 0, it means
the rounding precision is infintie for those ones,
and tmp === val is enough.
2015-04-03 16:37:28 +02:00
Denis Ledoux
3636aeb59d
[FIX] web: field on change event
...
This is related to rev. d17f22cde7
Compare float values using float_is_zeor only
if the key is 'value',
meaning the changed value is the actual value of the field,
not another variable of the field (widget, etc.)
For instance, changing the currency_info of a float field
using the monetary widget should not compare the old and new value using
float_is_zero (the values are not even floats).
opw-627166
2015-02-04 13:03:39 +01:00
Denis Ledoux
457b940c0e
[FIX] web: digits is not always defined for float fields in js
...
This rev. is related to d17f22cde7
2015-01-28 18:53:12 +01:00
Denis Ledoux
d17f22cde7
[FIX] web: float compare, float is zero
...
When setting a float field,
the web client rounds the value entered by the user
using the instance.web.round_decimals method.
Nevertheless, this is possible that this method returns unrounded float,
due to the float precision
For example, round_decimals(53.8, 2) returns 53.800000000000004
In order to compare this new float value to the old float value
and check the eventual change),
we need to check if the delta between the two is almost 0.
This is the goal of the float_is_zero method introduced during this rev.
which is comparable to the float_is_zero method
already available in the openerp server, in openerp.tools.
Float values compared using the simple === operator
instead of this float_is_zero method
will be regarded as different in some cases,
according to the float value and the precision
And the value of the field will be regarded as changed,
which can lead to unwanted triggers of onchanges.
opw-626635
2015-01-28 15:09:10 +01:00
Martin Trigaux
48002b3278
[FIX] web: debugger in previous commit
...
Damn you commit -a
2015-01-15 15:38:16 +01:00
Martin Trigaux
fc9ce0bcff
[FIX] website_forum: description not translated
...
Make the field description on a forum translatable and add it in the forum view. opw 619786
2015-01-15 15:37:31 +01:00
Frederic van der Essen
230f55face
[FIX] web: cors rpc calls were missing the session cookie, resulting in new sessions being created for every call
2014-10-27 12:21:04 +01:00
Xavier Morel
62fcce9054
[ADD] JS widgets reference documentation
...
Also fixed Widget#alive's behavior and tested it
2014-10-07 10:21:44 +02:00
Fabien Meghazi
c033b660e8
[ADD] openerp.loadBundle()
...
bzr revid: fme@openerp.com-20140506103649-wrfa25boj2chy6gl
2014-05-06 12:36:49 +02:00
Antony Lesuisse
f051043a26
[MERGE] trunk-website-al
...
bzr revid: al@openerp.com-20140131005202-sjsfy3tc8ys1a325
2014-01-31 01:52:02 +01:00
Fabien Meghazi
b0fa27dc7c
[IMP] Quick fix for cros support in webclient
...
bzr revid: fme@openerp.com-20140130151146-twct15ruxq179ryu
2014-01-30 16:11:46 +01:00
Xavier Morel
36eedfab43
[ADD] JSONify Date objects to a UTC datetime in OpenERP server format
...
This way, the client can send genuine local Date objects without
caring too much, the server will get them in an expected format. This
can then be used by leaving Date objects in domains, and have these
date objects end up correctly in the server without creators of
domains having to manually serialize them to UTC from a local datetime
somehow.
bzr revid: xmo@openerp.com-20140122135426-zm80cj5wm9iebs76
2014-01-22 14:54:26 +01:00
Thibault Delavallée
3d9459ba9d
[MERGE] Sync with trunk
...
bzr revid: tde@openerp.com-20140103151458-8hl5qlmswpxdvd7v
2014-01-03 16:14:58 +01:00
Martin Trigaux
07f2a7c1f9
[MERGE] forward port of latest saas-2 until rev 3893 dle@openerp.com-20131218112416-2vtaq442qo8opq4u
...
bzr revid: mat@openerp.com-20131218165033-4djghawrzllkeckg
2013-12-18 17:50:33 +01:00
Christophe Simonis
7e8a5f7697
[FIX] web: openerpframework.js: do not use _.str
...
openerpframework.js can be used as standalone library (im_livechat uses
it this way) and do not depend on underscore.string.js
bzr revid: chs@openerp.com-20131203132937-ss7hx1gligzai5ch
2013-12-03 14:29:37 +01:00
Christophe Matthieu
60a55f1077
[MERGE] sync with trunk (to rev 3893)
...
bzr revid: chm@openerp.com-20131202151847-4sf0ww58meql0e4z
2013-12-02 16:18:47 +01:00
Christophe Simonis
9f52ab382b
[MERGE] forward port of branch saas-2 up to revid 3887 chs@openerp.com-20131122172422-tsd8wzqkbqknrw1w
...
bzr revid: chs@openerp.com-20131125160506-30uia4pdwzpp54gj
2013-11-25 17:05:06 +01:00
Christophe Simonis
e9c633cb7e
[IMP] web: call call_kw with full route to help debugging
...
bzr revid: chs@openerp.com-20131113184000-3k3dnwl5ftllq2rv
2013-11-13 19:40:00 +01:00
Xavier Morel
a3e4cdef51
[ADD] hacky abort() proxy for json requests
...
bzr revid: xmo@openerp.com-20131113151911-l4f7vlzkcht38nuc
2013-11-13 16:19:11 +01:00
Christophe Simonis
88292396c7
[MERGE] forward port of branch saas-2 up to revid 3865 chs@openerp.com-20131031111945-u3wi11e4rykpslme
...
bzr revid: chs@openerp.com-20131030183314-d75tbpxjjk3u79er
bzr revid: chs@openerp.com-20131031144026-09f3eqfwfj2bcefs
2013-10-31 15:40:26 +01:00
Christophe Simonis
8214e291a9
[FIX] web: correct date and datetime parsing.
...
When creating a new Date object at a specific date, this date is treated as a UTC datetime
then normalized to the browser timezone. This can lead to a change of Year/Month/Day depending
of the chosen date. Using a date of a leap year date for date parsing and forcing UTC date for
datetime parsing correct the month-switch errors in all timezones
bzr revid: chs@openerp.com-20131031133920-yl5z4oz939smwvz8
2013-10-31 08:39:20 -05:00
Christophe Simonis
a48e793355
[FIX] web: correct cookie parsing.
...
avoid reading wrong cookie by matching the whole cookie name
bzr revid: chs@openerp.com-20131107143212-50hrpvkaw3gxxlop
2013-11-07 15:32:12 +01:00
Christophe Simonis
d9ca536396
[FIX] web: correct date and datetime parsing at end of month.
...
As `new Date()` return the current date, when we are the 31,
setting the month to a month with less than 31 days will change
the date to next day (1st of next month). This result to a date(time)
object one month ahead of the wanted date(time).
bzr revid: chs@openerp.com-20131031103333-vt68132ptj9sbr04
2013-10-31 11:33:33 +01:00
niv-openerp
083d3fc91e
Added tests about timeouts and implemented it in jsonprpc2
...
bzr revid: nicolas.vanhoren@openerp.com-20131011133054-0dx3wxqcqbdocnlf
2013-10-11 15:30:54 +02:00
niv-openerp
cfcafee87c
[IMP] Added some documentation in the framwork.
...
bzr revid: nicolas.vanhoren@openerp.com-20131011095424-midppkv5czebt1f2
2013-10-11 11:54:24 +02:00
niv-openerp
a0bac10130
[IMP] added minor feature in Widget to ease development
...
bzr revid: nicolas.vanhoren@openerp.com-20130819092408-rdi91pokwuuy3f5e
2013-08-19 11:24:08 +02:00
niv-openerp
2e6d38f068
[IMP] Moved the date formatting functions in openerpframework.js
...
bzr revid: nicolas.vanhoren@openerp.com-20130808134520-v0n2b29vuffstyu0
2013-08-08 15:45:20 +02:00
niv-openerp
8039768fc8
[IMP] added doc
...
bzr revid: nicolas.vanhoren@openerp.com-20130806132807-rbiafmcqvbh1o79y
2013-08-06 15:28:07 +02:00
niv-openerp
d3a2c47fb1
[IMP] Moved Mutex class to openerpframework.js
...
bzr revid: nicolas.vanhoren@openerp.com-20130806131746-l43mz6aos7eupehm
2013-08-06 15:17:46 +02:00
niv-openerp
e6e5fcde1e
[IMP] Improved shim for function.bind
...
bzr revid: nicolas.vanhoren@openerp.com-20130806130734-lov3aq0m4b1r4sto
2013-08-06 15:07:34 +02:00
niv-openerp
c63a86c593
[IMP] Merged corelib.js and coresetup.js into core.js
...
bzr revid: nicolas.vanhoren@openerp.com-20130806122623-pq6bpkjk65jx0fnp
2013-08-06 14:26:23 +02:00
niv-openerp
cb55e11c70
Put everything in the framework directly in the openerp namespace instead of the openerp.web namespace.
...
bzr revid: nicolas.vanhoren@openerp.com-20130806085812-ek8v8k0x4m7ocu4f
2013-08-06 10:58:12 +02:00
niv-openerp
034e4893d5
Some commas
...
bzr revid: nicolas.vanhoren@openerp.com-20130805151544-pdaebd2o8bh70z7z
2013-08-05 17:15:44 +02:00
niv-openerp
1bd4b62142
Perfected translations integration in the framework
...
bzr revid: nicolas.vanhoren@openerp.com-20130805151012-wnc7wkyiz0eay5oh
2013-08-05 17:10:12 +02:00
niv-openerp
38699e04cf
Copied a part of translation database to openerpframework.js
...
bzr revid: nicolas.vanhoren@openerp.com-20130805145514-uuywlhleyfz2xoj4
2013-08-05 16:55:14 +02:00
niv-openerp
76ef945c96
Corrected some stuff in openerp.web.Model
...
bzr revid: nicolas.vanhoren@openerp.com-20130805134059-3ayw6b0tqqberkaw
2013-08-05 15:40:59 +02:00
niv-openerp
d256d16e3a
Fixed potential security issue + some details
...
bzr revid: nicolas.vanhoren@openerp.com-20130805133309-jds80qa5j5lgwslq
2013-08-05 15:33:09 +02:00
niv-openerp
affb4f0589
Ported model to the framework
...
bzr revid: nicolas.vanhoren@openerp.com-20130805123916-s62upxq3jwqjygt0
2013-08-05 14:39:16 +02:00
niv-openerp
22c56b1dd8
Ported some authentication methods to the Session class
...
bzr revid: nicolas.vanhoren@openerp.com-20130805111250-ws23n3b6os54qsp3
2013-08-05 13:12:50 +02:00
niv-openerp
85b2238472
minor improvements
...
bzr revid: nicolas.vanhoren@openerp.com-20130805101849-rqqx4jcmbymv5hfl
2013-08-05 12:18:49 +02:00
niv-openerp
bd8519abb5
Make it a little bit cleaner to fetch the session_id
...
bzr revid: nicolas.vanhoren@openerp.com-20130802152432-stvg9eed7f6juvq9
2013-08-02 17:24:32 +02:00
niv-openerp
ab03d9c280
Make the three jsonrpc protocols work correctly with and without session overriding and added tests for all the cases.
...
That's one small step for a man, a giant leap for all the poor programmers that would have to use that shit one day.
bzr revid: nicolas.vanhoren@openerp.com-20130802150815-k2yuf0b3ku5fvx7a
2013-08-02 17:08:15 +02:00
niv-openerp
adc722348c
Made the 2-steps jsonp rpc work more or less
...
bzr revid: nicolas.vanhoren@openerp.com-20130802143223-49mf5dayd8ape1a5
2013-08-02 16:32:23 +02:00
niv-openerp
cc04d9463e
Added more tests
...
bzr revid: nicolas.vanhoren@openerp.com-20130801164207-wwv34s2fgtlxbzxz
2013-08-01 18:42:07 +02:00
niv-openerp
dae87b4535
Try to reimplement jsonrpc with niv's methods, still a lot of tests fail
...
bzr revid: nicolas.vanhoren@openerp.com-20130731163415-v6ec0nqsr0qj91a6
2013-07-31 18:34:15 +02:00
niv-openerp
a51e042400
Removed some more references to _.str
...
bzr revid: nicolas.vanhoren@openerp.com-20130731151958-bgc0w02et69mf1ok
2013-07-31 17:19:58 +02:00
niv-openerp
9fef7daead
Added niv's functions to make jsonrpc and removed some references to _.str
...
bzr revid: nicolas.vanhoren@openerp.com-20130731151720-1iiohpkc1f6jqv3o
2013-07-31 17:17:20 +02:00
niv-openerp
d7a9a596a7
Put JSONRpc class in openerpframework
...
bzr revid: nicolas.vanhoren@openerp.com-20130731145623-lxac6w12ocoh2e8e
2013-07-31 16:56:23 +02:00
niv-openerp
aa5c781d90
Removed dependency to underscore.string in openerpframework.js
...
bzr revid: nicolas.vanhoren@openerp.com-20130731144805-9hbxxfbrweb0clhx
2013-07-31 16:48:05 +02:00
niv-openerp
80df99fa18
cosmetic
...
bzr revid: nicolas.vanhoren@openerp.com-20130729093657-p0xdm0nyhg4jn3i7
2013-07-29 11:36:57 +02:00