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

Description

This module allows to set ingredients information for a given product.

Dependencies

Odoo dependencies
Python dependencies
openupgradelib
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 5

XML IDNameModelTypeStatus
product_attribute_value_form_view product.attribute.value.form product.attribute.value form New
product_ingredient_form_view product.ingredient.form.view product.ingredient form New
product_normal_form_view product.product form Inherits product.product_normal_form_view
product_template_only_form_view product.template form Inherits product.product_template_only_form_view
view_production_lot_form stock.lot form Inherits stock.view_production_lot_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 8

New fields (0)

No new fields.

Public methods (1)
  • get_allergen_id(self)
    @api.model@ormcache()
    Helper to get allergen attribute id

New fields (0)

No new fields.

Public methods (1)
  • default_get(self, fields_list)
    @api.model

New fields (4)
  • allergen_id Many2one → product.attribute.value
    comodel_name='product.attribute.value' context={'set_allergen_attribute': True, 'show_attribute': False} domain=<expr>
  • is_allergen Boolean
  • name Char
    translate=True
  • scientific_name Char
Public methods (0)

No public methods.

New fields (7)
  • allergen_id Many2one
    related='ingredient_id.allergen_id'
  • ingredient_id Many2one → product.ingredient
    comodel_name='product.ingredient'
  • is_allergen Boolean
    related='ingredient_id.is_allergen'
  • percentage Float
    digits='Product Unit of Measure'
  • product_id Many2one → product.product
    comodel_name='product.product'
  • scientific_name Char
    related='ingredient_id.scientific_name'
  • sequence Integer
Public methods (0)

No public methods.

New fields (4)
  • allergen_ids Many2many → product.attribute.value
    comodel_name='product.attribute.value' compute='_compute_allergen_id' string='Allergens'
  • ingredient_additional_info Text
    translate=True
  • ingredient_allergen_trace_ids Many2many → product.attribute.value
    comodel_name='product.attribute.value' context={'set_allergen_attribute': True, 'show_attribute': False} domain=<expr> string='Allergen traces'
  • ingredient_ids One2many → product.ingredient.value
    comodel_name='product.ingredient.value' inverse_name='product_id' string='Ingredients'
Public methods (0)

No public methods.

New fields (4)
  • allergen_ids Many2many
    related='product_variant_ids.allergen_ids'
  • ingredient_additional_info Text
    readonly=False related='product_variant_ids.ingredient_additional_info'
  • ingredient_allergen_trace_ids Many2many
    readonly=False related='product_variant_ids.ingredient_allergen_trace_ids'
  • ingredient_ids One2many
    readonly=False related='product_variant_ids.ingredient_ids'
Public methods (0)

No public methods.

New fields (3)
  • ingredient_additional_info Text
    compute='_compute_ingredient_values' readonly=False store=True translate=True
  • ingredient_allergen_trace_ids Many2many → product.attribute.value
    comodel_name='product.attribute.value' compute='_compute_ingredient_values' context={'set_allergen_attribute': True, 'show_attribute': False} domain=<expr> readonly=False store=True
  • ingredient_ids One2many → stock.lot.ingredient.value
    comodel_name='stock.lot.ingredient.value' compute='_compute_ingredient_values' inverse_name='lot_id' readonly=False store=True
Public methods (0)

No public methods.

New fields (7)
  • allergen_id Many2one
    related='ingredient_id.allergen_id'
  • ingredient_id Many2one → product.ingredient
    comodel_name='product.ingredient'
  • is_allergen Boolean
    related='ingredient_id.is_allergen'
  • lot_id Many2one → stock.lot
    comodel_name='stock.lot'
  • percentage Float
    digits='Product Unit of Measure'
  • scientific_name Char
    related='ingredient_id.scientific_name'
  • sequence Integer
Public methods (0)

No public methods.

Loading…

Loading…

Loading…