Product Allergen

product_allergen
REPOSITORY
REPOSITORYOCA/community-data-files
GIT
GIThttps://github.com/OCA/community-data-files.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/community-data-files/tree/18.0/product_allergen
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYProduct
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, christian-ramos-tecnativa
WEBSITE
WEBSITEhttps://github.com/OCA/community-data-files
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:19
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - uom
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module adds allergen information support to products in Odoo. Also
adds the posibility to show allergen icons on product labels without
barcodes. This is because labels with barcodes don't have enough space
to show allergens.

Code Analysis

Views touched (13)
XML IDNameModelTypeStatus
product_allergens product_allergens ir.ui.view qweb New
product_template_form_view_allergens product.template.form.allergens product.template xpath Inherits product.product_template_only_form_view
product_variant_form_view_allergens product.product.form.allergens product.product xpath Inherits product.product_normal_form_view
report_simple_label2x7 report_simple_label2x7 ir.ui.view qweb Inherits product.report_simple_label2x7
report_simple_label4x12 report_simple_label4x12 ir.ui.view qweb Inherits product.report_simple_label4x12
report_simple_label4x12_no_price report_simple_label4x12_no_price ir.ui.view qweb Inherits product.report_simple_label4x12_no_price
report_simple_label4x7 report_simple_label4x7 ir.ui.view qweb Inherits product.report_simple_label4x7
report_simple_label_dymo report_simple_label_dymo ir.ui.view qweb Inherits product.report_simple_label_dymo
res_config_settings_view_form res.config.settings.view.form.inherit.allergen res.config.settings xpath Inherits product.res_config_settings_view_form
view_allergen_allergen_form allergen.allergen.form allergen.allergen form New
view_allergen_allergen_kanban allergen.allergen.kanban allergen.allergen kanban New
view_allergen_allergen_list allergen.allergen.list allergen.allergen list New
view_allergen_allergen_search allergen.allergen.search allergen.allergen search New
Models touched (4)

New fields (3)
  • active Boolean
    default=True
  • image Image
    max_height=128 max_width=128 string='Icon'
  • name Char
    required=True translate=True
Public methods (0)

No public methods.

New fields (1)
  • allergen_ids Many2many → allergen.allergen
    comodel_name='allergen.allergen' help='Allergens present in this product variant' string='Allergens'
Public methods (0)

No public methods.

New fields (1)
  • allergen_ids Many2many → allergen.allergen
    comodel_name='allergen.allergen' compute='_compute_allergen_ids' help='Allergens present in this product template. When the template has a single variant, changes are applied to that variant. When there are multiple variants, this shows the union of all variant allergens.' inverse='_inverse_allergen_ids' store=False string='Allergens'
Public methods (0)

No public methods.

New fields (1)
  • show_allergens_on_product_labels Boolean
    config_parameter='product_allergen.show_allergens_on_product_labels' help='Display allergen icons at the bottom of product labels' string='Show Allergens on Product Labels'
Public methods (0)

No public methods.