Commit Graph
108 Commits
Author SHA1 Message Date
vta vta@openerp.com 877957819e [FIX] Fixed a forgotten add(), SearchView#on_invalid().
bzr revid: vta@openerp.com-20121019111558-zu8hzh7u61srew2e
2012-10-19 13:15:58 +02:00
Xavier Morel b5be361c55 [FIX] various listview issues
bzr revid: xmo@openerp.com-20121018150108-althdcxk3jc2bkun
2012-10-18 17:01:08 +02:00
vta vta@openerp.com 59aaa765a6 [FIX] Fixed event name.
bzr revid: vta@openerp.com-20121018124607-rifo06nfx7jo134e
2012-10-18 14:46:07 +02:00
Xavier Morel f910bc6780 [FIX] don't trigger search twice when a facet is removed from the query due to its values becoming empty
The facet removal from its last value being removed
(`this.remove(facet)` in the 'change' handler of the SearchQuery)
broadcasted its `remove` event, triggering the `do_search` (and
repaint) hook of the SearchView a second time right after the
`change`-triggered search.

Not only is this unnecessary and duplicated work (the `remove` is a
sync operation, so searchview-attached events haven't yet executed by
the time `remove` is called), the listview really doesn't like getting
a ``search`` signal while it's already executing a search.

So fix that.

bzr revid: xmo@openerp.com-20121018124005-6vfi7tqasz32ai8v
2012-10-18 14:40:05 +02:00
ggh-openerp 1a476fed69 [IMP] Remove add() in on_search method
bzr revid: ggh@tinyerp.com-20121011053907-tykje6i145fmjrl3
2012-10-11 11:09:07 +05:30
Vidhin Mehta (OpenERP) 558ad0616a [IMP]remove callbacks from call method and improve related code.
bzr revid: vme@tinyerp.com-20121003103428-fnr942tzl065rcei
2012-10-03 16:04:28 +05:30
Vidhin Mehta (OpenERP) b4c8143480 [IMP]remove callback from name_get function and improve related code.
bzr revid: vme@tinyerp.com-20120928065341-uiu3nf7seu5sps53
2012-09-28 12:23:41 +05:30
Xavier Morel a933c17e54 [FIX] integrate web tests into buildbot runner, fix broken tests
* Remove deprecated tests and dead code
* Fix usage of mock
* Moar fixes

bzr revid: xmo@openerp.com-20120910105129-rxh3jqwkewh65rl3
2012-09-10 12:51:29 +02:00
Xavier Morel 4e23bcf80a [IMP] update test runner pages, fix intermittent failure due to async test which didn't stop the test runner
bzr revid: xmo@openerp.com-20120905151914-hkrstjh5698dnddg
2012-09-05 17:19:14 +02:00
niv-openerp 5e338c591a [IMP] made a whole-application replace of $element by $el
bzr revid: nicolas.vanhoren@openerp.com-20120824182707-vt91ef40ieeudwyw
2012-08-24 20:27:07 +02:00
Christophe Simonis 63e4d9b572 [IMP] sed -i '' -e 's/connection/session/g'
bzr revid: chs@openerp.com-20120814152900-8r84kyz0qy1hwkvz
2012-08-14 17:29:00 +02:00
Xavier Morel f1b6bc35d6 [FIX] add current_date to JS evaluation context
bzr revid: xmo@openerp.com-20120801144435-h0643av6ju9ncdpx
2012-08-01 16:44:35 +02:00
Xavier Morel fbce1b1a1d [FIX] increase test timeout due to mis-ordered async test taking way longer than expected
bzr revid: xmo@openerp.com-20120801130316-uzogecm5req2qrpj
2012-08-01 15:03:16 +02:00
Xavier Morel acaec8b582 [FIX] Widget test: was changed to always have a root element for backwards fuckery reasons
bzr revid: xmo@openerp.com-20120801125910-x6obdnlx2oi5e3kw
2012-08-01 14:59:10 +02:00
Antony Lesuisse fbb2f80cf1 [MERGE] backbonify-widgets, minor api changes that make Widget more similar to backbone Views
bzr revid: al@openerp.com-20120801124804-ov9l9ytabqx54gdo
2012-08-01 14:48:04 +02:00
Xavier Morel f5bff3996b [FIX] editor base state: initializing formview (and its pager) requires an actual dataset.ids.length
bzr revid: xmo@openerp.com-20120801123635-y21onweovg0uih7d
2012-08-01 14:36:35 +02:00
Xavier Morel 8a7428d731 [FIX] editable listview test: set_editable was removed, pass editable as option when creating listview
bzr revid: xmo@openerp.com-20120801123449-e65apxliok8fsrvq
2012-08-01 14:34:49 +02:00
Xavier Morel d304f9fbb7 [CHG] rename this. to this.
because why make things simple when you can make them fucked up

bzr revid: xmo@openerp.com-20120726075359-b0uvuuagrfsf7nhb
2012-07-26 09:53:59 +02:00
Xavier Morel 0310d5ae73 [REM] #events can't be a function anymore
bzr revid: xmo@openerp.com-20120725091331-jvhgyf427cuxbwl4
2012-07-25 11:13:31 +02:00
Antony Lesuisse 3235ed8a18 [MERGE] trunk
bzr revid: al@openerp.com-20120725082646-ff6ljt0pquvm0dup
2012-07-25 10:26:46 +02:00
Antony Lesuisse 3611d585b3 [MERGE] trunk
bzr revid: al@openerp.com-20120721201123-3824izt73xvmk9vl
2012-07-21 22:11:23 +02:00
Xavier Morel 01e6e3ec07 [IMP] DOWNCASE ALL THE THINGS
apparently and contrary to what I remembered, we're still supposed to use underscore_separated method names, not camelCase

bzr revid: xmo@openerp.com-20120717132308-wvpldtprt33heee3
2012-07-17 15:23:08 +02:00
Xavier Morel 75c2845fb5 [ADD] default_get support on new row creation
bzr revid: xmo@openerp.com-20120716110430-9uv352m46d3mn1bx
2012-07-16 13:04:30 +02:00
Xavier Morel 0c872cf469 [FIX] trailing comma in array literal creates a single undefined element in IE8
bzr revid: xmo@openerp.com-20120712120657-14j2izo6idppq5aq
2012-07-12 14:06:57 +02:00
Xavier Morel 0bccd9be59 [FIX] tests: update jquery link, fix broken searchview test following merge
bzr revid: xmo@openerp.com-20120712115552-7adsu941o3wjtrmr
2012-07-12 13:55:52 +02:00
Xavier Morel e431cda2d3 [MERGE} from trunk
bzr revid: xmo@openerp.com-20120711112959-tcb9epdfc9frt6ux
2012-07-11 13:29:59 +02:00
Xavier Morel 5b6df7ebeb [ADD] Collection#pred as well, while we're at it
bzr revid: xmo@openerp.com-20120710131205-voi1nc5rkvewjr2f
2012-07-10 15:12:05 +02:00
Xavier Morel 079e90afbb [ADD] successor method to list collections, to safely get the "next" record in a nested (groupby) context
bzr revid: xmo@openerp.com-20120710123718-kiot6zzji07a4iao
2012-07-10 14:37:18 +02:00
Xavier Morel d968398d15 [ADD] events tests
bzr revid: xmo@openerp.com-20120705124342-vm0pavyzqfuwa3k5
2012-07-05 14:43:42 +02:00
Xavier Morel 09bf459bbc [TESTS] add some
bzr revid: xmo@openerp.com-20120705070854-tsyl27v3hdh7sbds
2012-07-05 09:08:54 +02:00
Xavier Morel b289447826 [TEST] saving of editor with required non-filled field, and cancelling of edition
bzr revid: xmo@openerp.com-20120704152329-81ktb8umm9xbr5wt
2012-07-04 17:23:29 +02:00
Xavier Morel 028f9d115f [FIX] strangely implemented searchview test breaking some subsequent tests randomly
bzr revid: xmo@openerp.com-20120704140240-6yehb6c6ffxi7d12
2012-07-04 16:02:40 +02:00
Xavier Morel cd90a9365c [FUCK] that shit
bzr revid: xmo@openerp.com-20120704133521-7x05840jzek1d8e7
2012-07-04 15:35:21 +02:00
Xavier Morel 25284686f3 [TEST] saving of record being edited, improve RPC mocking to allow dispatch on ORM method name
bzr revid: xmo@openerp.com-20120704132822-3p4h1c6cyr0qvn2x
2012-07-04 15:28:22 +02:00
Xavier Morel dda83dc1ea [IMP] extract some testing primitives to a dedicated module, migrate search view tests to those
bzr revid: xmo@openerp.com-20120704112406-1lqwahtdo7fnla8o
2012-07-04 13:24:06 +02:00
Xavier Morel 039cf85e32 [TEST] start adding some testing to new editable listview, validate structure of editionView in Editor
bzr revid: xmo@openerp.com-20120704095626-j7wtbgdmoti0kjie
2012-07-04 11:56:26 +02:00
Xavier Morel 6719fb96d7 [FIX] handling of setting/resetting ids on records in list collections
bzr revid: xmo@openerp.com-20120702122902-f349shdjslbbxd3k
2012-07-02 14:29:02 +02:00
Antony Lesuisse 8e392289a3 [MERGE] search many2one default create in context
bzr revid: al@openerp.com-20120628142640-kp5scu95zuy7alrw
2012-06-28 16:26:40 +02:00
Xavier Morel 1f84b7a37d [ADD] set 'default_' key in context when searching on a single existing record in an m2o, by default
bzr revid: xmo@openerp.com-20120626091307-45vygymu8y1198ar
2012-06-26 11:13:07 +02:00
Xavier Morel 846cedf43d [FIX] correctly deselect custom filter when removing it from search
bzr revid: xmo@openerp.com-20120626081055-x1j3em2v8zf54m4o
2012-06-26 10:10:55 +02:00
Xavier Morel 364ec932aa [IMP] check custom filter when selecting it
bzr revid: xmo@openerp.com-20120626080633-i8z8xvxqszt6yo2v
2012-06-26 10:06:33 +02:00
Xavier Morel f0ad5fedac [IMP] move .replaceWith() back into renderElement
* Better formalizes repeated calls to renderElement
* Makes setElement cleaner and less surprising to call

bzr revid: xmo@openerp.com-20120612132120-egsg4kr5n2riv4zk
2012-06-12 15:21:20 +02:00
Xavier Morel b19354ae20 [TEST] getValue/events as a callable
bzr revid: xmo@openerp.com-20120611125454-nli5gkds9ffksmdm
2012-06-11 14:54:54 +02:00
Xavier Morel c64d8859a0 [TEST] declarative events delegation
bzr revid: xmo@openerp.com-20120611124824-w83h6betknrajyte
2012-06-11 14:48:24 +02:00
Xavier Morel 2a9bd73a83 [TEST] Widget#$ shortcut
bzr revid: xmo@openerp.com-20120611120818-apsawz6kypnpc5m3
2012-06-11 14:08:18 +02:00
Xavier Morel c531cb96ca [TEST] Wisget#renderElement with template
bzr revid: xmo@openerp.com-20120611114849-dwk4erae5f1tyc6o
2012-06-11 13:48:49 +02:00
Xavier Morel a0c5057dba [TEST] Widget#renderElement with no template specified, fix Widget#make's handling of attributes
bzr revid: xmo@openerp.com-20120611113238-wz516g9tl0xp1igd
2012-06-11 13:32:38 +02:00
Xavier Morel 772bed66f3 [TEST] Widget#proxy, with both String and Function arguments
bzr revid: xmo@openerp.com-20120611094840-mtilgirzwlhkl2qc
2012-06-11 11:48:40 +02:00
Xavier Morel 983b63f8ed [FIX] tests: FilterGroup now needs its view fake to have a query (with an on method)
bzr revid: xmo@openerp.com-20120522132321-5x2gwps4gaj78agp
2012-05-22 15:23:21 +02:00
Xavier Morel 93bf731f2f [TEST] for clearing search view
bzr revid: xmo@openerp.com-20120511125724-we09bm8aif8z4drg
2012-05-11 14:57:24 +02:00