Olivier Dony
6a38a66d50
[FIX] BufferedDataSet: avoid randomizing results when there are no sort_fields
...
Array.sort is not necessarily stable, and sorting an
array with an unstable sort will cause a randomization
of the original order, which should have been preserved.
See also:
- http://ecma262-5.com/ELS5_Section_15.htm#Section_15.4.4.11
- http://code.google.com/p/v8/issues/detail?id=90
lp bug: https://launchpad.net/bugs/928389 fixed
bzr revid: odo@openerp.com-20120314111014-1igxhrynu5557di5
2012-03-14 12:10:14 +01:00
niv-openerp
011286b863
[fix] removed arbitrary limit in name_search
...
bzr revid: nicolas.vanhoren@openerp.com-20120216103535-txdh6m6nmwlew53o
2012-02-16 11:35:35 +01:00
niv-openerp
cf6b9b6e3e
[fix] complex bug in BufferedDataSet
...
lp bug: https://launchpad.net/bugs/925345 fixed
bzr revid: nicolas.vanhoren@openerp.com-20120214161558-k634bkwbwq0vk58p
2012-02-14 17:15:58 +01:00
niv-openerp
c8912b68d8
[fix] problem with on_changes in the editable lists in o2m
...
bzr revid: nicolas.vanhoren@openerp.com-20120214152031-br1lq6zqx6ycdj7p
2012-02-14 16:20:31 +01:00
niv-openerp
6d17167b36
[fix] problem in BufferedDataSetStatic : should not trigger a on_change when we call create()
...
bzr revid: nicolas.vanhoren@openerp.com-20120213165437-lhs3d6iyvx61vlun
2012-02-13 17:54:37 +01:00
Xavier Morel
a7354829cd
[CNG] make forms worse but pagination not break in case of manyrecords
...
bzr revid: xmo@openerp.com-20120209170748-l70q7grxgsumha2i
2012-02-09 18:07:48 +01:00
Xavier Morel
6ebf8face0
[ADD] sorting support in buffered datasets
...
bzr revid: xmo@openerp.com-20120206103259-nt3wjmt9w9k7kegy
2012-02-06 11:32:59 +01:00
Xavier Morel
7b25f9d4c7
[UP] update underscore
...
bzr revid: xmo@openerp.com-20120206101215-yutyc4dv2p1qgxtu
2012-02-06 11:12:15 +01:00
Xavier Morel
ae273f2414
[IMP] move DataSetSearch#sort to DataSet#sort
...
bzr revid: xmo@openerp.com-20120206094648-1pq0y6oczk8uzzw6
2012-02-06 10:46:48 +01:00
Xavier Morel
ceaf203ce9
[IMP] remove fixed todo
...
bzr revid: xmo@openerp.com-20120130095339-x3cmsfrzxpwtl8u6
2012-01-30 10:53:39 +01:00
Xavier Morel
084bf9fb3f
[FIX] in m2o fields, abort previous name_get when new one (for same field) arrives in order to limit the number of requests in-flight
...
lp bug: https://launchpad.net/bugs/920884 fixed
bzr revid: xmo@openerp.com-20120124141927-wznbkd2tf3mngq31
2012-01-24 15:19:27 +01:00
niv-openerp
c044b70429
[imp] removed identifier_prefix
...
bzr revid: nicolas.vanhoren@openerp.com-20120124151343-t17b3obenv244io3
2012-01-24 16:13:43 +01:00
niv-openerp
3002bd091f
[imp] removed bunch of old stuff in widget
...
bzr revid: nicolas.vanhoren@openerp.com-20120124145810-lr2y8igt9iqzqepn
2012-01-24 15:58:10 +01:00
Xavier Morel
7b38be7370
[FIX] DataSetStatic.read_slice called with no options should not blow up
...
lp bug: https://launchpad.net/bugs/919161 fixed
bzr revid: xmo@openerp.com-20120120124930-zug80i862x9mwu34
2012-01-20 13:49:30 +01:00
Xavier Morel
07a459f2d4
[FIX] trailing commas
...
bzr revid: xmo@openerp.com-20120117132843-obecwigtts1rf9ja
2012-01-17 14:28:43 +01:00
Xavier Morel
88eb2db8f9
[FIX] doc typo
...
bzr revid: xmo@openerp.com-20120111162923-v1icuslj5jtcfme8
2012-01-11 17:29:23 +01:00
Fabien Meghazi
25283f304b
[FIX] Refactoring leftovers
...
bzr revid: fme@openerp.com-20120111084952-n7ghlby6uos5i0nb
2012-01-11 09:49:52 +01:00
Fabien Meghazi
e9ca86dd63
[IMP] More dataset refactoring
...
bzr revid: fme@openerp.com-20120110165451-pvchn668y0b1p645
2012-01-10 17:54:51 +01:00
Fabien Meghazi
f0c294e584
[ADD] Add options arguments to Dataset#read_index in order to provide custom contexts
...
bzr revid: fme@openerp.com-20120110143513-00p14goadekz0y4z
2012-01-10 15:35:13 +01:00
niv-openerp
53144e6ed8
[imp] improved js-side Model class
...
bzr revid: nicolas.vanhoren@openerp.com-20120106104009-67z8ofmo4ndl4651
2012-01-06 11:40:09 +01:00
niv-openerp
666ed25b4d
[imp] simplified buffered dataset
...
bzr revid: nicolas.vanhoren@openerp.com-20120106100331-ouggh486o1zab1vz
2012-01-06 11:03:31 +01:00
niv-openerp
f295808ff1
[imp] replaced many usages of setTimeout by async_when
...
bzr revid: nicolas.vanhoren@openerp.com-20111219162805-0ibqw4hn23imkfuj
2011-12-19 17:28:05 +01:00
Xavier Morel
d8df2d5e17
[FIX] have page view force a return to the previous view if switched to with no record
...
lp bug: https://launchpad.net/bugs/900225 fixed
bzr revid: xmo@openerp.com-20111219125039-049o944efkkl2sk9
2011-12-19 13:50:39 +01:00
Xavier Morel
308c975967
[FIX] static datasets: don't set the index to 0 if there are no ids at all, the form view does not like it
...
lp bug: https://launchpad.net/bugs/899043 fixed
bzr revid: xmo@openerp.com-20111215154100-aspzga71cng767u8
2011-12-15 16:41:00 +01:00
niv-openerp
91909f1927
[imp] now closes dialogs when using client actions
...
bzr revid: nicolas.vanhoren@openerp.com-20111214170356-znxja2f0jekb63a9
2011-12-14 18:03:56 +01:00
Fabien Meghazi
9796aadeb4
[FIX] Dataset#callbutton: assume the last argument is the context
...
bzr revid: fme@openerp.com-20111206172515-dz4rduhcbd26b1e8
2011-12-06 18:25:15 +01:00
Xavier Morel
41e8b3f92c
[FIX] correctly send context during graph's fields_get
...
lp bug: https://launchpad.net/bugs/898636 fixed
bzr revid: xmo@openerp.com-20111206113141-nbfxp0jx4lrgo95g
2011-12-06 12:31:41 +01:00
Fabien Meghazi
5ddb1549d5
[IMP] Dataset#get_id_index returns null instead of -1 when no record found
...
In order to pair with convention on Dataset#index === null for creation mode
bzr revid: fme@openerp.com-20111201142049-xqndd22l7pncfz0j
2011-12-01 15:20:49 +01:00
Fabien Meghazi
b29b6f31a5
[IMP] Use type coercion in Dataset#select_id
...
bzr revid: fme@openerp.com-20111201140831-dth7rx1yny23427c
2011-12-01 15:08:31 +01:00
Xavier Morel
b7dfc8bb45
[FIX] semicolon warnings
...
bzr revid: xmo@openerp.com-20111122101813-61xmoekdio52j1oj
2011-11-22 11:18:13 +01:00
Xavier Morel
89e5c72b6e
[ADD] cache eviction for buffereddataset on records on which call_button has been invoked
...
lp bug: https://launchpad.net/bugs/885679 fixed
bzr revid: xmo@openerp.com-20111121163412-jyvpoa9smrk4qy2g
2011-11-21 17:34:12 +01:00
Fabien Meghazi
5ebcc65fc5
[FIX] Fixed data#read_index() so it returns same argument to callback and to .then()
...
bzr revid: fme@openerp.com-20111117130913-lji983yp8b7vb0do
2011-11-17 14:09:13 +01:00
Xavier Morel
e536b4ace8
[FIX] handling of groups with length 0 in ContainerDataGroup's group descriptor munger
...
For a group with a ${field}_count of 0, code would fallback on __count
which does not exist -> would try to set group.length to `undefined`
which leads to the property being removed from the result, blowing up
the call to `$('<td>').text(group.length)` in the listview (jQuery's
.text() apparently does not like getting `undefined` as its
parameter... who knew?)
Also make `openable` clearer, and improve style of listview in case of
an empty group (openable but length 0): remove the arrow on the left
(but leave the indent, otherwise it's ugly).
lp bug: https://launchpad.net/bugs/889807 fixed
bzr revid: xmo@openerp.com-20111115112906-e87sf40tgr8goqps
2011-11-15 12:29:06 +01:00
Antony Lesuisse
91f050054f
[MERGE] rename Session into connection define a Connection singleton (chs)
...
bzr revid: al@openerp.com-20111108152723-2w6zpksjw4e1yx7q
2011-11-08 16:27:23 +01:00
Christophe Simonis
6f899d86c0
[IMP] rename Session to Connection and create one at initialisation
...
bzr revid: chs@openerp.com-20111027153132-qoj0fiwoj813gsda
2011-10-27 17:31:32 +02:00
vishmita
0259bb7629
[FIX] FF issues in dataset limit.
...
lp bug: https://launchpad.net/bugs/876603 fixed
bzr revid: vja@vja-desktop-20111021120645-qx0en9plxihle0dj
2011-10-21 17:36:45 +05:30
Fabien Meghazi
688cd2730c
[ADD] Added DataSet#select_id()
...
bzr revid: fme@openerp.com-20111020162022-l9wifgvi6qvjb5a2
2011-10-20 18:20:22 +02:00
Xavier Morel
2915308f6c
[REV] xmo@openerp.com-20111013124912-wton5lidyvaezsj6 see: niv
...
bzr revid: xmo@openerp.com-20111017061554-ijg5uwg2val9hu2h
2011-10-17 08:15:54 +02:00
Xavier Morel
322d20d53c
[FIX] when performing name_get on m2o fields being written to BufferedDataSet, ignore m2o fields with 'false' value as well as those not being written at all
...
bzr revid: xmo@openerp.com-20111013125858-pboz81w3s58lk2rl
2011-10-13 14:58:58 +02:00
Xavier Morel
88314e523a
[FIX] excessive coherence between BufferedDataSet cache and to_write and to_create queues ~/projects/tiny/web/current
...
cache should hold readable values (so pairs for m2o fields), whereas
to_create and to_write hold the data which will be processed into o2m
commands and sent over the wire to create, write and context-value
calls. As a result, to_create and to_write should only have atomic ids
for m2o fields.
Therefore, only use fixed m2o values to store in read cache.
bzr revid: xmo@openerp.com-20111013124435-vbjolacjnc9f6qz4
2011-10-13 14:44:35 +02:00
Xavier Morel
3580fb918d
[FIX] inconsistency between multiple m2o fields to name_get and single when sent to $.when
...
bzr revid: xmo@openerp.com-20111013124227-at1nvix8yqtae8a9
2011-10-13 14:42:27 +02:00
Xavier Morel
7da8126ad9
[FIX] BufferedDataSet to not break the m2o read contract of returning a name_get format
...
BufferedDataSet simply shoves stuff read() or create()d in its cache,
but m2o is asymmetric: client writes a single id, but reads a pair of
[id, name].
Since create() and write() are async (by definition) it's the best
place to check if the data being written contains any m2o field, and
to fix those m2o values.
This, however, completely breaks o2m fields get_value(), and doesn't
even work correctly for create() calls.
Should probably not cache the same thing we put for creation or update
eh
bzr revid: xmo@openerp.com-20111013114449-rkhe95g1oi3gudab
2011-10-13 13:44:49 +02:00
niv-openerp
b819542c8f
[fix] problem with form view, does not prevent multiple creates/saves
...
bzr revid: nicolas.vanhoren@openerp.com-20111011153535-ojo8qqpzlg3ap9fy
2011-10-11 17:35:35 +02:00
niv-openerp
5cdf82dd0a
[fix] problem in idea view
...
bzr revid: nicolas.vanhoren@openerp.com-20111010150012-pty14q4z54zdtgvu
2011-10-10 17:00:12 +02:00
niv-openerp
9857cb60fa
[imp] removed asynchronous operations in buffered dataset, "l'amour du risque, papapalapapapa"
...
bzr revid: nicolas.vanhoren@openerp.com-20111010141804-zc6t2sr60twz6r4s
2011-10-10 16:18:04 +02:00
niv-openerp
fa9df495ef
[fix] forgot some things
...
bzr revid: nicolas.vanhoren@openerp.com-20111010124516-5vtzop9sbr5z78r0
2011-10-10 14:45:16 +02:00
niv-openerp
33b4285d17
[imp] improved conceptually the preceding fix regarding o2m
...
bzr revid: nicolas.vanhoren@openerp.com-20111010124044-8c02gdeddceq78du
2011-10-10 14:40:44 +02:00
niv-openerp
5e417f203a
[imp] improved popup for m2o to support usage of buttons while creating a row
...
bzr revid: nicolas.vanhoren@openerp.com-20111010094438-33drycp4l7o1vnzt
2011-10-10 11:44:38 +02:00
niv-openerp
c3d08fa5dd
[fix] problem with o2m displaying clickable button in unsaved record
...
bzr revid: nicolas.vanhoren@openerp.com-20110930154612-d2q5z3fy1ouih1fm
2011-09-30 17:46:12 +02:00
niv-openerp
e43790f7f2
[imp] refactoring to improve the way the components are destroyed
...
bzr revid: nicolas.vanhoren@openerp.com-20110928151613-8suxvi1rzn9t40gd
2011-09-28 17:16:13 +02:00