Commit Graph

116 Commits

Author SHA1 Message Date
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
Xavier Morel 76baf024fc [REM] start, destroy, clear, make_id methods in search view widgets; do_clear and do_toggle_filter in search view itself
bzr revid: xmo@openerp.com-20120321165656-ht0o431r7xo4s3yv
2012-03-21 17:56:56 +01:00
Xavier Morel 9415f59853 [FIX] trigger search and correctly position cursor after adding a facet through completion
bzr revid: xmo@openerp.com-20120321164213-o1dgm4dihtrb45bt
2012-03-21 17:42:13 +01:00
Xavier Morel 60c07691f1 [ADD] searching to faceted field
* Removed idea of "text" facet category (~null category) working on
  all text-kinded fields at the same time, fp thinks this should be
  done by defining search view fields with filter_domain

- Adding a facet to the facets collection does not trigger a search,
  nor does editing the value of an (editable) facet

bzr revid: xmo@openerp.com-20120321154550-0ubjon97vfnj3dxf
2012-03-21 16:45:50 +01:00
Xavier Morel c3b181d7f3 [IMP] autocompletion interface (more similar to SearchFacet attributes), correctly document that
bzr revid: xmo@openerp.com-20120321092847-hjsn23ytttzy75ny
2012-03-21 10:28:47 +01:00
Xavier Morel fc9b3ecf20 [FIX] force renderFacets on VS search event
originally this comes from the (monkeypatch-removed) serialization and
reloading of the VS searchQuery.

This is needed because on ``SearchFacet#remove`` VS launches a
``searchEvent``, and counts on *that* to visually impact the removal
of a given facet (by just re-rendering everything)

bzr revid: xmo@openerp.com-20120320153634-rhguje7to3f0dj2p
2012-03-20 16:36:34 +01:00
Xavier Morel 7229320dc4 [FIX] SearchFacet attribute names being used internally
bzr revid: xmo@openerp.com-20120320152935-it5oe1q1cmdaajrx
2012-03-20 16:29:35 +01:00
Xavier Morel 8d2f4c1b13 [IMP] docdocdoc
start some documentation on VisualSearch and the interaction between the search view and VS

bzr revid: xmo@openerp.com-20120320144738-9jkdw78os1gect1e
2012-03-20 15:47:38 +01:00
Xavier Morel 011e448564 [IMP] don't break current search query on search event (don't serialize and re-parse), implement filter facets at the filtergroup level
bzr revid: xmo@openerp.com-20120320120058-clfhbdh0u5qrm85s
2012-03-20 13:00:58 +01:00
Xavier Morel b39712cf3d [ADD] basic loading of default values in faceted search view
bzr revid: xmo@openerp.com-20120320102846-g2ymabvt4qc4bwzg
2012-03-20 11:28:46 +01:00
Xavier Morel 16fddf9207 [BREAK THE WORLD] single search field with global multifield autocompletion full of awesome
bzr revid: xmo@openerp.com-20120319164304-r48l8gdteaekr3hm
2012-03-19 17:43:04 +01:00
Xavier Morel 5dfdd64955 [IMP] update VisualSearch to most recent master for various fixes & improvements
exported revision is master 3fca87101db55b6f8bb2f845ed90416e3da3ff4a

bzr revid: xmo@openerp.com-20120316111608-tvmce2rh64tpa2wm
2012-03-16 12:16:08 +01:00
Xavier Morel c2511f4241 [ADD] dummy VisualSearch widget
bzr revid: xmo@openerp.com-20120309135122-i774lbexhab2u646
2012-03-09 14:51:22 +01:00
Xavier Morel 9a646fce10 [ADD] permanent loading of saved filters
When selecting a saved filter, its data is now saved inside the
searchview's state, and re-used any time there's a search performed
(until the filter is replaced or the search view is cleared).

Some cleanup of the support code for loading filters
(SearchView.get_filters) also had to be performed in order not to fill
contexts with (potentially incorrect) crap in case the filter is
re-saved.

lp bug: https://launchpad.net/bugs/948219 fixed

bzr revid: xmo@openerp.com-20120307120323-pub0yuwjqk1r3y0p
2012-03-07 13:03:23 +01:00
Xavier Morel e178185b4f [MERGE] bug fixes form 6.1 branch
bzr revid: xmo@openerp.com-20120305070634-li0eloj7vhsljguu
2012-03-05 08:06:34 +01:00
niv-openerp 75d39c7f6a [imp] renammed stop()
bzr revid: nicolas.vanhoren@openerp.com-20120221162912-zheko30qoh84hcoq
2012-02-21 17:29:12 +01:00
niv-openerp be66f62357 [imp] changed children
bzr revid: nicolas.vanhoren@openerp.com-20120221155134-lej2ren1troagr72
2012-02-21 16:51:34 +01:00
niv-openerp 8384876ef0 [imp] renamed widget_parent to getParent()
bzr revid: nicolas.vanhoren@openerp.com-20120221153023-cqs66neaddtuf7km
2012-02-21 16:30:23 +01:00