diff options
| author | Denis Ledoux <dle@odoo.com> | 2015-11-30 13:46:33 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2015-11-30 13:51:25 +0100 |
| commit | eb5d95b135473787f9133f65c244aa9e3d2e0036 (patch) | |
| tree | 57f85350a0b56f2b5cec6560e341a2f7bfe72e79 /addons/web/static/src/js/framework/data.js | |
| parent | 44248a07a561508e45e5c951fba169bf1a60093b (diff) | |
[FIX] product: _get_image_variant is used for the field `image`
This revision is related to 93d4db9d1e5ff7b1676b2f8a5392d8baf2afd79e.
Usually, for models with an image, the original `image` is stored
in the field `image`, and then the resized value are in the fields
`image_medium` & `image_small`.
In the specific case of the product variant, this is not the case,
the original image is stored in the field `image_variant`,
and the `image` field uses as well the method `_get_image_variant`.
The `image_get_resized_images` must therefore return the "big image"
as well, which is returned with the key `image`, by default.
This is done using the method argument `return_big`.
Diffstat (limited to 'addons/web/static/src/js/framework/data.js')
0 files changed, 0 insertions, 0 deletions
