odoo/addons/base/static/openerp/js
Xavier Morel 270ccc546a [ADD] text, selection and boolean fields; improve logic to detect whether a field has a value
If the value returned by a field is the literal 'null' or an empty
string, then the field is empty (empty input, no valued option
selected, etc...).

On the other hand, because openerp.base.search.Field.get_value returns
a *javascript* value it can be the literals '0' or 'false'. Those are
falsy in a boolean context (for good reasons, for 'false') but they
should still count as the field having a value.

I'm guessing this part is going to reach "spin off in its own
per-field method" complexity pretty soon.

bzr revid: xmo@openerp.com-20110324184713-sf7skv34s9824ge6
2011-03-24 19:47:13 +01:00
..
base.js window.openerp is is now a regular object, split controllers into chrome and views 2011-03-17 00:56:34 +01:00
base_chrome.js [FIX] shut up the annoying console spamming by default. To enable it, set 'openerp.debug' to true or add 'debug' at the start of the querystring 2011-03-24 21:48:13 +01:00
base_views.js [ADD] text, selection and boolean fields; improve logic to detect whether a field has a value 2011-03-24 19:47:13 +01:00
tests.js [IMP] implement DataSet.find, rename .ids() to .fetch() (and the corresponding event), make list and form views use the new dataset API 2011-03-23 09:34:41 +01:00