Commit Graph

306 Commits

Author SHA1 Message Date
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
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
Xavier Morel fbf4c6dc0f [FIX] incorrect handling of saved filter group_by when not present or an array
bzr revid: xmo@openerp.com-20120221140517-fs0axg9w8irapw06
2012-02-21 15:05:17 +01:00
niv-openerp 0d061d6c77 [fix] added openerp class to all dialogs
bzr revid: nicolas.vanhoren@openerp.com-20120217114357-5jeue9292eg2zoqf
2012-02-17 12:43:57 +01:00
Xavier Morel 980e2825d5 [IMP] get translated JS strings outside of QWeb attributes as the corresponding extractor does not actually work, export POTs
bzr revid: xmo@openerp.com-20120214142954-4ndkj63pog39ts0k
2012-02-14 15:29:54 +01:00
Xavier Morel 042a5f823d [FIX] don't use 'undefined' as a fallback value for .attr, it makes jquery think that's a get and breaks chaining
bzr revid: xmo@openerp.com-20120213100543-0zu2ij95tnufu5df
2012-02-13 11:05:43 +01:00
Xavier Morel 346805aa02 [FIX] sizing of date widgets in search view
lp bug: https://launchpad.net/bugs/930049 fixed

bzr revid: xmo@openerp.com-20120213094015-px9udeft0v0htnyu
2012-02-13 10:40:15 +01:00
Xavier Morel e0a346f0eb [FIX] clearing of selection fields with a (non-additional) 'false' value in search views
also finally add a basic Input#clear API

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

bzr revid: xmo@openerp.com-20120210155235-sjax5dnc73rpixbr
2012-02-10 16:52:35 +01:00
Xavier Morel 811e50b49c [IMP] add tooltip on disabled filter
bzr revid: xmo@openerp.com-20120209163050-g4u7gvsnh6kgqs14
2012-02-09 17:30:50 +01:00
Xavier Morel 4bee4fe7fc [ADD] support for id field type in search view
lp bug: https://launchpad.net/bugs/924296 fixed

bzr revid: xmo@openerp.com-20120131140210-b44fs5nfw109v81l
2012-01-31 15:02:10 +01:00
Xavier Morel d0141aa5ce [FIX] race condition on selecting saved filters
Deferreds can't "go through" al callbacks, so even when searchviews
correctly wait on this.on_clear it can't get the information on when
the other view is done clearing, and it lauches two concurrent views.

In this precise case though, there's no need to launch a search after
this clear, just want to remove all searchview state.

bzr revid: xmo@openerp.com-20120126092304-fe79ulj6txkgy411
2012-01-26 10:23:04 +01:00
Xavier Morel 1059bb758d [IMP] clear search after deselecting a filter
bzr revid: xmo@openerp.com-20120126085636-3mja4a43yhywd6ga
2012-01-26 09:56:36 +01:00