Commit Graph

282 Commits

Author SHA1 Message Date
Xavier Morel 71ec2c9439 [FIX] search view field visible through dropdown menu
xmo@openerp.com-20130305093619-s1e5fbl80r7qnk5l added zIndex on wrong
element of search view (view itself instead of just the autocompletion
drop-down) leading to the search view text field being visible over
the "more" section of the menu.

Move zIndex setting to the right place (on the missing
`autocomplete('widget')` indirection, and on open as jquery ui
autocomplete apparently decides to reset the dropdown's z-index each
time it is open)

bzr revid: xmo@openerp.com-20130306110051-1wfhxaylsn71skjp
2013-03-06 12:00:51 +01:00
Xavier Morel 25baf23e23 [FIX] stacking of various "drop-down" elements
The search view's completion list should be in front of the search
view's drawer, which itself should (probably) be on top of the graph
view's "action" dropdown.

The graph view's dropdown itself needs a z-index > 0 to be in front of
the graph itself, otherwise it is inactive and unusable: it's visible
through the graph but not activable.

bzr revid: xmo@openerp.com-20130305093619-s1e5fbl80r7qnk5l
2013-03-05 10:36:19 +01:00
Xavier Morel b921444d6f [FIX] implement forgotten @invisible handling on search view fields
bzr revid: xmo@openerp.com-20130304152047-8xaczg9qdx6ug2p1
2013-03-04 16:20:47 +01:00
Xavier Morel d46c61d784 [FIX] don't store user context properties into custom filter @context
This leads to any subsequent view overwriting the current user's lang
or timezone with the one active when the filter was created,
generating dismay and discontent (e.g. part of the user interface
switching from spanish to english or english to german, depending on
the respective settings of the current user and the filter creator —
at time of filter creation).

bzr revid: xmo@openerp.com-20130304101414-mm6ai1dkltd7ard5
2013-03-04 11:14:14 +01:00
Xavier Morel 6803c0048f [IMP] add view's context to m2o completion name_search
bzr revid: xmo@openerp.com-20130225165236-386r8438h4vz6fav
2013-02-25 17:52:36 +01:00
Xavier Morel ece114024f [ADD] @domains handling to searchview m2o field during completion
bzr revid: xmo@openerp.com-20130225164255-y3qkcjozr7rbtz1v
2013-02-25 17:42:55 +01:00
Fabien Meghazi f20c884cf5 [IMP] Custom filters: restore checkboxes and make them exclusive
bzr revid: fme@openerp.com-20130220163306-14xwsgvu8rw2ciny
2013-02-20 17:33:06 +01:00
Xavier Morel e00db293d1 [IMP] move domain section and label to ExtendedSearchProposition.Field
Simplifies and linearizes control flow

bzr revid: xmo@openerp.com-20130214142952-e59q9aoz4ngx9iwb
2013-02-14 15:29:52 +01:00
Xavier Morel fcf4f4443c [FIX] wrong object accessed leading to incorrect show/hide of things
bzr revid: xmo@openerp.com-20130214142545-lbog33w0bzpn354q
2013-02-14 15:25:45 +01:00
Xavier Morel 195fef053e [ADD] re-introduce 'is set' and 'is not set' operators which were added to 6.1 but never ported to 7.0
lp bug: https://launchpad.net/bugs/1013528 fixed

bzr revid: xmo@openerp.com-20130214140637-rk46j7csu0i4an31
2013-02-14 15:06:37 +01:00
Xavier Morel ab816b74fb [FIX] correctly handle invisible or empty groups in total filters count computation
bzr revid: xmo@openerp.com-20130214075906-kg83zi0pan61au1d
2013-02-14 08:59:06 +01:00
Xavier Morel 9852c6ff1e [FIX] missing support for invisible fields and groups in new search view
lp bug: https://launchpad.net/bugs/1122183 fixed

bzr revid: xmo@openerp.com-20130214074302-rwm2hcmv9mpvp9dv
2013-02-14 08:43:02 +01:00
Xavier Morel 2d87d908e2 [IMP] do not add empty filter groups to the drawer columns
bzr revid: xmo@openerp.com-20130213125606-ykbb2kg9wvfbs2ho
2013-02-13 13:56:06 +01:00
Xavier Morel dfb7493034 [FIX] add support for invisibility to fields (don't complete an invisible field)
bzr revid: xmo@openerp.com-20130213090108-h38emnwscgb5v1pu
2013-02-13 10:01:08 +01:00
Xavier Morel 0ad34228e2 [FIX] small issue with adding an attribute called 'id' to a backbone model
triggers backbone's thinking that the model is 'not new' and trying to sync it with a remote on e.g. removal

bzr revid: xmo@openerp.com-20130131135125-1x7czib7q0kafok8
2013-01-31 14:51:25 +01:00
Xavier Morel 69171aa805 [CHG] allow deselecting a custom filter by clicking on it again in the drawer
as asked in project.task:4837:

> Cannot uncheck a custom filter by clicking on it (it's possible on
> classic filters)

bzr revid: xmo@openerp.com-20130131112617-8vul65bb4lbfbfvk
2013-01-31 12:26:17 +01:00
Xavier Morel 8192977f3c [IMP] add confirmation message when removing a global custom filter
lp bug: https://launchpad.net/bugs/1103410 fixed

bzr revid: xmo@openerp.com-20130123105320-pbmeqoudpb48s87m
2013-01-23 11:53:20 +01:00
Xavier Morel d5ab8a4241 [IMP] IE9 supports window.getSelection
remove IE <9 usage of document.selection as we don't support these browsers anyway

bzr revid: xmo@openerp.com-20130123092946-wgtvfz3493l7p7cw
2013-01-23 10:29:46 +01:00
Xavier Morel 01ee5f60ee [FIX] pasting HTML content into the text box, then trying to navigate/alter it
Navigation implementation can only deal with straight text (and
asserts that), if HTML is pasted in a search input
InputView#getSelection will throw errors and refuse to act.

Clean up input content after a paste event, to ensure only plain text
is present so it can be navigated.

Don't forget to correctly re-set the cursor at the end of the input
data, otherwise the user will face various deep DOM errors when trying
to move around the input with the arrow keys (which he would usually
be able to do after a paste).

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

bzr revid: xmo@openerp.com-20130123091600-nd4rwqpin6qj8ult
2013-01-23 10:16:00 +01:00
Xavier Morel e5ad5f8e10 [FIX] move filter added at xmo@openerp.com-20130122135139-s3ui9hb44xd7afba to after map
If the filter is executed first, the "iteratee" is transformed to an
array (from an object) and the "key" is lost, replaced by the indices
to the array (and thus the name of the fields end up as "0", "1", "2",
... instead of their actual logical names)

bzr revid: xmo@openerp.com-20130123084422-tbl05l5j72sx528n
2013-01-23 09:44:22 +01:00
Xavier Morel f0e8441130 [FIX] correctly pass context to fields_get of advanced search so fields are correctly translated & localized
bzr revid: xmo@openerp.com-20130122141657-sabov4ht6xp3so1a
2013-01-22 15:16:57 +01:00
Bhumi Thakkar (Open ERP) 85579d5022 [FIX] Advanced search does not support local language.--fixes:lp1099833
bzr revid: bth@tinyerp.com-20130122121332-9iw75g5ddunzam58
2013-01-22 17:43:32 +05:30
Bhumi Thakkar (Open ERP) 71b2aecf50 [FIX] Add filter for deprecated in ExtendedSearchProposition.
bzr revid: bth@tinyerp.com-20130122102857-86sbqqvlldxb2zhc
2013-01-22 15:58:57 +05:30
Fabien Meghazi 31237c0b58 [ADD] Backward compatibility layer for 7.0
bzr revid: fme@openerp.com-20130114135145-z51tp204vybz0dr3
2013-01-14 14:51:45 +01:00
Fabien Meghazi 8c1f9dc490 [FIX] Fix one custom filter bug (only scratch the surface of this problem)
bzr revid: fme@openerp.com-20130114093014-5sv1sfk5u2uemwlr
2013-01-14 10:30:14 +01:00
niv-openerp 906ceba948 [IMP] lot of small improvements to better detect when a view has finished loading
bzr revid: nicolas.vanhoren@openerp.com-20121213140914-8d1u01h17r2x4fpu
2012-12-13 15:09:14 +01:00
Fabien Meghazi 58b44d5082 [IMP] Removed fields_view_get from controllers. Add a helper client side.
bzr revid: fme@openerp.com-20121204163948-pctxvy55w34e1pg9
2012-12-04 17:39:48 +01:00
Xavier Morel fe3d493cc8 [FIX] searches with filters using "empty" domain/context values (but not attributes)
e.g. @domain="[]" would be seen as non-empty by the search view, and
if multiple domains the search view would generate a nonliteral
``['|', '[]', '[]]`` which would just yield ``['|']`` after evaluation
and concatenation, which is an invalid domain and would blow up the
server.

Specifically filter out the values ``[]`` and ``{}`` from filters

bzr revid: xmo@openerp.com-20121129112413-yrgncnesqs093jwf
2012-11-29 12:24:13 +01:00
Xavier Morel c7772fdd82 [FIX] server-sourced fields_get has no indirection to the model's fields
previous searchview-controller wrapper method did. Remove leftover indirection deref

bzr revid: xmo@openerp.com-20121129103841-6qcl4sctekqmrt2q
2012-11-29 11:38:41 +01:00
Xavier Morel e00cb36f41 [MERGE] from trunk
bzr revid: xmo@openerp.com-20121129091038-0fexjx8o12drjbga
2012-11-29 10:10:38 +01:00
Xavier Morel 720f3faf93 [IMP] stop using custom /web/searchview endpoints in search view
bzr revid: xmo@openerp.com-20121126093818-omxaj3qljolgq8qj
2012-11-26 10:38:18 +01:00
Xavier Morel 709f2506ff [REM] server-side eval_domain_and_context
bzr revid: xmo@openerp.com-20121123113932-siz0u2vp2u7z6wk2
2012-11-23 12:39:32 +01:00
Vidhin Mehta (OpenERP) e272ea66bd [IMP]Interger/float widget returning its type related value.
bzr revid: vme@tinyerp.com-20121123064525-gghxxc2tdjx0hgbb
2012-11-23 12:15:25 +05:30
Fabien Meghazi 4b007e1521 [FIX] Searchview proposition facet does not format date[time]s client side
bzr revid: fme@openerp.com-20121121135657-nh3t6usqkvl9vh03
2012-11-21 14:56:57 +01:00
Xavier Morel 9e11c51843 [MERGE] from trunk
bzr revid: xmo@openerp.com-20121112164136-sfyfxdcjx3ps086b
2012-11-12 17:41:36 +01:00
Xavier Morel 657c46172c [IMP] add class to default custom filters so they can be styled specifically
bzr revid: xmo@openerp.com-20121112162430-uvu43f01egyp0piw
2012-11-12 17:24:30 +01:00
Xavier Morel 7e6c3be96f [FIX] check default filter in drawer
bzr revid: xmo@openerp.com-20121112154815-e9a8dn5gwqyi7s80
2012-11-12 16:48:15 +01:00
Fabien Meghazi 57638a3657 [FIX] Fixed regression due to previous trunk merge
bzr revid: fme@openerp.com-20121107132839-wwf3svdnmrfbj97u
2012-11-07 14:28:39 +01:00
Xavier Morel 7959c832cd [FIX] lost call to setup_default_query during merge
bzr revid: xmo@openerp.com-20121107120955-xgnnm2pfvsqch8kn
2012-11-07 13:09:55 +01:00
Xavier Morel 36dad4cef9 [MERGE] from trunk
bzr revid: xmo@openerp.com-20121107112516-64hqps4jjgmrs3a4
2012-11-07 12:25:16 +01:00
Fabien Meghazi f06b78dbf6 [MERGE] trunk
bzr revid: fme@openerp.com-20121107091047-uehws6qa3ouaa4fs
2012-11-07 10:10:47 +01:00
Xavier Morel 1c721d43c5 [FIX] disable advanced search apply button in search view when there are no propositions
avoids locking up the browser by entering an infinite loop when unshifting ors on domains

bzr revid: xmo@openerp.com-20121106161715-7vc55kps8gi8h3lb
2012-11-06 17:17:15 +01:00
Xavier Morel e3e54b0e7a [IMP] port searchview to helpers
bzr revid: xmo@openerp.com-20121106152148-33ctafxz5iy53nl1
2012-11-06 16:21:48 +01:00
Xavier Morel a501903c23 [IMP] convert searchview to DOM events hash
bzr revid: xmo@openerp.com-20121106150449-1sxybk8jml7xa2ji
2012-11-06 16:04:49 +01:00
Xavier Morel 2ebaa6f666 [FIX] searchview drawer closing when clicking advanced proposition
handler for "global click filtered by whether click target is outside
of search view" executed after prop deletion handler has executed =>
the whole proposition has already been removed from the document and
thus isn't a descendent of the searchview anymore => test matches and
drawer closes.

Altered handler to stop propagation so does not reach global handler.

bzr revid: xmo@openerp.com-20121106144736-l0pde7phf3nake4t
2012-11-06 15:47:36 +01:00
Fabien Meghazi 903edfe306 [FIX] Changed search view for jquery ui upgrade (autoFocus doesn't seems to work)
bzr revid: fme@openerp.com-20121031173009-fxkz0ongj9b2v6f2
2012-10-31 18:30:09 +01:00
Fabien Meghazi ca6c49becf [IMP] jQuery deferred API changes refactoring. Changed 'then's in 'done'/'fail' and 'pipe's in 'then'
bzr revid: fme@openerp.com-20121030140630-gf20ye8fou1ebxft
2012-10-30 15:06:30 +01:00
niv-openerp 6c9137021c [FIX] small problem in search view, it did not supported the field type html (caused an exception in Notes)
bzr revid: nicolas.vanhoren@openerp.com-20121029111542-tikkk513ilv0br4e
2012-10-29 12:15:42 +01:00
vta vta@openerp.com 877957819e [FIX] Fixed a forgotten add(), SearchView#on_invalid().
bzr revid: vta@openerp.com-20121019111558-zu8hzh7u61srew2e
2012-10-19 13:15:58 +02:00
Xavier Morel b5be361c55 [FIX] various listview issues
bzr revid: xmo@openerp.com-20121018150108-althdcxk3jc2bkun
2012-10-18 17:01:08 +02:00