Commit Graph

150 Commits

Author SHA1 Message Date
Xavier Morel 5d2dc020ac [IMP] add basic display for float_time and progress widget types
bzr revid: xmo@openerp.com-20110708143728-9mp6zh3a9rpvra17
2011-07-08 16:37:28 +02:00
Xavier Morel f5b72b6bcb [FIX] rendering of m2o selections after edition in editable lists
moved rendering of cell contents into JS to have more control (and simpler tests/dispatching. May also help the method getting JITed, with a bit o' luck)

bzr revid: xmo@openerp.com-20110708140655-lpbtriqto8tz2uxx
2011-07-08 16:06:55 +02:00
Fabien Meghazi 8c08d3841b [REM] Removed use of attrs and replaced it with modifiers
bzr revid: fme@openerp.com-20110707142948-8fs7g42488usa3pd
2011-07-07 16:29:48 +02:00
Xavier Morel f8c1e9819c [IMP] row(s) removal in list views: don't reload the whole list, just drop the relevant (or not relevant anymore) rows
lp bug: https://launchpad.net/bugs/805550 fixed

bzr revid: xmo@openerp.com-20110707134843-vj1yrmcffsuuc0aa
2011-07-07 15:48:43 +02:00
Fabien Meghazi f0f386e748 [REM] Removed use of attrs and replaced it with modifiers
Warning ! You need server Revision: 3497 revid:vmt@openerp.com-20110705122222-bhim9uft3l3sqee8

bzr revid: fme@openerp.com-20110707103740-4m6vrj18wfi2hacy
2011-07-07 12:37:40 +02:00
Xavier Morel 1847dbc017 [MERGE] list pagination branch
bzr revid: xmo@openerp.com-20110706083214-1thifexcz5pk0jih
2011-07-06 10:32:14 +02:00
niv-openerp a8e6836f3c [imp] refactoring related to the usage of dataset.context
bzr revid: nicolas.vanhoren@openerp.com-20110701115912-40hkax6c4s28quop
2011-07-01 13:59:12 +02:00
Xavier Morel b309810e14 [IMP] make paginator work correctly on groups
bzr revid: xmo@openerp.com-20110624130713-65wt8r7cmzo4wdor
2011-06-24 15:07:13 +02:00
Xavier Morel d567ba23ad [ADD] display inactive pager on group title rows in grouped lists
bzr revid: xmo@openerp.com-20110624111339-2jh8gm8r2l33iifb
2011-06-24 13:13:39 +02:00
Xavier Morel 3b6d9c7886 [FIX] don't enable pagination on the main list in the case of grouped lists
bzr revid: xmo@openerp.com-20110623144306-mq31g5jbdqn2txcp
2011-06-23 16:43:06 +02:00
Xavier Morel 5f339ee830 [IMP] page size switcher for list views, fix handling and display of pagination in case of unlimited page size (limit = (0 | undefined | null))
bzr revid: xmo@openerp.com-20110623134920-i8rfy4ggcb7kt7h4
2011-06-23 15:49:20 +02:00
Xavier Morel 52a6119cb4 [ADD] list-level pagination on list views
bzr revid: xmo@openerp.com-20110623124641-kzvkmx7fxe0xwn6w
2011-06-23 14:46:41 +02:00
Xavier Morel d530b966c9 [FIX] convert fixed ids in list view to classes (ids should either be generated or not used since each view can be instantiated several times in the same page)
bzr revid: xmo@openerp.com-20110623105404-baomtfarfflb5kd7
2011-06-23 12:54:04 +02:00
Xavier Morel 3099c30221 [IMP] move and rename ListView.List.get_fields_view: its actual role is to transmogrify the listview's view descriptor so that we can use it in a form view, so it's only for editable lists, and it should reflect its actual task in its name.
Also add some doc.

bzr revid: xmo@openerp.com-20110623105002-vnznqit790p5gv48
2011-06-23 12:50:02 +02:00
Xavier Morel e8526ae9f1 [ADD] load lists paginated
bzr revid: xmo@openerp.com-20110622153626-zscyr6natsmvb726
2011-06-22 17:36:26 +02:00
niv-openerp 58291d4ab6 [imp] added unlink to dataset and list_view (currently just reloads the whole list)
bzr revid: nicolas.vanhoren@openerp.com-20110622144916-cst2ad1s0gtchlxi
2011-06-22 16:49:16 +02:00
Fabien Meghazi 6102406eea [REM] Removed debug remains, sorry everyone
bzr revid: fme@openerp.com-20110630140817-65xvlcqia2b6m9xw
2011-06-30 16:08:17 +02:00
Fabien Meghazi 987b8f1e9f [FIX] Need time & datetime modules for evaluation
bzr revid: fme@openerp.com-20110630095931-nysrcqz8666gafgb
2011-06-30 11:59:31 +02:00
Xavier Morel fe062e1c6f [IMP] use type void instead of null for jsdoc annotations
Void is not a real type, but neither is null (it's Null) and intellij whines that it does not understand null

bzr revid: xmo@openerp.com-20110629135849-9p1qyn9s6n32dnzv
2011-06-29 15:58:49 +02:00
niv-openerp 63d23036a3 [fix] lot of fixes in o2m
bzr revid: nicolas.vanhoren@openerp.com-20110623104222-5lqe0o4xih4xwvxj
2011-06-23 12:42:22 +02:00
Xavier Morel 6371d8f840 [IMP] remove explicit jquery conversion/parsing during list rendering, wastes time for nothing as .append() can handle taking strings as input directly
bzr revid: xmo@openerp.com-20110621091529-rx1pah6y5j3gibdt
2011-06-21 11:15:29 +02:00
Xavier Morel 80e26dce12 [FIX] list-wise aggregation in case of groups
bzr revid: xmo@openerp.com-20110608125531-qmsey70ec127asyt
2011-06-08 14:55:31 +02:00
Xavier Morel d6f59ca25b [IMP] simplify list-wise aggregation computations, improve sub-grouping so sub-groups are created immediately rather than on render
bzr revid: xmo@openerp.com-20110608121545-aq7xmog2plmddcxe
2011-06-08 14:15:45 +02:00
Xavier Morel dd4a3b8047 [IMP] mandate that @group_operator and listwise aggregation functions be coherent on a listview field, so we can aggregate groups correctly
bzr revid: xmo@openerp.com-20110607144215-g6beueaoo3tu350r
2011-06-07 16:42:15 +02:00
Xavier Morel e4ddec2cb1 [IMP] disable [new|add] and [delete] list-level buttons instead of removing them entirely from view
bzr revid: xmo@openerp.com-20110607140248-4zu9m1q28vh7h6yq
2011-06-07 16:02:48 +02:00
Xavier Morel 16fcca94a3 [IMP] move list-wise aggregation results in the corresponding table columns, move labels to popover titles
bzr revid: xmo@openerp.com-20110607113629-0jexwkti3bsiebxb
2011-06-07 13:36:29 +02:00
Xavier Morel 08f6d5d9ee [IMP] switching to form view selecting the correct record while in edition mode with a record being edited
bzr revid: xmo@openerp.com-20110607105557-izu1cm5udiqkktsg
2011-06-07 12:55:57 +02:00
Xavier Morel 8a7a64bcd1 [IMP] make events passed through from children (lists and groups) to self by ListView.Groups pluggable
bzr revid: xmo@openerp.com-20110607103024-6m5b1g52l6cfrfi6
2011-06-07 12:30:24 +02:00
Xavier Morel 3d5af3fa73 [IMP] hide [new] button when editable list grouped: we don't know where to put the new record, so let's remove the ability to create one as long as it's not a requested feature
bzr revid: xmo@openerp.com-20110607085717-qstun0iymupoyw35
2011-06-07 10:57:17 +02:00
Xavier Morel ea92194cc6 [FIX] ensure only one row at a time is edited, integrate dataset index in row markup to create a more solid mapping between records and table rows in ListView.List (than checking the number of ancestors, which — it turns out — is a bit brittle when adding new rows at the front of the table
bzr revid: xmo@openerp.com-20110606134336-mmk00344x7gicd0z
2011-06-06 15:43:36 +02:00
Xavier Morel 0c673bb248 [IMP] make edition indexing work based on the current dataset
bzr revid: xmo@openerp.com-20110606114204-sjnil5xuhef0l2la
2011-06-06 13:42:04 +02:00
Xavier Morel c452d85a7a [MERGE] from trunk
bzr revid: xmo@openerp.com-20110606113621-r3q0otfjdu7l0ubp
2011-06-06 13:36:21 +02:00
Xavier Morel 8d35fb9a73 [FIX] send current search context to listview load (fields_view_get) so @invisible can be computed correctly
bzr revid: xmo@openerp.com-20110606084622-iwq5tn3lpegabibe
2011-06-06 10:46:22 +02:00
niv-openerp f2dca934a3 [imp] put set_embedded_view in openerp.base.View
bzr revid: nicolas.vanhoren@openerp.com-20110606075243-7b97zrb84qdfo4eu
2011-06-06 09:52:43 +02:00
niv-openerp aece1cf7c1 [imp] improvements related to embedded views.
bzr revid: nicolas.vanhoren@openerp.com-20110606070451-vn321aqrzi28akgj
2011-06-06 09:04:51 +02:00
Xavier Morel 7ba2688e39 [IMP] reload of rows after action: only reload the row, not the whole tree
Also improve DataSet slightly: have read_index and read_ids return their RPC promises

bzr revid: xmo@openerp.com-20110603143723-go25vripams72bqb
2011-06-03 16:37:23 +02:00
Xavier Morel aaa459a29d [ADD] edition cancelling
bzr revid: xmo@openerp.com-20110603141638-giwlzwrp795bq78h
2011-06-03 16:16:38 +02:00
Xavier Morel 9250a5a3f6 [IMP] re-render record to readonly after saving it
bzr revid: xmo@openerp.com-20110603132438-uhkzql3lsy6h9ptn
2011-06-03 15:24:38 +02:00
Xavier Morel 3895bcb954 [MOVE] editability code for listviews in a separate files: customizations of Form View require load-time dependencies on form.js, but form.js already depends on ListView (in order to create m2m widgets and sub-widgets), so we need to execute that part after both openep.base.list and openerp.base.form have loaded
bzr revid: xmo@openerp.com-20110603093606-gw00iidxfakjmvt3
2011-06-03 11:36:06 +02:00
Xavier Morel 0d21e3b074 [ADD] display editable rows when selecting row in editable mode
bzr revid: xmo@openerp.com-20110601124954-vog8ceoohczxgmqe
2011-06-01 14:49:54 +02:00
niv-openerp 61a9b05a58 [IMP] Added first setup for embedded views.
bzr revid: nicolas.vanhoren@openerp.com-20110601082358-adg1u4evi7s08iqf
2011-06-01 10:23:58 +02:00
niv-openerp 03c9889964 [imp] simplified design of static datasets and non-action view managers for m2m & o2m
bzr revid: nicolas.vanhoren@openerp.com-20110531141119-39chys078m5g0jo4
2011-05-31 16:11:19 +02:00
niv-openerp 7cbb2c3084 [imp] made o2m work
bzr revid: nicolas.vanhoren@openerp.com-20110531133817-vps6mfgsju1wadni
2011-05-31 15:38:17 +02:00
Xavier Morel cd3e60aef1 [ADD] editability status to ListView options (hence all sub-objects of the list view)
bzr revid: xmo@openerp.com-20110531112339-701lpf42p8h19mfj
2011-05-31 13:23:39 +02:00
Xavier Morel 9a5058a6b4 [FIX] group cleanup issue during apoptosis: remove all children from storage otherwise risk of zombie children
bzr revid: xmo@openerp.com-20110531063313-gv7z5vhwnrt5x6pg
2011-05-31 08:33:13 +02:00
Xavier Morel 11a95d3bf7 [FIX] cleanup group display before re-rendering it, otherwise m2m widget breaks
bzr revid: xmo@openerp.com-20110530070054-m8cbvexw72wpt4mq
2011-05-30 09:00:54 +02:00
Xavier Morel dd3c1645ec [FIX] m2m fields display
* Add reload_content method to ListView so third parties can ask for a redisplay
* Add a StaticDataGroup descendant class to DataGroup (actually to GrouplessDataGroup as it can not contain groups, only records via a static data set)
* Fix DataSetStatic.read_ids when no limit provided
* Fix Many2ManyListView usage and overriding of a few ListView methods (due to ListView API changing)

bzr revid: xmo@openerp.com-20110527151000-lq5a6sfohprs9gvs
2011-05-27 17:10:00 +02:00
Xavier Morel d7e17b06cf [IMP] final fixes to list view/groups for behavior which should be correct in list view itself:
* Handle aggregate fields (at the list level)
* remove color handling for now, go back to using vanilla datasets for fetching records

TODO: Ensure that APIs available are useable for third-parties to use list views as components, or fix those APIs

bzr revid: xmo@openerp.com-20110527092811-ldxd4oufvjtqvha3
2011-05-27 11:28:11 +02:00
Xavier Morel f86bc1c6a3 [IMP] extract handlers for ListView.Groups events into separate method, so they're not a pain to override
bzr revid: xmo@openerp.com-20110527074442-2wjw9aya7m8t0tlp
2011-05-27 09:44:42 +02:00
Xavier Morel fa284d7c09 [FIX] typo in variable name
bzr revid: xmo@openerp.com-20110527072751-38qzsszozbryf8g8
2011-05-27 09:27:51 +02:00