Commit Graph

234 Commits

Author SHA1 Message Date
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
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