Multiple images base
base_multi_image · OCA/server-tools
Health
85/100
good
-
Security25/25No findings
-
Activity20/25Last human commit 8 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 8 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.88 MB
Module directory on disk
Code analysis
1 migration note
2 models
3 views
0 HTTP endpoints
Migration considerations
Image— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module extends the functionality of any model to support multiple images (a gallery) attached to it and allow you to manage them.
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- stock_lot_multi_image
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_idMany2one → ir.attachmentdomain="[('index_content', '=', 'image')]"string='Image stored in Attachment' args: 'ir.attachment' -
attachment_imageImageargs: 'Image' -
commentsTexttranslate=True -
extensionCharreadonly=True args: 'File extension' -
file_db_storeBinaryattachment=False args: 'Image stored in database' -
filenameChar -
image_1920Imagecompute='_compute_image'max_height=1920max_width=1920store=False args: 'Full-sized image' -
nameChartranslate=True args: 'Image title' -
owner_idIntegerrequired=True args: 'Owner' -
owner_modelCharrequired=True -
owner_ref_idReferencecompute='_compute_owner_ref_id'selection='_selection_owner_ref_id'store=Truestring='Referenced Owner' -
pathCharhelp='Image path' args: 'Image path' -
sequenceIntegerdefault=10 -
show_technicalBooleancompute='_compute_show_technical' -
storageSelectiondefault='filestore'required=True args: [('url', 'URL'), ('file', 'OS file'), ('db', 'Database'), ('filestore', 'Filestore'), ('attachment', 'Attachment')] -
urlCharargs: 'Image remote URL'
No public methods.
New fields (2)
-
image_1920Imagecompute='_compute_multi_image'inverse='_inverse_multi_image_main'store=Falsestring='Main image' -
image_idsOne2many → base_multi_image.imagecomodel_name='base_multi_image.image'copy=Truedomain=<expr>inverse_name='owner_id'string='Images'
-
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…
Loading…