Fabien Meghazi
f06b78dbf6
[MERGE] trunk
...
bzr revid: fme@openerp.com-20121107091047-uehws6qa3ouaa4fs
2012-11-07 10:10:47 +01:00
Xavier Morel
1c721d43c5
[FIX] disable advanced search apply button in search view when there are no propositions
...
avoids locking up the browser by entering an infinite loop when unshifting ors on domains
bzr revid: xmo@openerp.com-20121106161715-7vc55kps8gi8h3lb
2012-11-06 17:17:15 +01:00
Xavier Morel
e3e54b0e7a
[IMP] port searchview to helpers
...
bzr revid: xmo@openerp.com-20121106152148-33ctafxz5iy53nl1
2012-11-06 16:21:48 +01:00
Xavier Morel
a501903c23
[IMP] convert searchview to DOM events hash
...
bzr revid: xmo@openerp.com-20121106150449-1sxybk8jml7xa2ji
2012-11-06 16:04:49 +01:00
Xavier Morel
2ebaa6f666
[FIX] searchview drawer closing when clicking advanced proposition
...
handler for "global click filtered by whether click target is outside
of search view" executed after prop deletion handler has executed =>
the whole proposition has already been removed from the document and
thus isn't a descendent of the searchview anymore => test matches and
drawer closes.
Altered handler to stop propagation so does not reach global handler.
bzr revid: xmo@openerp.com-20121106144736-l0pde7phf3nake4t
2012-11-06 15:47:36 +01:00
Fabien Meghazi
903edfe306
[FIX] Changed search view for jquery ui upgrade (autoFocus doesn't seems to work)
...
bzr revid: fme@openerp.com-20121031173009-fxkz0ongj9b2v6f2
2012-10-31 18:30:09 +01:00
Fabien Meghazi
ca6c49becf
[IMP] jQuery deferred API changes refactoring. Changed 'then's in 'done'/'fail' and 'pipe's in 'then'
...
bzr revid: fme@openerp.com-20121030140630-gf20ye8fou1ebxft
2012-10-30 15:06:30 +01:00
niv-openerp
6c9137021c
[FIX] small problem in search view, it did not supported the field type html (caused an exception in Notes)
...
bzr revid: nicolas.vanhoren@openerp.com-20121029111542-tikkk513ilv0br4e
2012-10-29 12:15:42 +01:00
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
Xavier Morel
8b2a07eb55
[REM] dead code
...
bzr revid: xmo@openerp.com-20121018123403-k97t9x0hiie56f2n
2012-10-18 14:34:03 +02:00
vta vta@openerp.com
98431bccd9
[MERGE] Latest trunk.
...
bzr revid: vta@openerp.com-20121018122324-hf4y784k49s0vsye
2012-10-18 14:23:24 +02:00
vta vta@openerp.com
8b4580ea86
[FIX] Fixed on_loaded in Menu and Search.
...
bzr revid: vta@openerp.com-20121018085028-d0ww48el2jwmtcpg
2012-10-18 10:50:28 +02:00
Vishmita
15974eb2e0
[IMP]replace callenabled for on_loaded
...
bzr revid: vja@tinyerp.com-20121012114534-qx7y6dzmqkw7t7px
2012-10-12 17:15:34 +05:30
ggh-openerp
73c32663d6
add on_search comment
...
bzr revid: ggh@tinyerp.com-20121011085807-vmldw354xdbruj1s
2012-10-11 14:28:07 +05:30
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
ggh-openerp
6454fd1590
[IMP] Remove add_last in on_search method
...
bzr revid: ggh@tinyerp.com-20121010132349-n3gdg0jhtyjfufma
2012-10-10 18:53:49 +05:30
Antony Lesuisse
55bcd978af
[MERGE] callback2deferred session.rpc
...
bzr revid: al@openerp.com-20121006163238-7ni5r324c0yqi5a0
2012-10-06 18:32:38 +02:00
ggh-openerp
30069a0239
[IMP]In rpc method remove callback and modify relate code
...
bzr revid: ggh@tinyerp.com-20121003122836-36g8ijxdcjwgntjl
2012-10-03 17:58:36 +05:30
Antony Lesuisse
4f299e1b1b
[MERGE] trunk
...
bzr revid: al@openerp.com-20121002220720-z0rjvmjx8kvy52zh
2012-10-03 00:07:20 +02:00
Antony Lesuisse
1a369bfd3c
[MERGE] callback2deferred dataset.name_get
...
bzr revid: al@openerp.com-20120930150329-b3j0pmnf7gnxlxzj
2012-09-30 17:03:29 +02:00
Olivier Dony
f742d3b213
[FIX] web: minor improvements to some translateable terms
...
bzr revid: odo@openerp.com-20120928210007-ukf4u20rpwmugfwt
2012-09-28 23:00:07 +02:00
Xavier Morel
ab9c637ae8
[FIX] searchview doc
...
bzr revid: xmo@openerp.com-20120928130653-pqovcp0pnpa6x4bb
2012-09-28 15:06:53 +02:00
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
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
niv-openerp
3ebfaedd64
[IMP] removed a lot of OldWidget usage
...
bzr revid: nicolas.vanhoren@openerp.com-20120814134246-y2awqbt2i1hcan61
2012-08-14 15:42:46 +02:00
Christophe Simonis
fb86ddb644
[IMP] merge web_dashboard module into board module of addons branch
...
[IMP] extract dashboard part of web into board module
bzr revid: chs@openerp.com-20120809152043-0yfm6l2zt44eiqrb
2012-08-09 17:20:43 +02:00
Xavier Morel
3b5bd3598c
[FIX] kinda sorta rename add to dashboard feature to add to reporting according to apr's wishes
...
also change button from 'save' to 'add'
bzr revid: xmo@openerp.com-20120801135803-j4wwbdm2ngdz4koo
2012-08-01 15:58:03 +02:00
Xavier Morel
cd65d4aa21
[IMP] make unreadable code less unreadable, fix some warning, use Widget#$
...
bzr revid: xmo@openerp.com-20120801135435-w2erakp9qaqtcotb
2012-08-01 15:54:35 +02:00
Antony Lesuisse
574f3891a5
[MERGE] trunk
...
bzr revid: al@openerp.com-20120801104657-cinfl0svpnc8njs5
2012-08-01 12:46:57 +02:00
Xavier Morel
7183f749b1
[FIX] trigger DOM blur event on searchview root to allow autocomplete to close-on-blur
...
bzr revid: xmo@openerp.com-20120726113311-axgwfq4d71rc1u50
2012-07-26 13:33:11 +02:00
Xavier Morel
b09a121bd0
[IMP] clear out internal autocomplete cache of searchview on blur
...
ensures consecutive searches of the same element will behave correctly
(trigger a new autocompletion instead of nooping the second time
around because the new value is the same as the old/stored one)
bzr revid: xmo@openerp.com-20120726113105-d73fere31qdy8wda
2012-07-26 13:31:05 +02:00
Antony Lesuisse
3235ed8a18
[MERGE] trunk
...
bzr revid: al@openerp.com-20120725082646-ff6ljt0pquvm0dup
2012-07-25 10:26:46 +02:00
Xavier Morel
6b719b708f
[IMP] trigger a new search when clicking on the searchview's spyglass
...
Required reifying the purely decorative spyglass (created via :before)
into an actual button and moving that button to the right place (after
removing all decorations set by default on buttons e.g. shadows &al).
apr request.
bzr revid: xmo@openerp.com-20120724124607-bc1nsywtth7cn11i
2012-07-24 14:46:07 +02:00
Xavier Morel
2f10bc4071
[IMP] validation of search_default values for m2o fields
...
Just because the search_default is an array does not mean it's a
name_get apparently: there are many cases of a single id wrapped in an
array (``[id]``).
So ensure that the search_default is an array *of length 2 whose
second element is a string* before considering it a name_get and using
it as-is (without resolving the label via an explicit name_get).
Also, error out for any m2o search_default which is an array of length
> 1 (unless the second element is a string as per description above).
bzr revid: xmo@openerp.com-20120724115659-l0n0gjr91bcop13z
2012-07-24 13:56:59 +02:00
Antony Lesuisse
3611d585b3
[MERGE] trunk
...
bzr revid: al@openerp.com-20120721201123-3824izt73xvmk9vl
2012-07-21 22:11:23 +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
Fabien Meghazi
c8da73626e
[IMP] Hide seatchview on outside click event
...
bzr revid: fme@openerp.com-20120702125458-d44dtn8lgr0x4ads
2012-07-02 14:54:58 +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
niv-openerp
3e30f54cbf
[FIX] lot of stupid stuff in add to dashboard
...
bzr revid: nicolas.vanhoren@openerp.com-20120628121053-nct0zo9go1bzdjrs
2012-06-28 14:10:53 +02:00
niv-openerp
0f2b27e161
[FIX] problem with search view
...
bzr revid: nicolas.vanhoren@openerp.com-20120628120423-1rjiwsg35oleucyq
2012-06-28 14:04:23 +02:00
Xavier Morel
7b0bef5bcc
[FIX] incorrect handling of present-but-empty contexts, which seem to be rather common
...
bzr revid: xmo@openerp.com-20120627095744-ijhf7p769pw4fqdg
2012-06-27 11:57:44 +02:00
niv-openerp
ce9879bea4
[FIX] put back the "Add to Dashboard" feature
...
bzr revid: nicolas.vanhoren@openerp.com-20120626145445-kym37wuxkaapdwe6
2012-06-26 16:54:45 +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
Vidhin Mehta (OpenERP)
305eab618a
[IMP]optimise code.
...
bzr revid: vme@tinyerp.com-20120625100156-jx8jkfujf8nhoiy1
2012-06-25 15:31:56 +05:30
Vidhin Mehta (OpenERP)
372c96d5d7
[MERGE]merge with trunk and in testing OK.
...
bzr revid: vme@tinyerp.com-20120622085809-grscc61zy09malr9
2012-06-22 14:28:09 +05:30
Vidhin Mehta (OpenERP)
9154d21065
[IMP]remove console
...
bzr revid: vme@tinyerp.com-20120622051116-1uowhyk27ffh34wc
2012-06-22 10:41:16 +05:30
Vidhin Mehta (OpenERP)
9c8d325d97
[IMP]get dashboard from menu also.
...
bzr revid: vme@tinyerp.com-20120621144640-by7y68e7bx19e3f1
2012-06-21 20:16:40 +05:30
Vidhin Mehta (OpenERP)
235cca3aab
[MERGE]merge with trunk and remove conflicts.
...
bzr revid: vme@tinyerp.com-20120620144304-yr9zodv1skkrlccf
2012-06-20 20:13:04 +05:30
Vidhin Mehta (OpenERP)
596ebb826f
[IMP]better variable name.
...
bzr revid: vme@tinyerp.com-20120620142746-c1k8612rkqickipw
2012-06-20 19:57:46 +05:30
Vidhin Mehta (OpenERP)
f8fc7258b3
[IMP]varibale name.
...
bzr revid: vme@tinyerp.com-20120620141926-x4dx3krkio9fgw3k
2012-06-20 19:49:26 +05:30
Vidhin Mehta (OpenERP)
3ce938d905
[IMP]get dashboard's in js.
...
bzr revid: vme@tinyerp.com-20120620140324-wxp2pp2p6boct050
2012-06-20 19:33:24 +05:30
Vidhin Mehta (OpenERP)
2b33e4914a
[IMP]remove python code.
...
bzr revid: vme@tinyerp.com-20120620093813-a11mc1p64407jk6d
2012-06-20 15:08:13 +05:30
Vidhin Mehta (OpenERP)
a97492b20f
[IMP]remove unnecessary code.
...
bzr revid: vme@tinyerp.com-20120615130245-0ckjqkh99liirdo7
2012-06-15 18:32:45 +05:30
Xavier Morel
3f1757869c
[IMP] make searchview base widget not inherit from OldWidget anymore
...
bzr revid: xmo@openerp.com-20120611091857-wcpc2oqywoc0gg51
2012-06-11 11:18:57 +02:00
Vidhin Mehta (OpenERP)
abc6141826
[IMP]improvements.
...
bzr revid: vme@tinyerp.com-20120607113147-7lly2zl317b8n88v
2012-06-07 17:01:47 +05:30
Vidhin Mehta (OpenERP)
ff00c0f635
[IMP]Dashboard items added.
...
bzr revid: vme@tinyerp.com-20120607103029-0iumqrzigswzpny8
2012-06-07 16:00:29 +05:30
Vidhin Mehta (OpenERP)
a91e66b76b
[IMP]improvements to dashboard.
...
bzr revid: vme@tinyerp.com-20120606043710-prr9se9pz184dntx
2012-06-06 10:07:10 +05:30
Vidhin Mehta (OpenERP)
f38d0f6736
[IMP]create widget for add to dashboard.
...
bzr revid: vme@tinyerp.com-20120605091551-pecg3070vi94jxeu
2012-06-05 14:45:51 +05:30
Minh Tran
9b447c025d
search, shared filters
...
bzr revid: mit@openerp.com-20120531170228-sbzxghl9vndntf4k
2012-05-31 19:02:28 +02:00
Minh Tran
7d01960538
searchview fixes
...
bzr revid: mit@openerp.com-20120531134150-nqxas33g0ow27ciy
2012-05-31 15:41:50 +02:00
Minh Tran
4abc07e5b8
more styling of the searchview
...
bzr revid: mit@openerp.com-20120525170053-54m17it6lzwnea33
2012-05-25 19:00:53 +02:00
Xavier Morel
64dc888053
[MERGE] from trunk
...
bzr revid: xmo@openerp.com-20120523112941-botqwc4jpnk86571
2012-05-23 13:29:41 +02:00
Xavier Morel
9168a66d6a
[ADD] is_default custom filters
...
* Second checkbox when creating a custom filter, unchecked by default
* Global is_default filter overrides action defaults
* Personal is_default filter overrides global is_default
* Extracted sections of CustomFilter's behavior into methods to make
them usable from the SearchView and easier to understand
Hack note: CustomFilters#facet_for_defaults is weird stuff, it never
fetches an actual facet, but it forces the SearchView's defaults
handling to wait until CustomFilters is ready before executing,
meaning SearchView#setup_default_query can run safe in the knowledge
that custom filters are filled and everything.
That this hidden dependency exists bugs me, though there's a comment.
bzr revid: xmo@openerp.com-20120523112314-618hfttpegn39qey
2012-05-23 13:23:14 +02:00
Xavier Morel
c54383d4e5
[IMP] extract key-creation in custom filters, store complete filter descriptor as well (in a separate mapping)
...
bzr revid: xmo@openerp.com-20120523104959-859cuucade83u11o
2012-05-23 12:49:59 +02:00
Xavier Morel
174362aac0
[FIX] display issue with boolean fields in drawer's advanced search
...
bzr revid: xmo@openerp.com-20120522064607-2umxpgnltysjnmhq
2012-05-22 08:46:07 +02:00
Xavier Morel
a83e6221c8
[FIX] stupid mistype/wrong variable name in Date/DateTime's Facet -> domain conversion
...
bzr revid: xmo@openerp.com-20120521104334-1zfyjdjbxeajgg2c
2012-05-21 12:43:34 +02:00
Xavier Morel
1568d25eb0
[ADD] marking of currently selected filters in the drawer
...
Visually hints to users currently manipulating the drawer that a given
filter is currently selected.
bzr revid: xmo@openerp.com-20120518152342-xmqhwlml0bsgodhq
2012-05-18 17:23:42 +02:00
Xavier Morel
ce18f726b4
[IMP] move manage_filters to viewmanager's debug menu
...
bzr revid: xmo@openerp.com-20120518140001-jbocagvn7weqlqq3
2012-05-18 16:00:01 +02:00
Xavier Morel
ffbd7480a4
[ADD] 'locked' icon on non-public custom filters
...
Icon is kind-of crummy, but none of the iconic font's icons work,
they're too small to work correctly (especially when using both locked
and unlocked, they can't be distinguished below a font size of ~48)
bzr revid: xmo@openerp.com-20120518111202-3h19grpq5cxgejg0
2012-05-18 13:12:02 +02:00
Xavier Morel
aa3ef52416
[FIX] make display of advanced filters look less purely technical and more human-readable
...
* Use field strings
* Use operator labels
* If applicable, use human-readable version of field values
bzr revid: xmo@openerp.com-20120516132237-z6zacy34sq7ujhg0
2012-05-16 15:22:37 +02:00
Xavier Morel
378100e3ac
[IMP] cleanup advanced search fields
...
bzr revid: xmo@openerp.com-20120516122551-c670k5lrqxnyx5ej
2012-05-16 14:25:51 +02:00
Xavier Morel
0416eb786d
[ADD] auto-completion on filters (and group-by filters)
...
bzr revid: xmo@openerp.com-20120515064340-l2kuwbf95faqy35r
2012-05-15 08:43:40 +02:00
Xavier Morel
80363141d7
[IMP] iconify delete buttons for advanced filters and custom filters
...
bzr revid: xmo@openerp.com-20120515061212-b0jeuludzh4jstob
2012-05-15 08:12:12 +02:00
Xavier Morel
865f022aa5
[FIX] handling of focusing and blurring searchview itself (styling) in MSIE and Firefox
...
bzr revid: xmo@openerp.com-20120514154158-a97vqsxav5afyquo
2012-05-14 17:41:58 +02:00
Xavier Morel
a14ebda56d
[FIX] focus when clicking on search view itself in FF and MSIE
...
bzr revid: xmo@openerp.com-20120514150510-jbc2nf6o3s1gv6wf
2012-05-14 17:05:10 +02:00
Xavier Morel
c20d7cfb47
[IMP] unify open/close behavior of advanced and custom filters, close custom after creating
...
bzr revid: xmo@openerp.com-20120511143225-472ineg91e111tvv
2012-05-11 16:32:25 +02:00
Xavier Morel
7b4137b49c
[FIX] advanced search
...
reimplement facet management internally, don't try to go through facets
also tests
bzr revid: xmo@openerp.com-20120511120726-ue2y7exuqv2wh22p
2012-05-11 14:07:26 +02:00
Xavier Morel
323708d83d
[IMP] use filter help message if no string on a search filter
...
bzr revid: xmo@openerp.com-20120511095822-eqhuo6isbfvdf44c
2012-05-11 11:58:22 +02:00
Xavier Morel
cfdcd92ecc
[ADD] trivial handling of private/public filters
...
bzr revid: xmo@openerp.com-20120510190439-o9s20f10pmcukefu
2012-05-10 21:04:39 +02:00
Xavier Morel
978eae621d
[CHG] split custom filters handling out of regular filters
...
bzr revid: xmo@openerp.com-20120510185214-qyh7wybl0un036dt
2012-05-10 20:52:14 +02:00
Xavier Morel
06aa99eb19
[IMP] correctly re-focus search view after rendering it
...
bzr revid: xmo@openerp.com-20120510124244-y1t9wy0zitfxlfv3
2012-05-10 14:42:44 +02:00
Xavier Morel
0d51f8992c
[IMP] Insert completed facet in stead of the index used for the completion, instead of always adding them to the end (if applicable)
...
bzr revid: xmo@openerp.com-20120509151217-4juo2hm8xxj21uj9
2012-05-09 17:12:17 +02:00
Xavier Morel
538b16c235
[ADD] backspace from within an empty input should remove the preceding facet, if any
...
bzr revid: xmo@openerp.com-20120509141242-5l75w08ruv4r8xtc
2012-05-09 16:12:42 +02:00
Xavier Morel
cd4c6fdd28
[ADD] core keyboard navigation between facets
...
bzr revid: xmo@openerp.com-20120509133241-42nl3comllgerxui
2012-05-09 15:32:41 +02:00
Xavier Morel
6b2efcbeb9
[ADD] new implementation of saving current search to new filter
...
bzr revid: xmo@openerp.com-20120508162137-b3qu0os79zl5wz0w
2012-05-08 18:21:37 +02:00
Xavier Morel
84cae313d2
[ADD] icons instead of category names for filters (and groupby filters)
...
bzr revid: xmo@openerp.com-20120504095717-va123l3gz3wvhjd1
2012-05-04 11:57:17 +02:00
Xavier Morel
7e0bd0103b
[ADD] single-facet handling of groupby
...
bzr revid: xmo@openerp.com-20120504094306-dieslsoibjjbtcs5
2012-05-04 11:43:06 +02:00
Xavier Morel
2251227058
[FIX] Advanced view adaptations to new facet & value shapes
...
bzr revid: xmo@openerp.com-20120503193645-ccap97ojw9cgre3y
2012-05-03 21:36:45 +02:00
Xavier Morel
d4a9e10308
[ADD] handling of reset button on searchview
...
bzr revid: xmo@openerp.com-20120503193110-aqmeo3dz94y49fg0
2012-05-03 21:31:10 +02:00
Xavier Morel
94624b74b0
[FIX] get_* methods on FilterGroup
...
bzr revid: xmo@openerp.com-20120503192645-8x63l5rnwz2vg2yp
2012-05-03 21:26:45 +02:00
Xavier Morel
64538c181e
[FIX] domain and context generation on m2o fields
...
by default, an m2o field should behave like a charfield (== use its
textual value), but if the domain is fully default (no filter_domain
and no custom operator) and the user explicitly selected an object
(which is the only thing he can do at this point in the new search
view), then we can generate a domain matching exactly the stored id.
bzr revid: xmo@openerp.com-20120503163709-odlnib513h3f84v6
2012-05-03 18:37:09 +02:00
Xavier Morel
5c4ac52291
[FIX] typo: remember to instantiate objects
...
bzr revid: xmo@openerp.com-20120503155532-q2es166215yfgn7g
2012-05-03 17:55:32 +02:00
Xavier Morel
aca54c9812
[REM] pointless overrides to value_from and make_domain
...
- selection does not need to override get_value/value_from
- neither does boolean, its selection values can be correctly set from the start
- m2o can only facet correct values, not fuzzy, so the make_domain override is not useful
bzr revid: xmo@openerp.com-20120503154751-w5pojni831xwu6bv
2012-05-03 17:47:51 +02:00
Xavier Morel
0c99ac1333
[FIX] domain and context generation from fields, also doc
...
bzr revid: xmo@openerp.com-20120503154311-4pg762pcgt83416c
2012-05-03 17:43:11 +02:00
Xavier Morel
6d12c155a4
[TEST] serialization of search domains & contexts by the search view
...
bzr revid: xmo@openerp.com-20120503125949-2m8euott3xzyivdm
2012-05-03 14:59:49 +02:00
Xavier Morel
836dfa6aa8
[IMP] move responsibility for facet removal (on click) to the facet's view, use Model#destroy for facet removal instead of a convoluted route through SearchView#query
...
bzr revid: xmo@openerp.com-20120503115608-7dwyj5j9mq82gv73
2012-05-03 13:56:08 +02:00
Xavier Morel
69af9da2c8
[IMP] change minLength condition to 1 for completion
...
0 allows opening a completion list with nothing, but that turns out not to be very useful and it interacts weirdly with tabbing between search inputs
bzr revid: xmo@openerp.com-20120503080723-i4u9vl91rhlfhmg8
2012-05-03 10:07:23 +02:00
Xavier Morel
23ef3f9b96
[ADD] correct focus of facets in input sequence, ability to remove facet via backspace/delete
...
bzr revid: xmo@openerp.com-20120502153439-0374v3dqz5fbe1ju
2012-05-02 17:34:39 +02:00
Xavier Morel
f04eb6a29d
[IMP] comments for event bindings
...
bzr revid: xmo@openerp.com-20120502151011-4j8t9wworl7frndh
2012-05-02 17:10:11 +02:00
Xavier Morel
dce41d8aea
[ADD] automatic selection of first completion item in the list
...
bzr revid: xmo@openerp.com-20120502150808-jpqiq63574ds2c1g
2012-05-02 17:08:08 +02:00
Xavier Morel
f009c76598
[ADD] focus last input if the user clicks somewhere in the search view, outside of a search view control
...
bzr revid: xmo@openerp.com-20120502134312-0tuspwcmtlw5el3o
2012-05-02 15:43:12 +02:00
Xavier Morel
a40e410d1a
[ADD] correct handling of input blurring
...
bzr revid: xmo@openerp.com-20120502132743-dr29i2fvrpo6tute
2012-05-02 15:27:43 +02:00
Xavier Morel
25a30ad0ce
[ADD] autocompletion correctly using input values
...
bzr revid: xmo@openerp.com-20120502131226-w4agkq7qq5ni8nwl
2012-05-02 15:12:26 +02:00
Xavier Morel
a4918562a0
[ADD] selection/deselection of facets
...
bzr revid: xmo@openerp.com-20120430155912-c6tbyaqul6jc329u
2012-04-30 17:59:12 +02:00
Xavier Morel
7064a5b85e
[FIX] filter name fallback if there is no string on the filter
...
bzr revid: xmo@openerp.com-20120430150613-ifvar5ncjtakzpki
2012-04-30 17:06:13 +02:00
Xavier Morel
8be95a5549
[ADD] facet removal
...
bzr revid: xmo@openerp.com-20120430150330-qdypxzwvrd4x4hkz
2012-04-30 17:03:30 +02:00
Xavier Morel
b7626a59c3
[IMP] style search view/query
...
bzr revid: xmo@openerp.com-20120430143907-xqqyvtgazos70knw
2012-04-30 16:39:07 +02:00
Xavier Morel
24e104fcbe
[IMP] alias backbone to ensure searchview doesn't care about POS stomping an old-as-shit backbone on top of the more recent one bundled with core
...
bzr revid: xmo@openerp.com-20120427154614-otxpbsc9lio9azko
2012-04-27 17:46:14 +02:00
Xavier Morel
7dd114798d
[TEST] toggling of filters within a group
...
bzr revid: xmo@openerp.com-20120427153638-bkm6x2dfqf4tnjw9
2012-04-27 17:36:38 +02:00
Xavier Morel
1f0b1673e2
[TEST] rendering of drawer
...
bzr revid: xmo@openerp.com-20120427150436-3wxgyyp59l5vefr5
2012-04-27 17:04:36 +02:00
Xavier Morel
661eddb330
[REF] extract building of a facet descriptor from m2o/selection pairs into a function
...
bzr revid: xmo@openerp.com-20120427083024-zqq9hs203uaywlbr
2012-04-27 10:30:24 +02:00
Xavier Morel
8f5a591ab0
[TESTS] completion call on various widgets, fixed corresponding implementations
...
bzr revid: xmo@openerp.com-20120427080607-1bw1jpmu7h6zxdin
2012-04-27 10:06:07 +02:00
Xavier Morel
19e771dd9f
[IMP] remove redundancy in creating a facet from a default value in m2o fields
...
bzr revid: xmo@openerp.com-20120426141033-5blb5ifdfnzeea03
2012-04-26 16:10:33 +02:00
Xavier Morel
6d02c640bf
[TEST] defaults handling for selection & m2o fields, fix bugs in them
...
bzr revid: xmo@openerp.com-20120426135817-wesh3nkytuieilky
2012-04-26 15:58:17 +02:00
Xavier Morel
eb989f68a8
[TEST] behavior when selecting a given completion, fix handler
...
bzr revid: xmo@openerp.com-20120426121210-012l0doboktnic8s
2012-04-26 14:12:10 +02:00
Xavier Morel
2591fa5e1e
[FIX] missing state propagation in searchview initialization, test defaults calling on fields
...
bzr revid: xmo@openerp.com-20120426102949-xtv3inug3sue0h6a
2012-04-26 12:29:49 +02:00
Xavier Morel
595eec05a6
[FIX] make SearchQuery#add(Array) work correctly (fixing #reset at the same time)
...
bzr revid: xmo@openerp.com-20120424123824-x3nsecztz9gsiar4
2012-04-24 14:38:24 +02:00
Xavier Morel
9046ab46fa
[WIP] VS-less search view: remove visualsearch, start building coherent model backing to the view
...
bzr revid: xmo@openerp.com-20120424105941-x8dvot5mjruvxcho
2012-04-24 12:59:41 +02:00
niv-openerp
0a78144741
[fix] problem in search view, seems like a typo
...
bzr revid: nicolas.vanhoren@openerp.com-20120418131202-uxbwgb4if01t3pzo
2012-04-18 15:12:02 +02:00
niv-openerp
827964936f
[imp] refactored search.js
...
bzr revid: nicolas.vanhoren@openerp.com-20120417120210-kejvstgamtpufbeq
2012-04-17 14:02:10 +02:00
Xavier Morel
dbc5bde43d
[FIX] hack around double-search: prevent loading of defaults in search view from triggering a search
...
which requires manually requesting a facets repaint, as that hinges on the query's events
bzr revid: xmo@openerp.com-20120410072434-nsjb97cc32rxb9ju
2012-04-10 09:24:34 +02:00
Antony Lesuisse
7b158acee5
core refactoring, split core into corelib.js and coresetup.js
...
bzr revid: al@openerp.com-20120409003901-uo5wn6lj27yb6w7x
2012-04-09 02:39:01 +02:00
Xavier Morel
4b2e41c665
[FIX] start selection of first field in advanced search
...
Picking very first field of the sequence is completely broken as it
might very well be non-searchable, and not even displayed in the
options list.
Changed to simply call changed() at the end of the initialization
code, this goes through all the supposedly correct code pathways
without having to duplicate fields filtering (which is also done while
rendering the view)
bzr revid: xmo@openerp.com-20120406140520-rvol79gmf4yv97tx
2012-04-06 16:05:20 +02:00
Xavier Morel
233a72f850
[IMP] rename 'q' category of advanced filters to 'Advanced'
...
bzr revid: xmo@openerp.com-20120406115141-6qwitdq993a5h4lw
2012-04-06 13:51:41 +02:00
Xavier Morel
bbd702c9cf
[IMP] rename q filter category to Filter (temp)
...
bzr revid: xmo@openerp.com-20120406115026-tb7vqvkbwmp9odqr
2012-04-06 13:50:26 +02:00
Xavier Morel
dee501948e
[IMP] quick change (to better fix when facets are re-done): make all facets read-only
...
rco review feedback for essential fixes
bzr revid: xmo@openerp.com-20120406114633-mp0ws7n3d2cokddd
2012-04-06 13:46:33 +02:00
Xavier Morel
30ba123a1f
[IMP] partially fix group_by handling
...
* Don't just use the domain out of a FilterGroup as group_by keys in filters will overwrite one another
* Add dedicated get_groupby API returning an array of groups to evaluate
limitation: can't intersperse groupby from a different FilterGroup, that'll have to be fixed by ungrouping buttons
bzr revid: xmo@openerp.com-20120403120742-o3liksqaigsnxvb4
2012-04-03 14:07:42 +02:00
Xavier Morel
71c98a510b
[REM] unused instance variable of searchview.Advanced
...
bzr revid: xmo@openerp.com-20120403095716-rjxnc8zafxup8os1
2012-04-03 11:57:16 +02:00
Xavier Morel
4abfb09d32
[IMP] apply current advanced search when pressing [Return] while altering the search
...
Wrap a form around the search and hook search commit on form submit, make the 'apply' button into a submit button
bzr revid: xmo@openerp.com-20120403095615-r8x5ropf8odr7oxw
2012-04-03 11:56:15 +02:00
Xavier Morel
d4aa6b6fea
[IMP] close drawer when creating an advanced search view
...
bzr revid: xmo@openerp.com-20120403095303-1tu2p0novxaof0ph
2012-04-03 11:53:03 +02:00
Xavier Morel
7f80cd83fc
[IMP] don't trigger three searches when creating an advanced search with three conditions
...
bzr revid: xmo@openerp.com-20120403095146-26emkw284lxrahwk
2012-04-03 11:51:46 +02:00
Xavier Morel
ac5eed3c6c
[ADD] completion and values fetching for Date and Datetime fields, based on datejs's fuzzy date-ish parsing
...
bzr revid: xmo@openerp.com-20120403090807-6ct56fqkd1a6jcg1
2012-04-03 11:08:07 +02:00
Xavier Morel
81732f3ad0
[FIX] keyboard handling around read-only facets
...
bzr revid: xmo@openerp.com-20120403073946-4zq4vmods3ot77ot
2012-04-03 09:39:46 +02:00
Xavier Morel
846349bbe1
[IMP] make advanced search criterion look very slighly less bad
...
bzr revid: xmo@openerp.com-20120402123200-gp808tru9rdtkyy9
2012-04-02 14:32:00 +02:00
Xavier Morel
1cf64f448f
[IMP] slightly improve label of advanced search (still not very good)
...
bzr revid: xmo@openerp.com-20120402114459-1oa6v66uce4cpl0t
2012-04-02 13:44:59 +02:00
Xavier Morel
93e70362e5
[ADD] groundworks for advanced search
...
* Possible to add an advanced search domain
* Looks like shit
* The facet itself uses a hardcoded name
* Quite a few hacks
bzr revid: xmo@openerp.com-20120330154227-gw1640rbb3rs9x5m
2012-03-30 17:42:27 +02:00
Xavier Morel
1b0c140834
[MERGE] from trunk
...
bzr revid: xmo@openerp.com-20120329110300-z4l730o4y4swmadx
2012-03-29 13:03:00 +02:00
Xavier Morel
6ecd85d826
[FIX] todo note and stray quotes in doc
...
bzr revid: xmo@openerp.com-20120329094824-w0tviwz4pe85e0k1
2012-03-29 11:48:24 +02:00
Xavier Morel
4d9cf140dd
[FIX] missing translation marking
...
bzr revid: xmo@openerp.com-20120328103937-n2ei33xkf5pplgra
2012-03-28 12:39:37 +02:00
Xavier Morel
6ee51ecbe4
[IMP] don't display 'search for' when completion needle is empty
...
bzr revid: xmo@openerp.com-20120328103636-p192gfajnda4hcpj
2012-03-28 12:36:36 +02:00
Xavier Morel
429a1e6b49
[FIX] dispatching betwen item and category when rendering autocompletion
...
bzr revid: xmo@openerp.com-20120328103458-7eaul6bzroym25q9
2012-03-28 12:34:58 +02:00
Xavier Morel
2782651029
[FIX] global autocompletion opening when pressing certain keys (down, delete) in an editable facet's input. Should not happen
...
bzr revid: xmo@openerp.com-20120328093240-mu9wqdyes08otyt9
2012-03-28 11:32:40 +02:00
Xavier Morel
a6791384f3
[FIX] events are not inherited in backbone
...
bzr revid: xmo@openerp.com-20120327154138-ucuer9e4psrzc7et
2012-03-27 17:41:38 +02:00
Xavier Morel
c94bfd8bf9
[IMP] use qweb templates for read-only facets
...
bzr revid: xmo@openerp.com-20120327150811-v9urpm5j6hosesoz
2012-03-27 17:08:11 +02:00