Merge lp:~openerp-dev/openerp-web/7.0-integer-fields-search-odo into lp:openerp-web/7.0
Proposed by
Olivier Dony (Odoo)
Status: | Merged |
---|---|
Merged at revision: | 3901 |
Proposed branch: | lp:~openerp-dev/openerp-web/7.0-integer-fields-search-odo |
Merge into: | lp:openerp-web/7.0 |
Diff against target: |
104 lines (+69/-14) 2 files modified
addons/web/static/src/js/search.js (+16/-14) addons/web/static/test/search.js (+53/-0) |
To merge this branch: | bzr merge lp:~openerp-dev/openerp-web/7.0-integer-fields-search-odo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Xavier (Open ERP) (community) | Needs Fixing | ||
Review via email: mp+155942@code.launchpad.net |
Description of the change
integer/float fields were not offering auto-completion in search views, making them unsearchable except via advanced search.
I added the missing complete() function and removed the incorrect value_from() function that did not conform to the 7.0 search view API. It seemed to be a leftover of the 6.1 search field implementation of get_value(), wrongly renamed for 7.0.
To post a comment you must log in.
* probably no need to escape the value: after parse() has run, we've got either an actual number or a NaN which gets filtered out, numbers shouldn't be able to contain HTML.
* not completing on !val means we can't complete on a 0, is that normal?
* could benefit from a new test or two in search.completions, they seem to be missing.