summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src/xml/web_graph.xml
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2014-07-24 12:22:20 +0200
committerOlivier Dony <odo@openerp.com>2014-07-24 15:47:34 +0200
commit6d2fb3e3ae326e7ed5b7f28c1833932d27e68054 (patch)
treec6b48a52506e4f54e90d3c9a397c008f566cbdf4 /addons/web_graph/static/src/xml/web_graph.xml
parenteb08c12b090dc03f039f3a73020a97a1cead3b37 (diff)
[FIX] models: check harder that default value is not NULL before setting it
When computing defaults we may end up with a falsy value that is not None (e.g. '' or False) That value will be cast to None when being saved in the database, depending on the column type (e.g. saving False on a many2one actually stores NULL). Improve the test to consider the value being written *after* that conversion, to *really* avoid nonsensical and expensive queries such as: UPDATE table set col = NULL WHERE col IS NULL;
Diffstat (limited to 'addons/web_graph/static/src/xml/web_graph.xml')
0 files changed, 0 insertions, 0 deletions