Repository
OCA/server-tools · module folder · Try on Runboat
Module version
1.0.0
Category
Tools
Folder size
0.87 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/server-tools
Last tracking update
2026-08-07 08:42:57
Authors
Odoo Community Association (OCA), Tecnativa, LasLabs, Antiun Ingeniería, S.L., Sodexis, Omal Bastin (O4ODOO)
Maintainers
Odoo Community Association (OCA), Tecnativa, LasLabs, Antiun Ingeniería, S.L., Sodexis, Omal Bastin (O4ODOO)
Committers
Weblate, OCA-git-bot, oca-ci, Bhavesh Heliconia
Odoo dependencies
odoo/odoo:
Python dependencies
None
System dependencies
None
Required by
stock_lot_multi_image
Description
This module extends the functionality of any model to support multiple
images (a gallery) attached to it and allow you to manage them.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
image_form_view Multi image form base_multi_image.image form New
image_kanban_view Product multi image kanban base_multi_image.image kanban New
image_tree_view Multi image tree base_multi_image.image list New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (16)
  • attachment_id Many2one → ir.attachment
    domain="[('index_content', '=', 'image')]" string='Image stored in Attachment' args: 'ir.attachment'
  • attachment_image Image
    args: 'Image'
  • comments Text
    translate=True
  • extension Char
    readonly=True args: 'File extension'
  • file_db_store Binary
    attachment=False args: 'Image stored in database'
  • filename Char
  • image_1920 Image
    compute='_compute_image' max_height=1920 max_width=1920 store=False args: 'Full-sized image'
  • name Char
    translate=True args: 'Image title'
  • owner_id Integer
    required=True args: 'Owner'
  • owner_model Char
    required=True
  • owner_ref_id Reference
    compute='_compute_owner_ref_id' selection='_selection_owner_ref_id' store=True string='Referenced Owner'
  • path Char
    help='Image path' args: 'Image path'
  • sequence Integer
    default=10
  • show_technical Boolean
    compute='_compute_show_technical'
  • storage Selection
    default='filestore' required=True args: [('url', 'URL'), ('file', 'OS file'), ('db', 'Database'), ('filestore', 'Filestore'), ('attachment', 'Attachment')]
  • url Char
    args: 'Image remote URL'
Public methods (0)

No public methods.

New fields (2)
  • image_1920 Image
    compute='_compute_multi_image' inverse='_inverse_multi_image_main' store=False string='Main image'
  • image_ids One2many → base_multi_image.image
    comodel_name='base_multi_image.image' copy=True domain=<expr> inverse_name='owner_id' string='Images'
Public methods (1)
  • unlink(self)
    Mimic `ondelete="cascade"` for multi images. Will be skipped if ``env.context['bypass_image_removal']`` == True

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
no CI data
Open since
680 days ago
Last activity
667 days ago
Repository
OCA/server-tools
Pull request
[17.0][MIG] base_multi_image: Migration to 17.0 (#3063)
Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
82 days ago
Last activity
52 days ago
Repository
OCA/server-tools
Pull request
[19.0][MIG] base_multi_image (#3633)