Xavier Morel
93a1fa9263
[ADD] some jsdoc before refactoding dataset methods
...
bzr revid: xmo@openerp.com-20110811062835-smlv47aybl336q9b
2011-08-11 08:28:35 +02:00
Xavier Morel
84dde229f0
[IMP] use Class for Compound* types instead of manual prototypes
...
bzr revid: xmo@openerp.com-20110810145840-rblh9kouk1pf63by
2011-08-10 16:58:40 +02:00
Xavier Morel
2b460ae48b
[REM] tests of date search widget, since the complexity of the widget was removed
...
bzr revid: xmo@openerp.com-20110810133845-yuzzt1p6nvrh7lcw
2011-08-10 15:38:45 +02:00
Fabien Meghazi
b8304e55f8
[ADD] Added error_callback to Dataset#write
...
bzr revid: fme@openerp.com-20110804145342-81mvfc4x4ydt0hnu
2011-08-04 16:53:42 +02:00
Xavier Morel
a66bbb20fc
[MERGE] from trunk
...
bzr revid: xmo@openerp.com-20110804085516-nz1nelcutywq7gn4
2011-08-04 10:55:16 +02:00
niv-openerp
8e8ca695cb
[imp] changed Controller to Widget and BaseWidget to OldWidget
...
bzr revid: nicolas.vanhoren@openerp.com-20110728144912-t3kml1yo8gt261ga
2011-07-28 16:49:12 +02:00
niv-openerp
62e969578f
[fix] small inconsistency with deferred in dataset
...
bzr revid: nicolas.vanhoren@openerp.com-20110727093014-fe1uhbkcyxl86qyz
2011-07-27 11:30:14 +02:00
niv-openerp
8184aa0154
[imp] improved o2m, added auto-save
...
bzr revid: nicolas.vanhoren@openerp.com-20110726153747-2zj63korpu6xct6e
2011-07-26 17:37:47 +02:00
Xavier Morel
e2b9dd1065
[MERGE] all kinds of broken shit from trunk
...
bzr revid: xmo@openerp.com-20110726123626-l54udy078dwj9rjo
2011-07-26 14:36:26 +02:00
niv-openerp
a6d404cc47
[imp] changed DataSet behavior to be more logical
...
bzr revid: nicolas.vanhoren@openerp.com-20110722160334-03ok2myefe804wn1
2011-07-22 18:03:34 +02:00
Antony Lesuisse
d4fd976ddf
controllers is family fixes 6
...
bzr revid: al@openerp.com-20110718193930-jor019p41amxpnup
2011-07-18 21:39:30 +02:00
niv-openerp
da5f320a0a
[merge]
...
bzr revid: nicolas.vanhoren@openerp.com-20110718152954-1osrwsxmyij4wkun
2011-07-18 17:29:54 +02:00
niv-openerp
193fc86c38
[fix] fix a big bug in the one2many
...
bzr revid: nicolas.vanhoren@openerp.com-20110718152807-bgy47f32tlx9xdzb
2011-07-18 17:28:07 +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
Xavier Morel
d4dc9dec04
[MERGE] bunch of stuff from trunk
...
bzr revid: xmo@openerp.com-20110714102243-kiyp0o6hjbhmxecd
2011-07-14 12:22:43 +02:00
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
f7a47fe58c
[MERGE] from trunk, in order to get some dataset & groupby fixes
...
bzr revid: xmo@openerp.com-20110706142536-dwxuq2v10u660703
2011-07-06 16:25:36 +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
886cf032a5
[ADD] some jsdoc annotations
...
bzr revid: xmo@openerp.com-20110701115707-oyqdzac01gwztr7o
2011-07-01 13:57:07 +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