diff options
| author | Raphael Collet <rco@openerp.com> | 2016-03-29 10:52:13 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2016-04-02 00:47:57 +0200 |
| commit | 7a483a85d46a7298b0b3d27efeefbcd2a11772c4 (patch) | |
| tree | 9e1c48fb27cf3aa1def72ae0b079e7f92a0fa493 /addons/base_import/static/csv/database_import_test.sql | |
| parent | f6090e69e648d5891cb887e82fbfcbc868b574ac (diff) | |
[FIX] *: do not use computed fields for resizing images
Otherwise recomputation may fail with "record does not exist or has been
deleted" when creating records with a value directly set for e.g.
'image_mediun' on a new product.
The issue comes from the storage of the images. When creating a product, the
creation of an attachment for storing the field `image_medium` triggers the
recomputation of that field before its dependency `image` is set. As `image`
is initially null, `image_medium` is recomputed as null, and this deletes the
attachment just created before the latter has completed its creation! As a
consequence, some code at the end of `create` for the attachment crashes
because the record has been deleted.
The following models have been fixed: `fleet.vehicle.model.brand`,
`hr.employee`, `im_livechat.channel`, `mail.channel`, `payment.acquirer`,
`pos.category`, `product.template`, `product.public.category`, `res.partner`.
opw 666330
Closes #11516
Diffstat (limited to 'addons/base_import/static/csv/database_import_test.sql')
0 files changed, 0 insertions, 0 deletions
