[FIX] orm: do not recompute m2o stored function field at read.
authorChristophe Simonis <chs@odoo.com>
Fri, 6 Jun 2014 08:53:42 +0000 (10:53 +0200)
committerChristophe Simonis <chs@odoo.com>
Fri, 6 Jun 2014 08:53:42 +0000 (10:53 +0200)
commit517162ce145e78795030cd956e3a0e6e2c8144c3
treeb464c447bc12e65816489366fe2521d8f2041d53
parent306d5c89a07ab05eb1637e3efc80e83a773c24d8
[FIX] orm: do not recompute m2o stored function field at read.

The get() method of m2o function fields is used for 2 different things:
 - call the function defining the m2o
 - get the name_get representation of the value

Until this pathc, only the first case was handled, resulting to a useless
recomputation of the field when reading it.
openerp/osv/fields.py