Skip to content
Health
75/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 8 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 5 Odoo series since 12.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
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 0 migration notes 2 models 2 views 0 HTTP endpoints

Description

This module extends the functionality of any model to support conditional images (based on the record attributes) and to manage them either globally or by company.

The main goal behind this module is to avoid storing the same image multiple times. For example, for every partner, there is a related image (most of the time, it's the default one). With this module properly set up, it will be stored only one time and you can change it whenever you want for all partners.

WARNING: this module cannot be used on the same objects using the module base_multi_image.

Dependencies

Odoo dependencies
odoo/odoo:
Python dependencies
None
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 2

XML IDNameModelTypeStatus
view_conditional_image_form conditional.image.form conditional.image form New
view_conditional_image_tree conditional.image.tree conditional.image list New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 2

New fields (4)
  • company_id Many2one → res.company
    help='Company related check. If inherited object does not have a `company_id` field, it will be ignored. The check will first take the records with a company then, if no match is found, the ones without a company.' args: 'res.company', 'Company'
  • model_name Char
    required=True
  • name Char
    required=True
  • selector Text
    help='Python expression used as selector when multiple images are usedfor the same object. The variable `object` refers to the actual record on which the expression will be executed. An empty expression will always return `True`.'
Public methods (0)

No public methods.

New fields (5)
  • image_1024 Image
    compute='_compute_images' readonly=True store=False
  • image_128 Image
    compute='_compute_images' readonly=True store=False
  • image_1920 Image
    compute='_compute_images' readonly=True store=False
  • image_256 Image
    compute='_compute_images' readonly=True store=False
  • image_512 Image
    compute='_compute_images' readonly=True store=False
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…