Commit Graph

133 Commits

Author SHA1 Message Date
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
Xavier Morel 5a455daa43 [ADD] special rendering of filtergroup (readonly) facets
bzr revid: xmo@openerp.com-20120327142116-3ftjit1afo40ou09
2012-03-27 16:21:16 +02:00
Xavier Morel 7527aa61b5 [IMP] refresh/search events
* Trigger new search on various programmatic search query events
* Don't remove then re-add filter when it can just be changed
* Correctly trigger search on programmatic facet removal, but not on
  UI removal (it's already done by the facet itself leading to
  double-search)

bzr revid: xmo@openerp.com-20120327123647-i7zfarf7e03poet5
2012-03-27 14:36:47 +02:00
Xavier Morel c7b5daa2f1 [ADD] reading and usage of custom filters
bzr revid: xmo@openerp.com-20120326154326-9bnbnrx2x404bqsm
2012-03-26 17:43:26 +02:00
Xavier Morel c21f00ab81 [FIX] greatly simplify widgets-rendering routine of search view (basically remove all the rendering part), add basic drawer behavior
bzr revid: xmo@openerp.com-20120326145017-g1ydm1k93hipy2j5
2012-03-26 16:50:17 +02:00
niv-openerp 93e3959483 [fix] fix of previous fix
bzr revid: nicolas.vanhoren@openerp.com-20120326122835-m25pukdl5ye48fnn
2012-03-26 14:28:35 +02:00
niv-openerp f13194477a [fix] problem with boolean search fields
bzr revid: nicolas.vanhoren@openerp.com-20120326122334-44uf3k7jkck1gyp2
2012-03-26 14:23:34 +02:00
Xavier Morel f97751c63e [FIX] custom contexts and domains in search view fields
* Remove own_value hack, use compounds instead
* Correctly handle compounds evaluation contexts in test eval_domain_and_context js evaluator

bzr revid: xmo@openerp.com-20120323093913-09y0v082pe96pxh2
2012-03-23 10:39:13 +01:00
Xavier Morel 1da49a44a5 [MERGE] 6.1 fixes into trunk
bzr revid: xmo@openerp.com-20120322113142-gim4svx01p336nxm
2012-03-22 12:31:42 +01:00
Xavier Morel 0e93da53b8 [FIX] add hook to SearchInput's autocomplete#close to close the global autocompletion when getting out of an input
bzr revid: xmo@openerp.com-20120322103137-7og8ww7yjdr60tla
2012-03-22 11:31:37 +01:00