Commit Graph

342 Commits

Author SHA1 Message Date
Xavier Morel 3c5d38918b [FIX] filter preceded by an invisible filter in the same group
On click on a filter in the drawer, FilterGroup would just match the
offset of the filter in the group's DOM with an index in the internal
#filters array. 

This worked until invisible fields, and then again only for filters
*preceded* by an invisible sibling in the same group: invisible
filters are not rendered in the DOM, so the indexes would get out of
sync.

Fix by using explicit indexes stored in a filter's @data-index and
using that to get the filter object/node.

An alternative fix (but hackier I think): instead of not rendering
invisible filters, render them with display: none. Remains an option
in the future if needed...

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

bzr revid: xmo@openerp.com-20130321155123-211iht7c6zme712e
2013-03-21 16:51:23 +01:00
niv-openerp 185b405b96 [MERGE] 7.0 branch
bzr revid: nicolas.vanhoren@openerp.com-20130319102859-rj9r9ngqtf5ep3a3
2013-03-19 11:28:59 +01:00
niv-openerp a6a8d71a0e [FIX] calls to fields_view_get do not pass the correct context, fails in o2m
lp bug: https://launchpad.net/bugs/1091204 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130318174503-7xp04ccghdbqfvrl
2013-03-18 18:45:03 +01:00
Xavier Morel 1899141b38 [FIX] groupby groups fetching of their ancestor searchview
Implementation of invisibles in search view altered handling of search
inputs: their parent may not be the searchview anymore (usually is a
instance.web.search.Group). GroupbyGroup assumed parent was view and
was actually unused until
xmo@openerp.com-20130307124222-1ypzfopbktxmad4z, which exposed the
incorrect underlying assumption.

Make GroupbyGroup access its view when it wants its view, not its
parent.

bzr revid: xmo@openerp.com-20130312092824-z7sh4h3ityo4g00v
2013-03-12 10:28:24 +01:00
Xavier Morel 617c03a19c [FIX] broken inference of groupby groups in search view filters
Before the valpocalypse, filter contexts were "literal" (parsed
objects) when reaching the search view, and `.attrs.context.group_by`
would return the right thing (namely the group_by attribute of the
context object).

After the valpocalypse, contexts & domains on view fields (and
filters) are not evaluated on the Python side anymore and reach view
objects as strings, the access chain above thus always returns a falsy
value (undefined) as strings don't have a .group_by.

Fix FilterGroup to correctly parse filter's @context before trying to
see if it has a group_by.

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

bzr revid: xmo@openerp.com-20130307124222-1ypzfopbktxmad4z
2013-03-07 13:42:22 +01:00
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
Xavier Morel 94c2c42be6 [MERGE] from 7.0
bzr revid: xmo@openerp.com-20130313094909-u21ee88l2lak9p2x
2013-03-13 10:49:09 +01:00
niv-openerp d04d532201 [MERGE] some others fixes from 7.0
bzr revid: nicolas.vanhoren@openerp.com-20130227141209-kemu3v78npynip87
bzr revid: nicolas.vanhoren@openerp.com-20130227142021-oc8i22kpfgmgv9jh
2013-02-27 15:20:21 +01:00
Thibault Delavallée 5e09c5c361 [FWD] [MERGE] Foward port of web-7.0 until rev 3771.
bzr revid: tde@openerp.com-20130221110355-p00935eqn4tstkx9
2013-02-21 12:03: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
Olivier Dony 02a6c638a9 [MERGE] Latest bugfixes from 7.0, up to rev 3731
rev 3731 = revision-id: fme@openerp.com-20130129142638-81uffjq3aiopr8ta

bzr revid: odo@openerp.com-20130129163725-feesf1n2xf0wbpro
2013-01-29 17:37:25 +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 8afb54980a [MERGE] Forward-port of latest 7.0 changes, (revision 3701)
bzr revid: odo@openerp.com-20130114103535-43fmqnzg9bh8ptpj
bzr revid: fme@openerp.com-20130114140243-ea81b61n1jhehj5o
2013-01-14 15:02:43 +01:00
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
vta vta@openerp.com 59aaa765a6 [FIX] Fixed event name.
bzr revid: vta@openerp.com-20121018124607-rifo06nfx7jo134e
2012-10-18 14:46:07 +02:00
Xavier Morel f910bc6780 [FIX] don't trigger search twice when a facet is removed from the query due to its values becoming empty
The facet removal from its last value being removed
(`this.remove(facet)` in the 'change' handler of the SearchQuery)
broadcasted its `remove` event, triggering the `do_search` (and
repaint) hook of the SearchView a second time right after the
`change`-triggered search.

Not only is this unnecessary and duplicated work (the `remove` is a
sync operation, so searchview-attached events haven't yet executed by
the time `remove` is called), the listview really doesn't like getting
a ``search`` signal while it's already executing a search.

So fix that.

bzr revid: xmo@openerp.com-20121018124005-6vfi7tqasz32ai8v
2012-10-18 14:40:05 +02:00
Xavier Morel 8b2a07eb55 [REM] dead code
bzr revid: xmo@openerp.com-20121018123403-k97t9x0hiie56f2n
2012-10-18 14:34:03 +02:00
vta vta@openerp.com 98431bccd9 [MERGE] Latest trunk.
bzr revid: vta@openerp.com-20121018122324-hf4y784k49s0vsye
2012-10-18 14:23:24 +02:00
vta vta@openerp.com 8b4580ea86 [FIX] Fixed on_loaded in Menu and Search.
bzr revid: vta@openerp.com-20121018085028-d0ww48el2jwmtcpg
2012-10-18 10:50:28 +02:00
Vishmita 15974eb2e0 [IMP]replace callenabled for on_loaded
bzr revid: vja@tinyerp.com-20121012114534-qx7y6dzmqkw7t7px
2012-10-12 17:15:34 +05:30
ggh-openerp 73c32663d6 add on_search comment
bzr revid: ggh@tinyerp.com-20121011085807-vmldw354xdbruj1s
2012-10-11 14:28:07 +05:30
ggh-openerp 1a476fed69 [IMP] Remove add() in on_search method
bzr revid: ggh@tinyerp.com-20121011053907-tykje6i145fmjrl3
2012-10-11 11:09:07 +05:30
ggh-openerp 6454fd1590 [IMP] Remove add_last in on_search method
bzr revid: ggh@tinyerp.com-20121010132349-n3gdg0jhtyjfufma
2012-10-10 18:53:49 +05:30
Antony Lesuisse 55bcd978af [MERGE] callback2deferred session.rpc
bzr revid: al@openerp.com-20121006163238-7ni5r324c0yqi5a0
2012-10-06 18:32:38 +02:00
ggh-openerp 30069a0239 [IMP]In rpc method remove callback and modify relate code
bzr revid: ggh@tinyerp.com-20121003122836-36g8ijxdcjwgntjl
2012-10-03 17:58:36 +05:30
Antony Lesuisse 4f299e1b1b [MERGE] trunk
bzr revid: al@openerp.com-20121002220720-z0rjvmjx8kvy52zh
2012-10-03 00:07:20 +02:00
Antony Lesuisse 1a369bfd3c [MERGE] callback2deferred dataset.name_get
bzr revid: al@openerp.com-20120930150329-b3j0pmnf7gnxlxzj
2012-09-30 17:03:29 +02:00
Olivier Dony f742d3b213 [FIX] web: minor improvements to some translateable terms
bzr revid: odo@openerp.com-20120928210007-ukf4u20rpwmugfwt
2012-09-28 23:00:07 +02:00
Xavier Morel ab9c637ae8 [FIX] searchview doc
bzr revid: xmo@openerp.com-20120928130653-pqovcp0pnpa6x4bb
2012-09-28 15:06:53 +02:00
Vidhin Mehta (OpenERP) b4c8143480 [IMP]remove callback from name_get function and improve related code.
bzr revid: vme@tinyerp.com-20120928065341-uiu3nf7seu5sps53
2012-09-28 12:23:41 +05:30
niv-openerp 5e338c591a [IMP] made a whole-application replace of $element by $el
bzr revid: nicolas.vanhoren@openerp.com-20120824182707-vt91ef40ieeudwyw
2012-08-24 20:27:07 +02:00
Christophe Simonis 63e4d9b572 [IMP] sed -i '' -e 's/connection/session/g'
bzr revid: chs@openerp.com-20120814152900-8r84kyz0qy1hwkvz
2012-08-14 17:29:00 +02:00
niv-openerp 3ebfaedd64 [IMP] removed a lot of OldWidget usage
bzr revid: nicolas.vanhoren@openerp.com-20120814134246-y2awqbt2i1hcan61
2012-08-14 15:42:46 +02:00
Christophe Simonis fb86ddb644 [IMP] merge web_dashboard module into board module of addons branch
[IMP] extract dashboard part of web into board module

bzr revid: chs@openerp.com-20120809152043-0yfm6l2zt44eiqrb
2012-08-09 17:20:43 +02:00
Xavier Morel 3b5bd3598c [FIX] kinda sorta rename add to dashboard feature to add to reporting according to apr's wishes
also change button from 'save' to 'add'

bzr revid: xmo@openerp.com-20120801135803-j4wwbdm2ngdz4koo
2012-08-01 15:58:03 +02:00
Xavier Morel cd65d4aa21 [IMP] make unreadable code less unreadable, fix some warning, use Widget#$
bzr revid: xmo@openerp.com-20120801135435-w2erakp9qaqtcotb
2012-08-01 15:54:35 +02:00
Antony Lesuisse 574f3891a5 [MERGE] trunk
bzr revid: al@openerp.com-20120801104657-cinfl0svpnc8njs5
2012-08-01 12:46:57 +02:00
Xavier Morel 7183f749b1 [FIX] trigger DOM blur event on searchview root to allow autocomplete to close-on-blur
bzr revid: xmo@openerp.com-20120726113311-axgwfq4d71rc1u50
2012-07-26 13:33:11 +02:00
Xavier Morel b09a121bd0 [IMP] clear out internal autocomplete cache of searchview on blur
ensures consecutive searches of the same element will behave correctly
(trigger a new autocompletion instead of nooping the second time
around because the new value is the same as the old/stored one)

bzr revid: xmo@openerp.com-20120726113105-d73fere31qdy8wda
2012-07-26 13:31:05 +02:00
Antony Lesuisse 3235ed8a18 [MERGE] trunk
bzr revid: al@openerp.com-20120725082646-ff6ljt0pquvm0dup
2012-07-25 10:26:46 +02:00
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