Xavier Morel
c6bcc855e1
[FIX] DataSet.read_slice needs to return the relevant deferred so callers can add new callbacks or use $.when multiplexing
...
bzr revid: xmo@openerp.com-20110714095619-4owz98azxy9xkpi0
2011-07-14 11:56:19 +02:00
Xavier Morel
d1209c847b
[FIX] sorting list views
...
lp bug: https://launchpad.net/bugs/809309 fixed
bzr revid: xmo@openerp.com-20110713103725-y9fnpp36z78bjbhn
2011-07-13 12:37:25 +02:00
niv-openerp
b29106581f
[imp] added popup to read & modify a record and used it in m2o (also some fix related to relations)
...
bzr revid: nicolas.vanhoren@openerp.com-20110713094411-wrbaa6m4zewm521m
2011-07-13 11:44:11 +02:00
Xavier Morel
8ac948f360
[FIX] explicitly pass a list of fields to read_group instead of False
...
read_group does not take inherited fields in its default list-of-fields-to-read, so if grouping on an inherited field it will blow up
conversely, read_group can not aggregate on inherited numerical fields, so if it reads *all* the columns (including inherited) it will try to aggregate on fields it's not reading and that's also going to blow up.
bzr revid: xmo@openerp.com-20110711113228-18mbcft9y2lf7ptm
2011-07-11 13:32:28 +02:00
Xavier Morel
1847dbc017
[MERGE] list pagination branch
...
bzr revid: xmo@openerp.com-20110706083214-1thifexcz5pk0jih
2011-07-06 10:32:14 +02:00
Xavier Morel
d44af4944d
[FIX] groupby, broken at revision nicolas.vanhoren@openerp.com-20110629103046-rbsy0m6pke3ytqyl by a change in RPC response format for handlers added on ajax promise
...
Previously, callbacks passed as parameters to the RPC ajax call would receive only the result key of the json-rpc response (aka the part worth using), but callbacks added to the promise (via .then, .done or .fail) would get the whole json-rpc response (due to getting the jQuery ajax promise itself and not going through the json-rpc translation layer) and would need to add an indirection via xhr_response.result.
This was fixed in nicolas.vanhoren@openerp.com-20110629103046-rbsy0m6pke3ytqyl , but the relevant code in ContainerDataGroup.fetch was not fixed, would still go through the indirection and would therefore return an empty list (of groups) to the listview, leading to no groups being displayed
bzr revid: xmo@openerp.com-20110706072324-io03rcd33qwtxo3w
2011-07-06 09:23:24 +02:00
niv-openerp
c8e8b7cc26
[fix] small bug with o2m & editable lists
...
bzr revid: nicolas.vanhoren@openerp.com-20110704083858-n9d4bopimfmhdg32
2011-07-04 10:38:58 +02:00
Xavier Morel
1e0fc68cad
[IMP] rpc search_read and internal managment of DataSetSearch.read_slice to better handle pagination
...
* /base/dataset/search_read now returns a dict of {ids, records} where ids are *not* paginated and is an ordered sequence of all the ids matching the unpaginated search criteria (domain, context, sort)
records is the old toplevel result: an ordered, paginated sequence of the records read (with fields correctly selected and everything)
* Removed context param to search_read since context comes from request object
bzr revid: xmo@openerp.com-20110622145559-3r2jszyddvbsz3hq
2011-06-22 16:55:59 +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
niv-openerp
6df623519b
[imp] added possibility to set value of a one2many using an on_change
...
bzr revid: nicolas.vanhoren@openerp.com-20110629153526-ewu12haop290o6ru
2011-06-29 17:35:26 +02:00
niv-openerp
42a474d8ee
[imp] refactored dataset to use get_context()
...
added parenting in o2m & form view
modified on_change to raise an exception when it can't resolve correctly one of the arguments
bzr revid: nicolas.vanhoren@openerp.com-20110629143506-8kr93moo0dug9u6m
2011-06-29 16:35:06 +02:00
Fabien Meghazi
f84c547a84
[REM] Removed Dataset#count property
...
bzr revid: fme@openerp.com-20110629084459-x762jowmu14j6xak
2011-06-29 10:44:59 +02:00
Xavier Morel
7b91cbdab8
[FIX] trailing comma
...
bzr revid: xmo@openerp.com-20110628145508-jimwnt2syyptkg89
2011-06-28 16:55:08 +02:00
niv-openerp
6cf3210c9b
[merge]
...
bzr revid: nicolas.vanhoren@openerp.com-20110628172304-8l1kzi2dwve83dj1
2011-06-28 19:23:04 +02:00
niv-openerp
31e7760e1a
[imp] refactoring of the name_... methods + refactoring of the context and domain handling in many2ones
...
bzr revid: nicolas.vanhoren@openerp.com-20110628171852-1393loyd5ln1tsom
2011-06-28 19:18:52 +02:00
Fabien Meghazi
23ec19c2fb
[ADD] Added DataSet#call_button javascript side
...
bzr revid: fme@openerp.com-20110628160103-jpkd4r1batz5nlfp
2011-06-28 18:01:03 +02:00
niv-openerp
63a5ac2355
[merge]
...
bzr revid: nicolas.vanhoren@openerp.com-20110628140534-3lvqp50zrav7s7ld
2011-06-28 16:05:34 +02:00
niv-openerp
58e236eb44
[fix] redesigned evaluation contexts
...
bzr revid: nicolas.vanhoren@openerp.com-20110628140418-lxmclab51ll0iwdd
2011-06-28 16:04:18 +02:00
niv-openerp
aa9eedee9e
[imp] added evaluation context into compound context
...
bzr revid: nicolas.vanhoren@openerp.com-20110628133407-yoqcfl6z3gm90ct6
2011-06-28 15:34:07 +02:00
niv-openerp
46d87b34b0
[imp] added evaluation context to compound context
...
bzr revid: nicolas.vanhoren@openerp.com-20110628121747-e8y1y3avglshzxv1
2011-06-28 14:17:47 +02:00
Fabien Meghazi
97da93d3a1
[IMP] Added on_act_window_closed in ViewManager
...
bzr revid: fme@openerp.com-20110628103049-n7aje7d1a81zjnq3
2011-06-28 12:30:49 +02:00
Fabien Meghazi
d106b1479d
[FIX] Correctly set index in DataSetStatic constructor
...
bzr revid: fme@openerp.com-20110628095858-euv72cho29rbu3hl
2011-06-28 11:58:58 +02:00
Fabien Meghazi
597f850be5
[IMP] Pass context & dataset in constructor of DataSetSearch
...
bzr revid: fme@openerp.com-20110628093559-dvzvbi51o2xf7kmy
2011-06-28 11:35:59 +02:00
niv-openerp
fe6536132f
[imp] refactored one2many dataset & created read only search dataset & used it in the select create popup
...
bzr revid: nicolas.vanhoren@openerp.com-20110623165717-di9r0i463tm4wm7a
2011-06-23 18:57:17 +02:00
Fabien Meghazi
b91fca6709
[FIX] Dataset's index default value should be null
...
bzr revid: fme@openerp.com-20110623155218-205t5nb0etjdgfc4
2011-06-23 17:52:18 +02:00
niv-openerp
9eede2e3a4
[fix] added setTimeout to all methods of o2m dataset to avoid lot of potential bugs in the views
...
bzr revid: nicolas.vanhoren@openerp.com-20110623122110-4cst4fm1dzup5z69
2011-06-23 14:21:10 +02:00
Fabien Meghazi
c57a3e0d98
[FIX] Fixed active_is in context for dialog actions
...
bzr revid: fme@openerp.com-20110621143804-b51tp8n0a393oixi
2011-06-21 16:38:04 +02:00
niv-openerp
157273f15a
[imp] added default name on false quick create in m2o
...
bzr revid: nicolas.vanhoren@openerp.com-20110617141945-wnnhkhf8wezwfyed
2011-06-17 16:19:45 +02:00
niv-openerp
e975b4ac1e
[imp] added compound context and compound domain and implemented correctly context & domain handling in m2o
...
bzr revid: nicolas.vanhoren@openerp.com-20110617120834-c616130ueklb3rxs
2011-06-17 14:08:34 +02:00
niv-openerp
858f61c6be
[imp] added compound domains and contexts
...
bzr revid: nicolas.vanhoren@openerp.com-20110617095835-oymrh9u459hhwqa1
2011-06-17 11:58:35 +02:00
niv-openerp
cb50260aa8
[imp] o2m wip
...
bzr revid: nicolas.vanhoren@openerp.com-20110616163709-gztnhlqhgvprtirf
2011-06-16 18:37:09 +02:00
niv-openerp
7c7514654f
[imp] improved design of name_search
...
bzr revid: nicolas.vanhoren@openerp.com-20110614093844-vurmvtar87wq486c
2011-06-14 11:38:44 +02:00
niv-openerp
c73df94a6c
[imp] added quick create
...
bzr revid: nicolas.vanhoren@openerp.com-20110610161629-13jcm1obpahfrokx
2011-06-10 18:16:29 +02:00
niv-openerp
7d05822051
[merge]
...
bzr revid: nicolas.vanhoren@openerp.com-20110609132026-bql0r43umfho1kcj
2011-06-09 15:20:26 +02:00
niv-openerp
28c6b1c7d8
[imp] improvements of the m2o
...
bzr revid: nicolas.vanhoren@openerp.com-20110609132004-vac8h7r2im3wdlq5
2011-06-09 15:20:04 +02:00
niv-openerp
a4e8b8e017
[deep-cleaning] first step of rewriting m2o
...
bzr revid: nicolas.vanhoren@openerp.com-20110606165043-dae2xm6d48vq4z7m
2011-06-06 18:50:43 +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
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
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
f6d4bdc555
Import old branch.
...
bzr revid: nicolas.vanhoren@openerp.com-20110531130154-45t27asxk5pcr7sd
2011-05-31 15:01: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
069da6ed5e
[FIX] aggregate field value can be returned as 'false', which should be translated to '0'
...
bzr revid: xmo@openerp.com-20110524140648-79ukx88gl61eedd9
2011-05-24 16:06:48 +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
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
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
b78b3d4ead
[IMP] document transformation of read_group fields, add an 'aggregates' property to handle aggregate fields of read_group in a cleaner manner
...
bzr revid: xmo@openerp.com-20110516080539-4ltj6um1htwdzndb
2011-05-16 10:05:39 +02:00
Xavier Morel
24275a1de5
[FIX] listview tests: ListView.do_fill_table not asynchronous anymore, ListView.get_selection moved to ListView.List
...
bzr revid: xmo@openerp.com-20110516073519-25veovu7tvl31j4d
2011-05-16 09:35:19 +02:00