[FIX] models: `_convert_to_write()` shall not return `NewId`
authorChristophe Simonis <chs@odoo.com>
Thu, 14 Aug 2014 19:43:16 +0000 (21:43 +0200)
committerChristophe Simonis <chs@odoo.com>
Thu, 14 Aug 2014 19:43:16 +0000 (21:43 +0200)
commit25e11113b5f3783275538b9c6f09483e0ae62575
tree04449acd43853e77ffd9263def675acc86b46ffc
parentd68537022fc03baf59af29cb7cc8f9c5aa91a7b2
[FIX] models: `_convert_to_write()` shall not return `NewId`

The result of _convert_to_write() is intended to be pass directly to
`write()` or returned to the client (`onchange()` and `default_get()`.
`NewId` is as special value that must not be stored into the database
or exposed to the client.
openerp/models.py