summaryrefslogtreecommitdiff
path: root/addons/base_graph/static/lib/dhtmlxGraph/codebase
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-03-24 19:47:13 +0100
committerXavier Morel <xmo@openerp.com>2011-03-24 19:47:13 +0100
commit270ccc546a57df7e295bf9bd43a189a8ebd32c26 (patch)
tree3430a2c8076dfaed55fcd18ffb9852114415a2fd /addons/base_graph/static/lib/dhtmlxGraph/codebase
parent58584c82a7a5e7132f236efeef6ceede6b0f74a4 (diff)
[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
Diffstat (limited to 'addons/base_graph/static/lib/dhtmlxGraph/codebase')
0 files changed, 0 insertions, 0 deletions