Stock Picking Product Interchangeable
stock_picking_product_interchangeable · OCA/stock-logistics-warehouse
-
Security25/25No findings
-
Activity20/25Last human commit 10 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
product_template_interchangeable_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourcestock_picking_type— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_picking_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · 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 implements "interchangeable" products for Sales Orders. If an interchangeable product is not available in stock in sufficient quantity to complete the order its substitute products will be added to picking to complete the order.
NB: Interchangeable products substitute each other. Eg if "English Breakfast" can substitutes "Breakfast in England" then "Breakfast in England" can substitute "English Breakfast".
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_normal_form_view |
product.product.interchangeable.form | product.product | form | Inherits product.product_normal_form_view |
product_template_interchangeable_form_view |
product.template.interchangeable.product.form | product.template | form | Inherits product.product_template_only_form_view |
stock_picking_type |
stock.picking.type.substitute.products | stock.picking.type | form | Inherits stock.view_picking_type_form |
view_picking_form |
stock.picking.interchangeable.form | stock.picking | form | Inherits stock.view_picking_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
-
product_interchangeable_idsMany2many → product.productcomodel_name='product.product'compute='_compute_product_interchangeable_ids'help='Products that can be substituted by current product'inverse='_inverse_product_interchangeable_ids'string='Replaces' -
product_replaced_by_idsMany2many → product.productcolumn1='product_replaced_id'column2='product_id'comodel_name='product.product'help='Products that can substitute current current product'relation='product_substitute_rel'string='Replaces' -
product_replaces_idsMany2many → product.productcolumn1='product_id'column2='product_replaced_id'comodel_name='product.product'help='Products that can be substituted by current product'relation='product_substitute_rel'string='Replaces'
No public methods.
-
product_tmpl_interchangeable_idsMany2many → product.productcomodel_name='product.product'compute='_compute_product_tmpl_interchangeable_ids'inverse='_inverse_product_tmpl_interchangeable_ids'
No public methods.
No new fields.
Public methods (0)No public methods.
-
available_pass_interchangeableBoolean -
pass_interchangeableBoolean
No public methods.
-
substitute_products_modeSelectionrequired=Falseselection=[('all', 'If all available'), ('any', 'If any available')]string='Substitute Products'
No public methods.