Skip to content
Health
55/100
fair
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 10 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 16.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.91 MB
Module directory on disk
Code analysis 3 migration notes 5 models 4 views 0 HTTP endpoints

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

Odoo dependencies
OCA/stock-logistics-availability:
odoo/odoo:
- web
- bus
- uom
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 4

XML IDNameModelTypeStatus
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

New fields (3)
  • product_interchangeable_ids Many2many → product.product
    comodel_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_ids Many2many → product.product
    column1='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_ids Many2many → product.product
    column1='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'
Public methods (0)

No public methods.

New fields (1)
  • product_tmpl_interchangeable_ids Many2many → product.product
    comodel_name='product.product' compute='_compute_product_tmpl_interchangeable_ids' inverse='_inverse_product_tmpl_interchangeable_ids'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • available_pass_interchangeable Boolean
  • pass_interchangeable Boolean
Public methods (0)

No public methods.

New fields (1)
  • substitute_products_mode Selection
    required=False selection=[('all', 'If all available'), ('any', 'If any available')] string='Substitute Products'
Public methods (0)

No public methods.