[FIX] fields: make convert_to_cache() more robust with inverse one2many
authorRaphael Collet <rco@openerp.com>
Wed, 17 Sep 2014 12:16:25 +0000 (14:16 +0200)
committerRaphael Collet <rco@openerp.com>
Wed, 17 Sep 2014 14:01:02 +0000 (16:01 +0200)
commit6e0c73d2adb7c4d6c3cb5da71a184640cffd0f98
tree9f9bb0395ebce709c6b7da322eeaccf801e225e8
parent0084646475b74a940474b2ce6345f970a01f2789
[FIX] fields: make convert_to_cache() more robust with inverse one2many

When a one2many field uses an integer field as inverse, the onchange method on
the second model may receive a dictionary for the value of the integer field.
This is because the client expects that field to be a many2one.
openerp/fields.py