Fabien Meghazi
26fc266429
[ADD] Kanban: Added support for read_group's __fold
...
bzr revid: fme@openerp.com-20120906165354-my4nps0822vbrn9d
2012-09-06 18:53:54 +02:00
Fabien Meghazi
42dd77b782
[FIX] Debug: view_fields
...
bzr revid: fme@openerp.com-20120816173950-9o6e0m2q7alfwh5d
2012-08-16 19:39:50 +02:00
Fabien Meghazi
cc406bc692
[WIP] Added group_by_field
...
bzr revid: fme@openerp.com-20120814213708-zkm05nkr1pdf8qbu
2012-08-14 23:37:08 +02:00
Fabien Meghazi
2b0fcb7775
[WIP] groups drag'n drop + resequence
...
bzr revid: fme@openerp.com-20120814195316-j66wn6yxta6yj0w9
2012-08-14 21:53:16 +02:00
Christophe Simonis
63e4d9b572
[IMP] sed -i '' -e 's/connection/session/g'
...
bzr revid: chs@openerp.com-20120814152900-8r84kyz0qy1hwkvz
2012-08-14 17:29:00 +02:00
niv-openerp
183b85f750
[IMP] Removed OldWidget in data.js
...
bzr revid: nicolas.vanhoren@openerp.com-20120814133107-prmdonwh6f7gu276
2012-08-14 15:31:07 +02:00
niv-openerp
2c57c15491
[IMP] Mass rename \t to 4 spaces
...
bzr revid: nicolas.vanhoren@openerp.com-20120802144623-ykl5te005ytnv584
2012-08-02 16:46:23 +02:00
niv-openerp
ab21c9ac81
[imp] improved AbstractFormPopup
...
bzr revid: nicolas.vanhoren@openerp.com-20120516130142-quyvtv0s35uvbuug
2012-05-16 15:01:42 +02:00
niv-openerp
57894a5361
[imp] created AbstractFormPopup
...
bzr revid: nicolas.vanhoren@openerp.com-20120516115856-p0tjpkfewq1y8ez8
2012-05-16 13:58:56 +02:00
Xavier Morel
e7ab44929f
[MERGE] from trunk
...
bzr revid: xmo@openerp.com-20120419081213-m3fhofkgydj6gp1m
2012-04-19 10:12:13 +02:00
niv-openerp
0cccd29dcc
[imp] refactored data.js
...
bzr revid: nicolas.vanhoren@openerp.com-20120417115533-w0wfyon5fn1kk5jn
2012-04-17 13:55:33 +02:00
Xavier Morel
7353e02e2e
[MERGE] from trunk
...
bzr revid: xmo@openerp.com-20120322143331-iajlifomw1hohbht
2012-03-22 15:33:31 +01:00
Xavier Morel
514c63288c
[FIX] change dataset.read_index to be implemented in terms of dataset.read_ids, not in terms of model.first() as not all model data is kept/transferred (filters are not bubbled?)
...
bzr revid: xmo@openerp.com-20120322142540-x3j9p7kub2px6p6v
2012-03-22 15:25:40 +01:00
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
Xavier Morel
d05add0c7d
[FIX] length management in dataset when items are removed from list view
...
bzr revid: xmo@openerp.com-20120306163841-4ko7el1t54xwguxr
2012-03-06 17:38:41 +01:00
Xavier Morel
8b13a99967
[FIX] handling of _count in queries: it can be 0, which is valid but falsy
...
bzr revid: xmo@openerp.com-20120306161358-py6zz2bts9b3cb1x
2012-03-06 17:13:58 +01:00
Xavier Morel
075ac184f8
[FIX] recursive grouping
...
bzr revid: xmo@openerp.com-20120306160558-sq5r7a4d7ks4g33b
2012-03-06 17:05:58 +01:00
Xavier Morel
2864ffb5ae
[FIX] DataSet created in/from datagroups
...
bzr revid: xmo@openerp.com-20120306155550-be04x4q21pt58t5h
2012-03-06 16:55:50 +01:00
Xavier Morel
b48fddcc81
[IMP] make Query#order_by more resilient to somebody passing 'undefined'
...
bzr revid: xmo@openerp.com-20120306150945-86358u7atgyevb52
2012-03-06 16:09:45 +01:00
Xavier Morel
1465730531
[FIX] call_button implementation in model
...
bzr revid: xmo@openerp.com-20120306145741-wi9xk2c4e18fab2z
2012-03-06 15:57:41 +01:00
Xavier Morel
79f79deec1
[FIX] "bzr cdiff" operator binds tighter than "instanceof", remember to parenthesize "instanceof" calls before negating them
...
bzr revid: xmo@openerp.com-20120306145029-pckye3yoig2xlhh8
2012-03-06 15:50:29 +01:00
Xavier Morel
c1ec7b1938
[REM] debug logging
...
bzr revid: xmo@openerp.com-20120302155324-v3ju1lcioiw2s9el
2012-03-02 16:53:24 +01:00
Xavier Morel
9b0cc92b66
[ADD] grouping to the Model/Query API, but filtering looks completely broken
...
bzr revid: xmo@openerp.com-20120302154759-8ihi5p1ffygiyhw3
2012-03-02 16:47:59 +01:00
Xavier Morel
2c2df2b325
[FIX] Model#call not working correctly if the second argument (after method) is the kwargs
...
bzr revid: xmo@openerp.com-20120302100742-p1wrg44ght8d3cdy
2012-03-02 11:07:42 +01:00
Xavier Morel
1aed1963c0
[REM] horrible hack of a query-aborting API, use DropMisordered instead
...
DropMisordered does not abort late requests, but provides a better and simpler API if 'late' requests
(resolved after those following them) should just be ignored
bzr revid: xmo@openerp.com-20120302083941-pm43lag22bfac8g4
2012-03-02 09:39:41 +01:00
Xavier Morel
190eb339fa
[ADD] replacement for current aborter/abort_last hack: UDP-style handler of mis-ordered requests
...
* By default, ignores (refuses to resolve) mis-ordered request when they come back
* Optionally, fails them
bzr revid: xmo@openerp.com-20120301152315-67kbkdwpy7cdh25y
2012-03-01 16:23:15 +01:00
Xavier Morel
9022aae8cb
[ADD] core Traverser API
...
There are still questions over how it'll work, and if it can work at all
bzr revid: xmo@openerp.com-20120301102117-zxd89ffcvo2n32nw
2012-03-01 11:21:17 +01:00
Xavier Morel
739d1c7363
[ADD] basic docstrings to Query and Model
...
bzr revid: xmo@openerp.com-20120228132832-pf16do6611fcwrj1
2012-02-28 14:28:32 +01:00
Xavier Morel
f26eff28a9
[FIX] typos
...
bzr revid: xmo@openerp.com-20120228130321-rzxy8axbqtnjr1ze
2012-02-28 14:03:21 +01:00
Xavier Morel
e6f5d4c211
[ADD] Model API, reimplement DataSet/DataSetSearch on top of it (as much as possible)
...
TODO: traversal state API, removing even more method (e.g. completely remove DataSet.call in the Python API)
bzr revid: xmo@openerp.com-20120227135626-yxqh0gc6jwrdkshs
2012-02-27 14:56:26 +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
niv-openerp
78cdb8d1ab
[fix] problem in o2m form view with read only fields, now saves result of default_get
...
bzr revid: nicolas.vanhoren@openerp.com-20110926160057-zss7934ji5hhtq44
2011-09-26 18:00:57 +02:00
Xavier Morel
e70ebcab8d
[ADD] ability to hide menu help, only this or all help sections
...
bzr revid: xmo@openerp.com-20110914100833-fo4arcaa92zu1361
2011-09-14 12:08:33 +02:00
niv-openerp
e10fbbe555
[fix] problem in o2m when creating a record (hope this wont make something else crash)
...
bzr revid: nicolas.vanhoren@openerp.com-20110912155837-ersyabu3jzc62wax
2011-09-12 17:58:37 +02:00
Xavier Morel
127364adca
[IMP] fix more jsdoc to not have any global extracted in jsdoc
...
bzr revid: xmo@openerp.com-20110912120604-ojzbfhjkobgoueo6
2011-09-12 14:06:04 +02:00
Xavier Morel
bd5ee5973f
[FIX] jsdoc v3 fixes: @constructs needs an explicit name, @lends is mandatory to not make free-floating methods (interpreted as globals)
...
bzr revid: xmo@openerp.com-20110912103503-0gpou4t50i2stycp
2011-09-12 12:35:03 +02:00
Xavier Morel
b7ccdadc17
[FIX] same signature change as xmo@openerp.com-20110908111024-qfr6xlrw9ecy7m6y, but on ReadOnlyDataSetSearch
...
bzr revid: xmo@openerp.com-20110908111136-fa8hm5t1q5vxjb9i
2011-09-08 13:11:36 +02:00
Xavier Morel
ea6e7c4be4
[FIX] Signature change in DataSet.write had not been performed in child class BufferedDataSet, resulting in success callback not being correctly called on successful save of row
...
lp bug: https://launchpad.net/bugs/842644 fixed
bzr revid: xmo@openerp.com-20110908111024-qfr6xlrw9ecy7m6y
2011-09-08 13:10:24 +02:00
niv-openerp
f7544bb989
[imp] lot of improvements to header & about page
...
bzr revid: nicolas.vanhoren@openerp.com-20110906095054-qjlpmyd83spjm79b
2011-09-06 11:50:54 +02:00
Xavier Morel
067e0b8827
[FIX] implicit globals: missing 'var' declarations
...
did not touch gantt.js, this thing's a swap, there are implicit globals which are actually used globally
bzr revid: xmo@openerp.com-20110906093139-uermn7a9vo38l3kf
2011-09-06 11:31:39 +02:00
Xavier Morel
4f8b43561f
[IMP] terminate a bunch of unterminated statements
...
bzr revid: xmo@openerp.com-20110906085853-2a5tqi92jdnglejd
2011-09-06 10:58:53 +02:00
niv-openerp
3c5c8b3e66
[imp] lot of fixes after refactoring of base to web
...
bzr revid: nicolas.vanhoren@openerp.com-20110905140439-n858qs02fwnib5ac
2011-09-05 16:04:39 +02:00
Antony Lesuisse
d1d7dd6c87
renamse base to web part2
...
bzr revid: al@openerp.com-20110905122815-m99c0w1lkzxxjh8o
2011-09-05 14:28:15 +02:00
Antony Lesuisse
bedfc48dcf
rename base into web part1
...
bzr revid: al@openerp.com-20110905110309-egx167t1ni1fzho1
2011-09-05 13:03:09 +02:00
niv-openerp
32441da020
[fix] fix in the model helper
...
bzr revid: nicolas.vanhoren@openerp.com-20110902155949-29mhv0d8rnl0dzkt
2011-09-02 17:59:49 +02:00
niv-openerp
ae91f6400b
[imp] added helper to call any method on models
...
bzr revid: nicolas.vanhoren@openerp.com-20110902152622-marolbq8hkxu6wd0
2011-09-02 17:26:22 +02:00