[IMP] web: add isEmpty to ImageField

This commit adds the isEmpty field descriptor to the image field.
This is linked to the changes made in enterprise:
https://github.com/odoo/enterprise/pull/40885

Task ID: 3259489

closes odoo/odoo#124668

Related: odoo/enterprise#40885
Signed-off-by: Mathieu Duckerts-Antoine <dam@odoo.com>
This commit is contained in:
Julien Carion (juca)
2023-06-13 15:31:51 +02:00
parent 23c43bd5cc
commit 8c62c5e354
@@ -176,6 +176,7 @@ export const imageField = {
],
supportedTypes: ["binary"],
fieldDependencies: [{ name: "write_date", type: "datetime" }],
isEmpty: () => false,
extractProps: ({ attrs, options }) => ({
enableZoom: options.zoom,
zoomDelay: options.zoom_delay,