summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function_view.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-07-24 13:56:59 +0200
committerXavier Morel <xmo@openerp.com>2012-07-24 13:56:59 +0200
commit2f10bc40713f3cffddf6d7ad11182bcf08b35642 (patch)
tree308edf8424643a6e0eb1265c022bf7a8c0815cf1 /addons/analytic_user_function/analytic_user_function_view.xml
parent61f361bfee1ae021aedef0ebbf3c91d15083cf1a (diff)
[IMP] validation of search_default values for m2o fields
Just because the search_default is an array does not mean it's a name_get apparently: there are many cases of a single id wrapped in an array (``[id]``). So ensure that the search_default is an array *of length 2 whose second element is a string* before considering it a name_get and using it as-is (without resolving the label via an explicit name_get). Also, error out for any m2o search_default which is an array of length > 1 (unless the second element is a string as per description above). bzr revid: xmo@openerp.com-20120724115659-l0n0gjr91bcop13z
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions