| Age | Commit message (Collapse) | Author |
|
This commit introduces a new module system for the javascript code.
Instead of using global (namespaced) variables everywhere (like
openerp.web.whatever, ...), each file declare one (or more) module
with its dependencies. Each module will be loaded after its
dependencies, and will be given a reference to the return values.
This change is a massive departure from the way the client worked
previously. It will sadly break some/most history, but I am sure that
the future git ecosystem will allow you to easily browse the history
past this revision (one can dream).
This commit feature:
* main namespace is now odoo instead of openerp
* a way to define modules and dependencies (inspired by requirejs)
* many files have been splitted in simpler subfiles
* basic support for debugging in odoo.__DEBUG__
* no global variable (i.e. nothing in window.openerp)
* many bug fixes, many new bugs
Future vision: this modularization should simplify future code
development, simplify debugging and will allow a serious testing effort
|
|
|
|
|
|
|
|
When converting a datetime field to date, using the widget date,
the date time value was just cropped, removing the hours,
therefore ignoring the user time zone.
For instance, if the user was in UTC + 1, for a date time 02/02/2015 00:30:00,
applying the widget date on this datetime had as result 02/01/2015,
due to the fact the UTC value of the datetime field was 02/01/2015 23:30:00
fixes #4420
opw-621281
|
|
ignore .po and .pot changes
|
|
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
|
|
|
|
|
|
If the date format language was changed to invert month & day values (so, changed to the classic european format instead of the american format)
Then, when entering manually a datetime without the time (so just '01/02/2014' instead of '01/02/2014 00:00:00', the day and month were inverted (the datetime was set to 02/01/2014 instead of 01/02/2014) because the datetime entered did not exactly match the date + time pattern.
We therefore added a fallback case, to test to parse the value with the date pattern alone (without the time)
|
|
|
|
is set to zero
|
|
|
|
char added at the end of the server date format
|
|
|
|
|
|
|
|
|
|
e2201369a314feaec70a485f0459c1dcdcecd82b
|
|
When attempting to parse client date, value is not always a string.
We force the toString when adding the leading 0, as the replace method is for string
|
|
|
|
|
|
63ea0df73ffd6bf659b2ef29cdc3d3387bec92ac
|
|
Wwhen parsing a integer field, do not accept float values. '1' or '1.0' is ok but not '1.1'. (opw 608544)
|
|
Following the remove of widget selection handling in ir_ui_view of revision 4854.4.298 revid:al@openerp.com-20140121112759-zavwqdyv8kdq4oys
bzr revid: dle@openerp.com-20140218162125-bwse328ybq9d6c2v
|
|
launchpad_translations_on_behalf_of_openerp-20140318062141-rdiqz2ptnz3qmxd0
bzr revid: chs@openerp.com-20140129095637-mbfz82r5pyz4dctc
bzr revid: dle@openerp.com-20140210140818-5mtk1qhheo219bm1
bzr revid: dle@openerp.com-20140214114445-krexrwm9o2nrxepk
bzr revid: mat@openerp.com-20140219111353-cxo860z7ctz7om30
bzr revid: dle@openerp.com-20140221120519-1pj3wc8kqgkr5uda
bzr revid: chs@openerp.com-20140318112743-tqv492026y2pnbff
|
|
bzr revid: mat@openerp.com-20140121142625-fy8zkafcvb9wwz88
|
|
bzr revid: mat@openerp.com-20140121135058-cr3ivak97rqm6npo
|
|
datetime string as would make timezones apply and lead to a possible day change
bzr revid: mat@openerp.com-20140121132725-k9f8hna3lg7nq7g8
|
|
empty values
bzr revid: mat@openerp.com-20140117113141-i95ncy04azzmahqk
|
|
revid:chs@openerp.com-20140116154645-sy4zhdgqc48xaqbx
bzr revid: dle@openerp.com-20131224112612-5gjit5uu1aaaqstx
bzr revid: dle@openerp.com-20140103094532-mbczi9ssr3gc90o1
bzr revid: dle@openerp.com-20140108105833-gblxqdw3if1gt35k
bzr revid: dle@openerp.com-20140115121441-bskbyxxbc09ubavh
bzr revid: dle@openerp.com-20140115165506-yuux9km39gbv7k4n
bzr revid: dle@openerp.com-20140116161415-0y9m0kgavcytzj9z
|
|
value to false or infinity: return value_if_empty parameter
bzr revid: mat@openerp.com-20140113172347-00anf6lh2jxin84w
|
|
Still has some retro-compatibility for other addons.
bzr revid: nicolas.vanhoren@openerp.com-20130806125022-bzjbtn0nqk40ak4g
|
|
bzr revid: nicolas.vanhoren@openerp.com-20130725103301-65nld10p1if7k0zt
|
|
bzr revid: nicolas.vanhoren@openerp.com-20130725100749-0i82gf3k3nvt4r44
|
|
financial computations
lp bug: https://launchpad.net/bugs/1157761 fixed
bzr revid: fva@openerp.com-20130409144414-nqnmkny5cxrmyru1
|
|
bzr revid: pan@tinyerp.com-20130122060420-7cho7hewmj80mb16
|
|
Maybe some missed, but most of them marked.
bzr revid: tsabi-20121129002200-20tppzvh0ap5tfwe
|
|
lp bug: https://launchpad.net/bugs/1077858 fixed
bzr revid: fme@openerp.com-20121112171128-a1aoq2q4fma6fpxc
|
|
bzr revid: nicolas.vanhoren@openerp.com-20121015135607-j2c3dedpxaiuivd3
|
|
bzr revid: nicolas.vanhoren@openerp.com-20121015125123-cyosgswtdxgtcom7
|
|
bzr revid: xmo@openerp.com-20120928113524-1jw0uj3nccupcjjq
|
|
simpler to override in order to have new list field widgets
bzr revid: xmo@openerp.com-20120808103404-jj6w04x2mp2lrwl1
|
|
bzr revid: xmo@openerp.com-20120807134343-ch16bcp5s7goqxsl
|
|
bzr revid: fme@openerp.com-20120627141249-o10e2htxqtio72l7
|
|
parameter
bzr revid: nicolas.vanhoren@openerp.com-20120621124123-novg5wadwvvcbrkt
|
|
Beltrán
bzr revid: xmo@openerp.com-20120607101329-aq0caswlxamd8z0n
|
|
lp bug: https://launchpad.net/bugs/994589 fixed
bzr revid: vme@tinyerp.com-20120524071327-zb7i8qiccw6ith8y
|
|
according to xmo@openerp.com tips.
bzr revid: wbeltran@infostudio.com.ec-20120515132406-950ekkzyi3nq7jmp
|
|
revid:nicolas.vanhoren@openerp.com-20120418145003-vk8kkfgyp0y94hzm
bzr revid: xmo@openerp.com-20120511113222-o4vj35vscnbebvh8
|