Commit Graph

176 Commits

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