Commit Graph

208 Commits

Author SHA1 Message Date
Xavier Morel ae4d1d5e3b [IMP] to maintain correct synchro, listview should avoid relying on indexes as much as possible. Get rid on indexes on rows, and of List.row_position
bzr revid: xmo@openerp.com-20110824085303-6h3wggzynpic0mcz
2011-08-24 10:53:03 +02:00
Xavier Morel 37643a0909 [ADD] basics of on_write, split ListView.reload_record(index) in ListView.reload_record(record) and ListView.reload_record_at_index(index)
migrate most calls to reload_record(record)

bzr revid: xmo@openerp.com-20110823141300-zujxs2oaunqwhprt
2011-08-23 16:13:00 +02:00
Xavier Morel b116b3ac51 [FIX] complete retardation: do_actual_search is supposed to be called with completely reified domains and contexts (from evail_domain_and_context), there is no need to go through DataSet.get_domain and DataSet.get_context save to break DataGroup's dispatching
bzr revid: xmo@openerp.com-20110822143358-y4xse4gcybx5dopm
2011-08-22 16:33:58 +02:00
Xavier Morel 2fad2d1f80 [MERGE] from trunk
bzr revid: xmo@openerp.com-20110822123258-thxewwdvbysap4jt
2011-08-22 14:32:58 +02:00
Xavier Morel 6ccc41fe2b [FIX] insertion at end: 'null' index should be same as 'undefined' for 'at' kwarg to Collection.add
bzr revid: xmo@openerp.com-20110822105656-f0x1iweoxbh8hcgu
2011-08-22 12:56:56 +02:00
Xavier Morel 63d2dcce40 [IMP] unify refreshing rows striping (and @data-index resetting)
bzr revid: xmo@openerp.com-20110822105028-vvzty9jx6nlupq0f
2011-08-22 12:50:28 +02:00
Xavier Morel f4a745e3f7 [FIX] forgot to increment index in resequencer
bzr revid: xmo@openerp.com-20110822101308-2td5peezvg6snmk7
2011-08-22 12:13:08 +02:00
Xavier Morel 885fa0ded0 [ADD] handling of adding new records to an existing collection, silent option on a bunch of record events
bzr revid: xmo@openerp.com-20110822090458-3wdroe4cxyh30k91
2011-08-22 11:04:58 +02:00
Xavier Morel c18eff8665 [IMP] add events unbinging to events mixin, fix Collection.reload() handling by List
bzr revid: xmo@openerp.com-20110819151510-7posqx7mznldurd2
2011-08-19 17:15:10 +02:00
Xavier Morel 2d024453a9 [ADD] Collection.indexOf, fix fetching of selected records (use record id, not record index)
bzr revid: xmo@openerp.com-20110819132112-y635uaukfrx2s5ii
2011-08-19 15:21:12 +02:00
Xavier Morel 88dfe802fa [IMP] use Collection signals to handle record removal
bzr revid: xmo@openerp.com-20110819115907-s7sk4n9qd00hz6d0
2011-08-19 13:59:07 +02:00
Xavier Morel 1209b60a42 [IMP] bind row and aggregate display refreshes on changes in the underlying model(s)
bzr revid: xmo@openerp.com-20110819103955-gx0j7t3kxl8pjy56
2011-08-19 12:39:55 +02:00
Xavier Morel ec9a40c8f5 [IMP] add previous field value to change events
bzr revid: xmo@openerp.com-20110819101723-p73bts37knut34c8
2011-08-19 12:17:23 +02:00
Xavier Morel 32e9a10a1e [IMP] only trigger change events when a field's value was actually changed, provide more information in change event
bzr revid: xmo@openerp.com-20110819101644-edovs858qrz1wb3y
2011-08-19 12:16:44 +02:00
Xavier Morel d69cd3cb15 [???] try to hook some stuff into reset event
bzr revid: xmo@openerp.com-20110819101208-nqoroidipedo73rs
2011-08-19 12:12:08 +02:00
Antony Lesuisse 47e709eb73 [IMP] read_slice fields outside option [] are probably bugs
bzr revid: al@openerp.com-20110818225721-tn1vl2450tbe11d6
2011-08-19 00:57:21 +02:00
Xavier Morel 941d1d0968 [FIX] reset records on a group apoptosis, cleanout proxies when reseting a Collection
bzr revid: xmo@openerp.com-20110818132747-xnsgcugx1nohc7p8
2011-08-18 15:27:47 +02:00
Xavier Morel 92e06c997b [ADD] basic implementation of each and map on collections
bzr revid: xmo@openerp.com-20110818122106-lt23fl3smbxg4f82
2011-08-18 14:21:06 +02:00
Xavier Morel d433eada00 [ADD] acknowledgement that the listview backing collections are quite strongly inspired by backbone's
bzr revid: xmo@openerp.com-20110817133600-hl93utj2eh7pr5cd
2011-08-17 15:36:00 +02:00
Xavier Morel bd49735371 [IMP] convert listviews (non-editable anyway) to collections
bzr revid: xmo@openerp.com-20110817131635-cv3qcbiarmlk5o3o
2011-08-17 15:16:35 +02:00
Xavier Morel 4ce473b8dc [ADD] basics for smarter collections to back the listview and its components
bzr revid: xmo@openerp.com-20110817085532-4chvix1odshuebvc
2011-08-17 10:55:32 +02:00
Xavier Morel a4f9eb398b [REM] listview columns filtering on a name being present: don't try to read buttons with a name, it's kinda stupid
bzr revid: xmo@openerp.com-20110812133108-5bync0jgo0krn0u4
2011-08-12 15:31:08 +02:00
Xavier Morel 1dea9ed16f [FIX] when reloading the view description thingie, the listview needs to send the search context along so stuff line invisible attributes (for invisible columns) can be correctly evaluated
bzr revid: xmo@openerp.com-20110811144407-f5nlq89wqdh4z0pa
2011-08-11 16:44:07 +02:00
Xavier Morel adf903f0b0 [FIX] listview pagination
broken in fme@openerp.com-20110808144120-xlut0922rd61moxc, listview needs to get it from the action descriptor stored in the parent object

bzr revid: xmo@openerp.com-20110811084301-xp42ylhmv2ackhws
2011-08-11 10:43:01 +02:00
Xavier Morel 13c30f7b50 [IMP] avoid altering the dataset's domain and context in place during list view search
bzr revid: xmo@openerp.com-20110811082818-hhgdmn0k10tnbxm4
2011-08-11 10:28:18 +02:00
Xavier Morel 13c75281b0 [IMP] change DataSet.read_slice to take an options object for optional fields, offset and limit args
bzr revid: xmo@openerp.com-20110811070050-pkz6x39tf0i4e49r
2011-08-11 09:00:50 +02:00
Antony Lesuisse 51da265304 [FIX] list button actions
bzr revid: al@openerp.com-20110811020014-skhi0zscvs1n7md5
2011-08-11 04:00:14 +02:00
Fabien Meghazi d1a5c72972 [FIX] Fixed remaining references to session.action_manager
bzr revid: fme@openerp.com-20110810103836-li6e7kx8tdk52iil
2011-08-10 12:38:36 +02:00
Xavier Morel 13710dfca9 [IMP] rename 'dates.js' to 'formats.js', move data-formatting for cells from list to formats so treeview can rely on them
bzr revid: xmo@openerp.com-20110809153021-k1wop0j8qjp6rp49
2011-08-09 17:30:21 +02:00
Fabien Meghazi e0fdc7078b [FIX] Fixed views options
bzr revid: fme@openerp.com-20110808173230-fdzbdeaegxpnszd1
2011-08-08 19:32:30 +02:00
Fabien Meghazi 1a9e157eb5 [FIX] Avoid creating sidebar each time the list view reloads itself
bzr revid: fme@openerp.com-20110808163900-qxowalfph0xeypmg
2011-08-08 18:39:00 +02:00
Fabien Meghazi 6322a565f5 [IMP] Added View#do_switch_view
[REM] Removed references to view_manager out of list view

bzr revid: fme@openerp.com-20110808144120-xlut0922rd61moxc
2011-08-08 16:41:20 +02:00
Xavier Morel 5e4ae7b2d8 [FIX] stuff al broke: removed parameters from FormView constructor, did not fix all callsites
bzr revid: xmo@openerp.com-20110803120607-arw69hc83rp0kq03
2011-08-03 14:06:07 +02:00
Xavier Morel 643f3116c9 [FIX] resequencing of rows during drag & drop
I don't even understand how it worked before as the terminal condition would really just blow up.

Also, redisplay resequenced rows

bzr revid: xmo@openerp.com-20110803113137-46ddhdail0d4m3ie
2011-08-03 13:31:37 +02:00
Fabien Meghazi 64922add3a [IMP] Improve sidebar
bzr revid: fme@openerp.com-20110728151545-2fsy941wjznod4q8
2011-07-28 17:15:45 +02:00
Fabien Meghazi 30bca60907 [REM] Removed reference to view_manager.flags from views. The action flags are merged in View's options constructor argument so we shall not fetch them from view_manager anymore.
bzr revid: fme@openerp.com-20110727080319-nztgq4txu2tt6odq
2011-07-27 10:03:19 +02:00
Fabien Meghazi d0234fa5dd [IMP] new Sidebar controller
Now, the views are responsible of the management of their own sidebar.
There is one sidebar per view.
The viewmanager creates the divs for each sidebar (as it does for each view).
The new Sidebar controller allows custom section with their own controller.

bzr revid: fme@openerp.com-20110726210005-xyalvw764y2xhvte
2011-07-26 23:00:05 +02:00
Xavier Morel 9c8a2c33ab [FIX] check that a value is a number before checking for isNaN: strings are NaN and so are objects
also alias 'record.value', so we don't have to go through the indirection 11 times

bzr revid: xmo@openerp.com-20110725141103-2ix5mhec6lk47en6
2011-07-25 16:11:03 +02:00
Xavier Morel e29a5204f7 [FIX] NaN values being displayed in list footers (aggregated values)
bzr revid: xmo@openerp.com-20110725133553-bs4x2f747vdj1a02
2011-07-25 15:35:53 +02:00
Xavier Morel 4110cb0828 [IMP] re-enable min and max aggregation functions because why not
bzr revid: xmo@openerp.com-20110725104630-vs4wi5740340dtyj
2011-07-25 12:46:30 +02:00
Xavier Morel 05b9d6217f [FIX] formatting of aggregated fields, formatting of floats in list view (use digits if available, otherwise default to 2)
bzr revid: xmo@openerp.com-20110725102949-z7nkuwyybuczazxy
2011-07-25 12:29:49 +02:00
Xavier Morel 6b9ba5d46e [IMP] update list aggregates after button action called, in case action updated value in row
bzr revid: xmo@openerp.com-20110725091907-j0sucdkv0dq83nsf
2011-07-25 11:19:07 +02:00
Xavier Morel 2e9f2f138b [IMP] update aggregates when deleting a record
bzr revid: xmo@openerp.com-20110725091506-h4u4kp3ut8h0a6vc
2011-07-25 11:15:06 +02:00
Xavier Morel e92ea8a7ac [ADD] resequencing of list rows
bzr revid: xmo@openerp.com-20110722150114-paufrw3vjt9n3uec
2011-07-22 17:01:14 +02:00
Antony Lesuisse 3a6863298b [FIX] list test for sidebar
bzr revid: al@openerp.com-20110720092557-uz4n4ayl33q8eptc
2011-07-20 11:25:57 +02:00
Antony Lesuisse 77cfc62c8a [FIX] controllers is family more fixes 7
bzr revid: al@openerp.com-20110718201211-r15tgbq0si49dlq9
2011-07-18 22:12:11 +02:00
Antony Lesuisse 077264c58f controllers is family form fixes 3
bzr revid: al@openerp.com-20110718142610-5zoa1k4fzyprag9m
2011-07-18 16:26:10 +02:00
Antony Lesuisse 8f9bea5393 controllers is family form fixes 2
bzr revid: al@openerp.com-20110718135930-a23vdzjy4ch8ozeh
2011-07-18 15:59:30 +02:00
Antony Lesuisse 31a725f75c Controller is now a family
bzr revid: al@openerp.com-20110718125422-x20k89dogbklgr4c
2011-07-18 14:54:22 +02:00
Antony Lesuisse 2decff7b21 controller move Class from base to controller
bzr revid: al@openerp.com-20110715141600-4tr536v7vfrv9tkk
2011-07-15 16:16:00 +02:00