Commit Graph
44196 Commits
Author SHA1 Message Date
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 9678b25a9b [FIX] encoding issues when concatenating CSS or paths which may contain non-ascii
The concatenator tries to only work with bytes without ever wondering
what is in the byte bucket: files are read to `str`, concatenated with
`str` (via join) and returned as `str`, usually considered to be utf-8
encoded. It's the author's job to correctly encode files to utf-8.

So far so good.

On runbot, there's apparently an issue in some CSS files in some cases
on the runbot: `web_dir` finds itself to be typed `unicode` (because
it contains non-ascii characters? Not sure at all), as a result
`re.sub` will decode the corresponding file data when trying to inject
the dir as replacement and the CSS reader will return a `unicode`
object.

Then, when concat_files try to compute the checksum it will need bytes
thus re-encode everything using the default codec (ascii) and the
non-ascii character(s) will blow up the encoding with a
UnicodeEncodeError.

Solution:

* Assume CSS files can contain non-ascii characters (they can, and
  do), decode them using `utf-8` to get `unicode` strings in the CSS
  reader
* Inject web_dir as usual via replacement, this still yields a
  `unicode` object (a `str` web_dir will simply be decoded using the
  ASCII codec, a non-ascii web_dir should have been decoded to
  `unicode` using sys.getfilesystemencoding)
* Cleanly re-encode evrything to utf-8, so that the code outside the
  reader only ever manipulates 8-bit "byte" strings

bzr revid: xmo@openerp.com-20120405070711-vjyw8g4mge2goyik
2012-04-05 09:07:11 +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 9ec3559e00 [IMP] clearer selection of facets (add some box shadow)
bzr revid: xmo@openerp.com-20120403075523-gzxqklvjhx1ikjlt
2012-04-03 09:55:23 +02:00
Xavier Morel 013c5255f5 [IMP] use pointer cursor on readonly facet values (instead of text)
bzr revid: xmo@openerp.com-20120403074122-3kwoijz9952hcxfw
2012-04-03 09:41:22 +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
Launchpad Translations on behalf of openerp fb7b21d002 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120329044639-uvugg6ws79fao36u
2012-03-29 04:46:39 +00:00
Launchpad Translations on behalf of openerp b7f2284d7f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120328044619-mysiqxktsyz9yvhk
bzr revid: launchpad_translations_on_behalf_of_openerp-20120329043542-rsvb6ox4tf09j7d5
2012-03-29 04:35:42 +00:00
Xavier Morel 720e7e424a [IMP] rendering of filter facets
bzr revid: xmo@openerp.com-20120328153706-qrcqvgmazuzonfvn
2012-03-28 17:37:06 +02:00
Xavier Morel 3f797c566d [IMP] styling of faceted search view to better match mit design
bzr revid: xmo@openerp.com-20120328144442-lk2b78kbz9r1wmds
2012-03-28 16:44:42 +02:00
Quentin (OpenERP) 8c06f8ee1f [FIX] base: removed main menu reporting from extended view
bzr revid: qdp-launchpad@openerp.com-20120328121224-owstjwqkc6e3oe7a
2012-03-28 14:12:24 +02:00
Launchpad Translations on behalf of openerp e67101cb1e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120328044533-hh02d2641w32kwvd
bzr revid: launchpad_translations_on_behalf_of_openerp-20120329043523-692oa8mzk47dj070
2012-03-29 04:35:23 +00:00
Fabien Meghazi 2d6775c407 [FIX] Do not show More menu button if unnecessary
bzr revid: fme@openerp.com-20120328113113-w925pasg7jnmxtzw
2012-03-28 13:31:13 +02:00
Fabien Meghazi 1a58a96f8c [IMP] Show database name in UserMenu
bzr revid: fme@openerp.com-20120328111723-cmgn9wzspn5bulnp
2012-03-28 13:17:23 +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
Fabien Meghazi 603485baa1 [IMP] Improved menu
bzr revid: fme@openerp.com-20120328100402-23zbekaomclkdwkf
2012-03-28 12:04:02 +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
Fabien Meghazi c86b24b4c3 [FIX] Add 'More...' feature to main menu
bzr revid: fme@openerp.com-20120327193212-kflgwnvxp89lkqmb
2012-03-27 21:32:12 +02:00
Quentin (OpenERP) 1ec3bd5d33 [MERGE] merged branch with typo fixing in xml id
bzr revid: qdp-launchpad@openerp.com-20120327155749-n5cbsg7jmwx9djug
2012-03-27 17:57:49 +02:00
Quentin (OpenERP) 0403024579 [MERGE] merged branch with typo fixing in xml id
bzr revid: qdp-launchpad@openerp.com-20120327155727-oueifcy55kd9t5jc
2012-03-27 17:57:27 +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 94c7dff4ea [FIX] usage issue of py.eval: in py.js 0.4, it returns a JS object not a PY object, so .toJSON should not be called on the result
bzr revid: xmo@openerp.com-20120327151357-4en4skjqb66b816c
2012-03-27 17:13:57 +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
Fabien Meghazi cc88233248 [FIX] Reference to legacy Widget#widget_parent
bzr revid: fme@openerp.com-20120327100518-p64ada2s831exv52
2012-03-27 12:05:18 +02:00
Thibault Delavallée 7d9c9efef5 [FIX] hr_holidays: added a missing ']' in the domain of 'year' filter.
bzr revid: tde@openerp.com-20120327084535-igmpl852p0k8wq0t
2012-03-27 10:45:35 +02:00
Meera Trambadia (OpenERP) 23dc558a84 [MERGE] branch merged with openobject-addons
bzr revid: mtr@tinyerp.com-20120327082747-ntghpj82kmtl0a8k
2012-03-27 13:57:47 +05:30
Launchpad Translations on behalf of openerp 162abf346d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120327045157-gkctlodshhg3olls
bzr revid: launchpad_translations_on_behalf_of_openerp-20120327045811-tm0ez29vvnoq6fuv
2012-03-27 04:58:11 +00:00
Launchpad Translations on behalf of openerp 6a57cb82eb Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120327045125-s5mj6gglrl462a5m
2012-03-27 04:51:25 +00: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 e898fb01e7 [imp] added doc
bzr revid: nicolas.vanhoren@openerp.com-20120326142038-xr3wigzjmwj4qp21
2012-03-26 16:20:38 +02:00
Quentin (OpenERP) 9056f4cc94 [FIX] account: reordered menuitem definition in order to load menu_finance_configuration before to reference it as parent
bzr revid: qdp-launchpad@openerp.com-20120326134837-lmvrak3i9uaubtu7
2012-03-26 15:48:37 +02:00
Quentin (OpenERP) 397cdef40f [IMP] hr_holidays: improved 'this year' button on search view of holidays.
bzr revid: qdp-launchpad@openerp.com-20120326132557-nuyevng79oe5oham
2012-03-26 15:25:57 +02:00
Quentin (OpenERP) d11b9c7868 [MERGE] merged the branch with menu improvements
bzr revid: qdp-launchpad@openerp.com-20120326132130-7w8vuvpu7d1lcu4v
2012-03-26 15:21:30 +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