TIP: You can type at any time to perform a new search.
Product Ingredients
product_ingredient · OCA/product-attribute
- Repository
- OCA/product-attribute · module folder · Try on Runboat
- Module version
- 1.0.1
- Category
- Technical Settings
- Folder size
- 0.06 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/product-attribute
- Last tracking update
- 2026-08-07 08:42:54
- Authors
- Odoo Community Association (OCA), Tecnativa
- Maintainers
- Odoo Community Association (OCA), Tecnativa
- Committers
- sergio-teruel, Weblate, OCA-git-bot, David Bañón
Code Analysis ⓘ
Views touched (5)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_idMany2one → product.attribute.valuecomodel_name='product.attribute.value'context={'set_allergen_attribute': True, 'show_attribute': False}domain=<expr> -
is_allergenBoolean -
nameChartranslate=True -
scientific_nameChar
No public methods.
New fields (7)
-
allergen_idMany2onerelated='ingredient_id.allergen_id' -
ingredient_idMany2one → product.ingredientcomodel_name='product.ingredient' -
is_allergenBooleanrelated='ingredient_id.is_allergen' -
percentageFloatdigits='Product Unit of Measure' -
product_idMany2one → product.productcomodel_name='product.product' -
scientific_nameCharrelated='ingredient_id.scientific_name' -
sequenceInteger
No public methods.
New fields (4)
-
allergen_idsMany2many → product.attribute.valuecomodel_name='product.attribute.value'compute='_compute_allergen_id'string='Allergens' -
ingredient_additional_infoTexttranslate=True -
ingredient_allergen_trace_idsMany2many → product.attribute.valuecomodel_name='product.attribute.value'context={'set_allergen_attribute': True, 'show_attribute': False}domain=<expr>string='Allergen traces' -
ingredient_idsOne2many → product.ingredient.valuecomodel_name='product.ingredient.value'inverse_name='product_id'string='Ingredients'
No public methods.
New fields (4)
-
allergen_idsMany2manyrelated='product_variant_ids.allergen_ids' -
ingredient_additional_infoTextreadonly=Falserelated='product_variant_ids.ingredient_additional_info' -
ingredient_allergen_trace_idsMany2manyreadonly=Falserelated='product_variant_ids.ingredient_allergen_trace_ids' -
ingredient_idsOne2manyreadonly=Falserelated='product_variant_ids.ingredient_ids'
No public methods.
New fields (3)
-
ingredient_additional_infoTextcompute='_compute_ingredient_values'readonly=Falsestore=Truetranslate=True -
ingredient_allergen_trace_idsMany2many → product.attribute.valuecomodel_name='product.attribute.value'compute='_compute_ingredient_values'context={'set_allergen_attribute': True, 'show_attribute': False}domain=<expr>readonly=Falsestore=True -
ingredient_idsOne2many → stock.lot.ingredient.valuecomodel_name='stock.lot.ingredient.value'compute='_compute_ingredient_values'inverse_name='lot_id'readonly=Falsestore=True
No public methods.
New fields (7)
-
allergen_idMany2onerelated='ingredient_id.allergen_id' -
ingredient_idMany2one → product.ingredientcomodel_name='product.ingredient' -
is_allergenBooleanrelated='ingredient_id.is_allergen' -
lot_idMany2one → stock.lotcomodel_name='stock.lot' -
percentageFloatdigits='Product Unit of Measure' -
scientific_nameCharrelated='ingredient_id.scientific_name' -
sequenceInteger
No public methods.
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 113 days ago
- Last activity
- 81 days ago
- Repository
- OCA/product-attribute
- Pull request
- [16.0][MIG] product_ingredient: Migration to 16.0 (#2277)
- Status
- Open migration PR — not merged yet for this version
- CI status
- checks failing
- Open since
- 43 days ago
- Last activity
- 8 days ago
- Repository
- OCA/product-attribute
- Pull request
- [19.0] [MIG] product_ingredient: Migration to 19.0 (#2343)