Fs Image Thumbnail

fs_image_thumbnail
REPOSITORY
REPOSITORYOCA/storage
GIT
GIThttps://github.com/OCA/storage.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/storage/tree/18.0/fs_image_thumbnail
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSSébastien BEAU, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/storage
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:15
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-env:
    - server_environment
OCA/server-tools:
    - base_partition
OCA/storage:
    - fs_image
    - fs_file
    - fs_attachment
    - fs_storage
odoo/odoo:
    - base
    - base_sparse_field
    - web
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python_slugify
fsspec>=2025.3.0
fsspec>=2024.5.0
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module extends the **fs_image** addon to support the creation and
the storage of thumbnails for images. This module is a **technical
module** and is not meant to be installed by end-users. It only provides
a mixin to be used by other modules and a model to store the thumbnails.

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
fs_image_thumbnail_mixin_form_view fs.image.thumbnail.mixin.form (in fs_image_thumbnail) fs.image.thumbnail.mixin form New
fs_image_thumbnail_mixin_search_view fs.image.thumbnail.mixin.search (in fs_image_thumbnail) fs.image.thumbnail.mixin search New
fs_image_thumbnail_mixin_tree_view fs.image.thumbnail.mixin.list (in fs_image_thumbnail) fs.image.thumbnail.mixin list New
fs_thumbnail_form_view fs.thumbnail.form fs.thumbnail field Inherits fs_image_thumbnail_mixin_form_view
fs_thumbnail_search_view fs.thumbnail.search fs.thumbnail field Inherits fs_image_thumbnail_mixin_search_view
fs_thumbnail_tree_view fs.thumbnail.list fs.thumbnail field Inherits fs_image_thumbnail_mixin_tree_view
ir_attachment_form_view ir.attachment.form (in fs_image_thumbnail) ir.attachment group Inherits base.view_attachment_form
Models touched (3)

New fields (6)
  • attachment_id Many2one → ir.attachment
    comodel_name='ir.attachment' help='Attachment containing the original image' ondelete='cascade' required=True string='Attachment'
  • base_name Char
    help='The thumbnail image will be named as base_name + _ + size_x + _ + size_y + . + extension.\nIf not set, the base name will be the name of the original image.This base name is used to find all existing thumbnail of an image generated for the same base name.' required=True args: 'The base name of the thumbnail image (without extension)'
  • mimetype Char
    compute='_compute_mimetype' store=True
  • name Char
    compute='_compute_name' store=True
  • size_x Integer
    required=True args: 'X size'
  • size_y Integer
    required=True args: 'Y size'
Public methods (2)
  • get_or_create_thumbnails(self, *images: <expr>, sizes: <expr>, base_name: str='') -> <expr>
    @api.model
    Get or create a thumbnail images from the given image. :param images: the list of images we want to get or create thumbnails :param sizes: the list of sizes to use to resize the image (list of tuple (size_x, size_y)) :param base_name: the base name of the thumbnail image (without extension) The base name must be set when multiple images are given. :return: an ordered dictionary where the key is the original image and the value is a recordset of thumbnail images. The order of the dict is the order of the images passed to the method.
  • get_thumbnails(self, *images: <expr>, base_name: str='') -> <expr>
    @api.model
    Get existing thumbnail images from the given image. :param images: a list of images we want to find existing thumbnails :param base_name: the base name of the thumbnail image (without extension) The base name must be set when multiple images are given. :return: a recordset of thumbnail images

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • thumbnail_ids One2many → fs.thumbnail
    comodel_name='fs.thumbnail' inverse_name='attachment_id' string='Thumbnails'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/storage
GIT
GIThttps://github.com/OCA/storage.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/storage/tree/17.0/fs_image_thumbnail
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, chien
WEBSITE
WEBSITEhttps://github.com/OCA/storage
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:08
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-env:
    - server_environment
OCA/server-tools:
    - base_partition
OCA/storage:
    - fs_image
    - fs_file
    - fs_attachment
    - fs_storage
odoo/odoo:
    - base
    - base_sparse_field
    - web
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python_slugify
fsspec>=2025.3.0
fsspec>=2024.5.0
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module extends the **fs_image** addon to support the creation and
the storage of thumbnails for images. This module is a **technical
module** and is not meant to be installed by end-users. It only provides
a mixin to be used by other modules and a model to store the thumbnails.

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
fs_image_thumbnail_mixin_form_view fs.image.thumbnail.mixin.form (in fs_image_thumbnail) fs.image.thumbnail.mixin form New
fs_image_thumbnail_mixin_search_view fs.image.thumbnail.mixin.search (in fs_image_thumbnail) fs.image.thumbnail.mixin search New
fs_image_thumbnail_mixin_tree_view fs.image.thumbnail.mixin.tree (in fs_image_thumbnail) fs.image.thumbnail.mixin tree New
fs_thumbnail_form_view fs.thumbnail.form fs.thumbnail field Inherits fs_image_thumbnail_mixin_form_view
fs_thumbnail_search_view fs.thumbnail.search fs.thumbnail field Inherits fs_image_thumbnail_mixin_search_view
fs_thumbnail_tree_view fs.thumbnail.tree fs.thumbnail field Inherits fs_image_thumbnail_mixin_tree_view
ir_attachment_form_view ir.attachment.form (in fs_image_thumbnail) ir.attachment group Inherits base.view_attachment_form
Models touched (3)

New fields (6)
  • attachment_id Many2one → ir.attachment
    comodel_name='ir.attachment' help='Attachment containing the original image' ondelete='cascade' required=True string='Attachment'
  • base_name Char
    help='The thumbnail image will be named as base_name + _ + size_x + _ + size_y + . + extension.\nIf not set, the base name will be the name of the original image.This base name is used to find all existing thumbnail of an image generated for the same base name.' required=True args: 'The base name of the thumbnail image (without extension)'
  • mimetype Char
    compute='_compute_mimetype' store=True
  • name Char
    compute='_compute_name' store=True
  • size_x Integer
    required=True args: 'X size'
  • size_y Integer
    required=True args: 'Y size'
Public methods (2)
  • get_or_create_thumbnails(self, *images: <expr>, sizes: <expr>, base_name: str='') -> <expr>
    @api.model
    Get or create a thumbnail images from the given image. :param images: the list of images we want to get or create thumbnails :param sizes: the list of sizes to use to resize the image (list of tuple (size_x, size_y)) :param base_name: the base name of the thumbnail image (without extension) The base name must be set when multiple images are given. :return: an ordered dictionary where the key is the original image and the value is a recordset of thumbnail images. The order of the dict is the order of the images passed to the method.
  • get_thumbnails(self, *images: <expr>, base_name: str='') -> <expr>
    @api.model
    Get existing thumbnail images from the given image. :param images: a list of images we want to find existing thumbnails :param base_name: the base name of the thumbnail image (without extension) The base name must be set when multiple images are given. :return: a recordset of thumbnail images

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • thumbnail_ids One2many → fs.thumbnail
    comodel_name='fs.thumbnail' inverse_name='attachment_id' readonly=True string='Thumbnails'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/storage
GIT
GIThttps://github.com/OCA/storage.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/storage/tree/16.0/fs_image_thumbnail
VERSION
VERSION 1.0.3
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSLaurent Mignon (ACSONE), sbejaoui, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/storage
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:52
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-tools:
    - base_partition
OCA/storage:
    - fs_image
    - fs_file
    - fs_attachment
    - fs_storage
odoo/odoo:
    - base
    - base_sparse_field
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python_slugify
fsspec>=2025.3.0
fsspec>=2024.5.0
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
fs_image_thumbnail_mixin_form_view fs.image.thumbnail.mixin.form (in fs_image_thumbnail) fs.image.thumbnail.mixin form New
fs_image_thumbnail_mixin_search_view fs.image.thumbnail.mixin.search (in fs_image_thumbnail) fs.image.thumbnail.mixin search New
fs_image_thumbnail_mixin_tree_view fs.image.thumbnail.mixin.tree (in fs_image_thumbnail) fs.image.thumbnail.mixin tree New
fs_thumbnail_form_view fs.thumbnail.form fs.thumbnail field Inherits fs_image_thumbnail_mixin_form_view
fs_thumbnail_search_view fs.thumbnail.search fs.thumbnail field Inherits fs_image_thumbnail_mixin_search_view
fs_thumbnail_tree_view fs.thumbnail.tree fs.thumbnail field Inherits fs_image_thumbnail_mixin_tree_view
ir_attachment_form_view ir.attachment.form (in fs_image_thumbnail) ir.attachment group Inherits base.view_attachment_form
Models touched (3)

New fields (6)
  • attachment_id Many2one → ir.attachment
    comodel_name='ir.attachment' help='Attachment containing the original image' ondelete='cascade' required=True string='Attachment'
  • base_name Char
    help='The thumbnail image will be named as base_name + _ + size_x + _ + size_y + . + extension.\nIf not set, the base name will be the name of the original image.This base name is used to find all existing thumbnail of an image generated for the same base name.' required=True args: 'The base name of the thumbnail image (without extension)'
  • mimetype Char
    compute='_compute_mimetype' store=True
  • name Char
    compute='_compute_name' store=True
  • size_x Integer
    required=True args: 'X size'
  • size_y Integer
    required=True args: 'Y size'
Public methods (2)
  • get_or_create_thumbnails(self, *images: <expr>, sizes: <expr>, base_name: str='') -> <expr>
    @api.model
    Get or create a thumbnail images from the given image. :param images: the list of images we want to get or create thumbnails :param sizes: the list of sizes to use to resize the image (list of tuple (size_x, size_y)) :param base_name: the base name of the thumbnail image (without extension) The base name must be set when multiple images are given. :return: an ordered dictionary where the key is the original image and the value is a recordset of thumbnail images. The order of the dict is the order of the images passed to the method.
  • get_thumbnails(self, *images: <expr>, base_name: str='') -> <expr>
    @api.model
    Get existing thumbnail images from the given image. :param images: a list of images we want to find existing thumbnails :param base_name: the base name of the thumbnail image (without extension) The base name must be set when multiple images are given. :return: a recordset of thumbnail images

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • thumbnail_ids One2many → fs.thumbnail
    comodel_name='fs.thumbnail' inverse_name='attachment_id' readonly=True string='Thumbnails'
Public methods (0)

No public methods.