Commit Graph

99 Commits

Author SHA1 Message Date
Xavier Morel fa284d7c09 [FIX] typo in variable name
bzr revid: xmo@openerp.com-20110527072751-38qzsszozbryf8g8
2011-05-27 09:27:51 +02:00
Xavier Morel 1f247b96e1 [IMP] Remove colors handling so ListView.fill is not necessary anymore, and can go back to ListView.load and DataSet.search_read
bzr revid: xmo@openerp.com-20110527071309-rtdkawbu4v7xfepd
2011-05-27 09:13:09 +02:00
Xavier Morel 7d0ceef7d4 [FIX] apoptosis on lists
bzr revid: xmo@openerp.com-20110525150240-brxcbyfh2lltz4ai
2011-05-25 17:02:40 +02:00
Xavier Morel 47f7922554 [IMP] look of list-wise aggregates
bzr revid: xmo@openerp.com-20110525143516-wmav0tly51uw6ly5
2011-05-25 16:35:16 +02:00
Xavier Morel a49729461d [FIX] aggregates display on initial list loading
bzr revid: xmo@openerp.com-20110525140456-ylo5e0kf0kp3xe15
2011-05-25 16:04:56 +02:00
Xavier Morel 88773e6c89 [ADD] basic implementation of list-wise aggregation functions
bzr revid: xmo@openerp.com-20110525130414-a1wkfb4inix2q4we
2011-05-25 15:04:14 +02:00
Xavier Morel 3dbc88c696 [IMP] make get_selection call and selected ListView event provide both ids of selected records and the selected records themselves
bzr revid: xmo@openerp.com-20110525092813-ciahklygwshkpdl0
2011-05-25 11:28:13 +02:00
Xavier Morel bf57c5ab90 [IMP] a bunch of improvements to groups handling in list view
* Support for aggregate fields in groups
* Complete (breaking) change to DataGroup API, turns out the old one sucked
* Correctly display groups (and nested data columns)
* Support for group_by_no_leaf, with and without group_by fields

bzr revid: xmo@openerp.com-20110524140055-6g22b1xt7hz9ujrl
2011-05-24 16:00:55 +02:00
Xavier Morel 7e7034436c [FIX] handling of group_by_no_leaf in case where there is no group_by field
bzr revid: xmo@openerp.com-20110524132729-6890kfrusn3w3fo0
2011-05-24 15:27:29 +02:00
Xavier Morel 21e2edea63 [IMP] move selection checkbox after group and count columns
bzr revid: xmo@openerp.com-20110524115755-v7e3wmxk9r6bitn7
2011-05-24 13:57:55 +02:00
niv-openerp d2685b5b48 [IMP] Improvements to sidebar and viewmanager-free views.
bzr revid: nicolas.vanhoren@openerp.com-20110524113013-nh28hirqpmq17e0t
2011-05-24 13:30:13 +02:00
Xavier Morel 96fabdeff6 [IMP] display group length even for terminal groups in group_by_no_leaf
bzr revid: xmo@openerp.com-20110524102654-vrjiu7pht02n7v6p
2011-05-24 12:26:54 +02:00
Xavier Morel 7758f281ed [ADD] handling of group_by_no_leaf
bzr revid: xmo@openerp.com-20110524091125-ltohsi2zy6nbmi3p
2011-05-24 11:11:25 +02:00
Xavier Morel 7321970cf9 [ADD] switch to adding special group and count columns, correctly indent inner groups in tree-like structure
bzr revid: xmo@openerp.com-20110524065205-rxulby7dn9gk7qzj
2011-05-24 08:52:05 +02:00
Xavier Morel 96c7c16b5f [FIX] moving between list and form views
bzr revid: xmo@openerp.com-20110520142041-7wk4d53459fvjbra
2011-05-20 16:20:41 +02:00
Xavier Morel 6ea547dc71 [ADD] ability to close an opened group, fix disposal of list (don't blow up if already disposed of), improve disposal of group body elements
bzr revid: xmo@openerp.com-20110520133045-l2gqs8sxso5rqt4k
2011-05-20 15:30:45 +02:00
Xavier Morel 19e2af2097 [ADD] open/close icon next to group title
bzr revid: xmo@openerp.com-20110520130854-y4dm4tbdfuf5lpi5
2011-05-20 15:08:54 +02:00
Xavier Morel 2f290527cc [ADD] aggregate fields in group title rows
bzr revid: xmo@openerp.com-20110520130038-b50oftrx9f88smsa
2011-05-20 15:00:38 +02:00
Fabien Meghazi 68ccb8492e [FIX] Fix custom ListViews
bzr revid: fme@openerp.com-20110519142334-no2gq2dxf3avo1va
2011-05-19 16:23:34 +02:00
Xavier Morel 57ab1186a2 [ADD] ghetto reloading of list after action
bzr revid: xmo@openerp.com-20110519111309-bjty41jeugtoxka8
2011-05-19 13:13:09 +02:00
Xavier Morel bbdd1c0389 [IMP] make openerp.base.ListView.Groups a tree, so it's possible to get a handle on intermediate groups
bzr revid: xmo@openerp.com-20110519092222-g0ggk9didmizc5ch
2011-05-19 11:22:22 +02:00
niv-openerp a55e66ccbb [imp] improved sidebar, now hide it by default in list views.
bzr revid: nicolas.vanhoren@openerp.com-20110518151710-qq2gwssi75g51uhk
2011-05-18 17:17:10 +02:00
Xavier Morel 421b139e3f [FIX] listview-level deletion
bzr revid: xmo@openerp.com-20110518143517-ibh4jiw0hv2735x3
2011-05-18 16:35:17 +02:00
Xavier Morel 277aaa7d57 [FIX] events handling from inner lists
Move handling of opening a group to its own method, to reduce nesting

bzr revid: xmo@openerp.com-20110518130009-8mlgpg2f3i1hod4t
2011-05-18 15:00:09 +02:00
Xavier Morel abd7b1898b [ADD] render rows again, yay
TODO: fix dataset/listview call?

bzr revid: xmo@openerp.com-20110518090630-k2owbldv2tvu8tfv
2011-05-18 11:06:30 +02:00
Xavier Morel b3050bc14d [ADD] first draft of correctly displayed groups, placeholder for data rows
bzr revid: xmo@openerp.com-20110517160948-4k40l1z68pxfd2h5
2011-05-17 18:09:48 +02:00
Xavier Morel 329a155000 [IMP] add some doc to setup_columns
bzr revid: xmo@openerp.com-20110517140726-9yjdk66nwl7xh3pe
2011-05-17 16:07:26 +02:00
Xavier Morel ccf8031e6b [IMP] Break list views completely, change DataGroup API to work better, improve columns management to handle groupby-reordering
bzr revid: xmo@openerp.com-20110517140358-vtank237dh5hso8i
2011-05-17 16:03:58 +02:00
Xavier Morel 05e3f9c308 [IMP] remove console.log statement, add use strict
bzr revid: xmo@openerp.com-20110516105950-ccn8tas5pxkb281d
2011-05-16 12:59:50 +02:00
Xavier Morel b392412371 [FIX] Many2ManyListView based on changes in ListView API.
bzr revid: xmo@openerp.com-20110512095711-85drteuvprr22ggs
2011-05-12 11:57:11 +02:00
Antony Lesuisse c72aa9bd1c common view class
bzr revid: al@openerp.com-20110511144910-09jk4zrl00msgh93
2011-05-11 16:49:10 +02:00
Xavier Morel 1e6e428d7e [IMP] don't use a parameter object for DataGroup, provide each parameter individually
bzr revid: xmo@openerp.com-20110510111204-8ypp5zdujd0azncf
2011-05-10 13:12:04 +02:00
Xavier Morel 45f47ae65c [ADD] display groups in a most dreadful manner, need to cleanup the generation function and to handle displaying it in the correct table
bzr revid: xmo@openerp.com-20110510110723-ic13ty3rs92zg9z9
2011-05-10 13:07:23 +02:00
Xavier Morel 0dcd78a54e [ADD] DataGroup API
bzr revid: xmo@openerp.com-20110510083420-18zr6j8ab5d9c023
2011-05-10 10:34:20 +02:00
Xavier Morel 014fdf0068 [IMP] move most of the clicking-on-a-list-row logic in ListView.List
bzr revid: xmo@openerp.com-20110509082212-rg8rnlsheh1gvsk5
2011-05-09 10:22:12 +02:00
Xavier Morel b940e26c36 [IMP] move DOM event handling for action buttons in lists to ListView.List
bzr revid: xmo@openerp.com-20110509081022-owlj38aqcdhnlr90
2011-05-09 10:10:22 +02:00
Xavier Morel 27c57ef671 [IMP] add some documentation to openerp.base.ListView.List
bzr revid: xmo@openerp.com-20110509065457-idl2j16krsyyb0du
2011-05-09 08:54:57 +02:00
Xavier Morel 0c08f61d13 [IMP] impact records deletion on the visible list display of the ListView
bzr revid: xmo@openerp.com-20110509063227-eb66gzvc3y9ebnh9
2011-05-09 08:32:27 +02:00
Xavier Morel 5ccac72621 [IMP] move row-deletion event to ListView.List
bzr revid: xmo@openerp.com-20110506140715-z31rkd1a257b9vmc
2011-05-06 16:07:15 +02:00
Xavier Morel af3bb87dae [IMP] move handling of selecting rows into ListView.List (and use an event between ListView and ListView.List), make ListView alter columns and rows in-place (e.g. via splice()) rather than replace them altogether, so we can use those as shared resources between ListView and ListView.List
bzr revid: xmo@openerp.com-20110506122837-a4ss76rjyg0rqo6s
2011-05-06 14:28:37 +02:00
Xavier Morel 075902f5c2 [IMP] make sortable columns look sortable (and sorted) a bit
bzr revid: xmo@openerp.com-20110504144753-zemygt44re3o8z0m
2011-05-04 16:47:53 +02:00
Xavier Morel ff691a34b5 [ADD] sorting support in list views
* Fix sorting in DataSet.do_search_read (would not fix ordering of read results, yielding a semi-random order instead of the one returned by search)
* Add sort parameter support to ListView.fill()
* Improve handling of sort parameter on DataSetSearch
  - Queue up fields to sort on (most important last) by calling 'dataset.sort(fieldname)' repeatedly
  - Get back a sort string fit for sending to OpenERP (server) by calling 'dataset.sort()' (without arguments)
* Adds sorting on list view by clicking on headers

bzr revid: xmo@openerp.com-20110504140535-ydj8zs33lt0dgcwy
2011-05-04 16:05:35 +02:00
Xavier Morel a512bfe3aa [ADD] action execution in list views, via ActionExecutor mixin
bzr revid: xmo@openerp.com-20110504092351-s4x9grz0i8xx3bwc
2011-05-04 11:23:51 +02:00
niv-openerp 0ae1e8f2b9 [IMP] Some code about many2many widgets.
bzr revid: nicolas.vanhoren@openerp.com-20110422155452-9lth3lrm8pwf9c2r
2011-04-22 17:54:52 +02:00
Xavier Morel 912738c712 [IMP] regenerate table on load in case of columns changes
bzr revid: xmo@openerp.com-20110421131328-7ydomgj1w1fxl3kp
2011-04-21 15:13:28 +02:00
Xavier Morel a383be5549 [IMP] add a level of nesting to do_fill result so do_fill_table can get the view data, also fix failing tests involving do_fill_table
bzr revid: xmo@openerp.com-20110421131239-dbr5cg27qntj0nuu
2011-04-21 15:12:39 +02:00
Xavier Morel 17be3b6599 [ADD] options for sortable and reorderable list views, so the API is pretty much complete
bzr revid: xmo@openerp.com-20110421120608-vefcelpe5fxsz1op
2011-04-21 14:06:08 +02:00
Xavier Morel 3d6a623b1a [IMP] documentation for list view as it will be needed for some new widgets
bzr revid: xmo@openerp.com-20110421115924-7gj2tyrzm789bkom
2011-04-21 13:59:24 +02:00
Xavier Morel 96386dbdd9 [REM] disable dummy actions implementation in lists, so nobody is confused as to their status
bzr revid: xmo@openerp.com-20110421104843-5sof6p8uuhq7gsap
2011-04-21 12:48:43 +02:00
Xavier Morel f9e630dafb [FIX] better fix form pagers
bzr revid: xmo@openerp.com-20110413114506-yso90r89rjn62r3g
2011-04-13 13:45:06 +02:00