summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/lib/dhtmlxGraph/codebase
diff options
context:
space:
mode:
authorP. Christeas <xrg@openerp.com>2011-06-08 12:32:54 +0300
committerP. Christeas <xrg@linux.gr>2011-06-08 12:32:54 +0300
commit49fbcdb70a590d566a635b83afd6ecc6d7763737 (patch)
tree63bc9960d421a65d78967230719f0cb8138ce04d /addons/web_graph/static/lib/dhtmlxGraph/codebase
parent28e3960004a97a491ed3712e8803e2963f6d2571 (diff)
ir.translation: select restriction must be an SQL constraint
select fields validate themselves in ORM, through _check_selection_field_value(), which /retrieves/ the .selection list and checks if value to be written is among possible ones. This, however, is very expensive for models that have variable selection lists (eg. ones that require an SQL query). In fact, for ir.translation, the query would be repeat for every single write() to ir.translation. The 'lang' field is actually a reference for res.lang.code (not the .id, sadly), so let SQL implement the constraint for us. bzr revid: xrg@linux.gr-20110608093254-ua66p5co6dc203zs
Diffstat (limited to 'addons/web_graph/static/lib/dhtmlxGraph/codebase')
0 files changed, 0 insertions, 0 deletions