Commit Graph

166 Commits

Author SHA1 Message Date
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