Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 5 Odoo series since 16.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
3 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.09 MB
Module directory on disk
Code analysis 0 migration notes 2 models 0 views 0 HTTP endpoints

Description

This addon defines a new field FSImage to use in your models. It is a subclass of the FSFile field and comes with the same features. It extends the FSFile field with specific properties dedicated to images. On the field definition, the following additional properties are available:

  • max_width (int): maximum width of the image in pixels (default: 0, no limit)
  • max_height (int): maximum height of the image in pixels (default: 0, no limit)
  • verify_resolution (bool):whether the image resolution should be verified to ensure it doesn't go over the maximum image resolution (default: True). See odoo.tools.image.ImageProcess for maximum image resolution (default: 50e6).

On the field's value side, the value is an instance of a subclass of odoo.addons.fs_file.fields.FSFileValue. It extends the class to allows you to manage an alt_text for the image. The alt_text is a text that will be displayed when the image cannot be displayed.

Dependencies

Odoo dependencies
OCA/storage:
odoo/odoo:
- web
Python dependencies
fsspec>=2025.3.0, python_slugify, fsspec>=2024.5.0
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 0

No views found for this module.

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 2

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • alt_text Char
    help='Alternative text for the image. Only used for images on a website.' translate=False args: 'Alternative Text'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…