summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/__init__.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-10-13 13:44:49 +0200
committerXavier Morel <xmo@openerp.com>2011-10-13 13:44:49 +0200
commit7da8126ad934e2b4b44a7c0c01b4a49634e0190f (patch)
treee5f6706f79735c2ef531dad58f72ad7f942aecc9 /addons/analytic_user_function/__init__.py
parent15e73da3304b9771baa33d22699d0d821be90b12 (diff)
[FIX] BufferedDataSet to not break the m2o read contract of returning a name_get format
BufferedDataSet simply shoves stuff read() or create()d in its cache, but m2o is asymmetric: client writes a single id, but reads a pair of [id, name]. Since create() and write() are async (by definition) it's the best place to check if the data being written contains any m2o field, and to fix those m2o values. This, however, completely breaks o2m fields get_value(), and doesn't even work correctly for create() calls. Should probably not cache the same thing we put for creation or update eh bzr revid: xmo@openerp.com-20111013114449-rkhe95g1oi3gudab
Diffstat (limited to 'addons/analytic_user_function/__init__.py')
0 files changed, 0 insertions, 0 deletions