Commit Graph

150 Commits

Author SHA1 Message Date
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