[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user