Product Abc Classification based on delivered products
product_abc_classification_sale_stock · OCA/product-attribute
Health
67/100
fair
-
Security25/25No findings
-
Activity25/25Last human commit 5 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
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.12 MB
Module directory on disk
Code analysis
1 migration note
3 models
4 views
0 HTTP endpoints
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `DELETE FROM abc_classification_product_level WHERE id in %(ids)s` - re-check the table/column names still match after upgrading. migration-raw-sql-write · 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 modules includes an ABC analysis computation profile based on the number of sale order lines delivered from a given date by product.
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 |
|---|---|---|---|---|
abc_classification_product_level_form_view |
abc.classification.product.level.form (in product_abc_classification_sale_stock) | abc.classification.product.level | form | Inherits product_abc_classification.abc_classification_product_level_form_view |
abc_classification_profile_form_view |
abc.classification.profile.form (in product_abc_classification_sale_stock) | abc.classification.profile | form | Inherits product_abc_classification.abc_classification_profile_form_view |
abc_sale_stock_level_history_search_view |
abc.sale_stock.level.history.search (in product_abc_classification_sale_stock) | abc.sale_stock.level.history | search | New |
abc_sale_stock_level_history_tree_view |
abc.sale_stock.level.history.tree (in product_abc_classification_sale_stock) | abc.sale_stock.level.history | list | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (1)
-
sale_stock_level_history_idsOne2many → abc.sale_stock.level.historycomodel_name='abc.sale_stock.level.history'inverse_name='product_level_id'
No public methods.
New fields (2)
-
profile_typeSelectionondelete={'sale_stock': 'cascade'}selection_add=[('sale_stock', 'Based on the count of delivered sale order line by product')] -
warehouse_idMany2one → stock.warehousedefault=<expr>ondelete='cascade' args: 'stock.warehouse', 'Warehouse'
No public methods.
New fields (17)
-
computed_level_idMany2one → abc.classification.levelondelete='cascade'readonly=Truestring='Computed classification level' args: 'abc.classification.level' -
cumulated_percentageFloataggregator=Nonedigits=(7, 4)help='Cumulated percentage of all the products with a better ranking'readonly=Truerequired=True -
cumulated_percentage_productsFloataggregator=Nonedigits=(7, 4)help='Cumulated percentage of total products analyzed with a better ranking'readonly=Truerequired=True args: 'Cumulated percentage of products' -
from_dateDatereadonly=True -
number_so_linesIntegerreadonly=Truerequired=True args: 'Number of sale order lines' -
percentageFloataggregator='sum'digits=(7, 4)help='Percentage of total sale order lines'readonly=Truerequired=True -
percentage_productsFloataggregator='sum'digits=(7, 4)help='Percentage of total products analyzed'readonly=Truerequired=True args: 'Percentage of products' -
product_idMany2one → product.productindex=Trueondelete='cascade'readonly=Truerequired=Truestring='Product' args: 'product.product' -
product_level_idMany2one → abc.classification.product.levelindex=Trueondelete='cascade'readonly=Truerequired=True args: 'abc.classification.product.level' -
product_tmpl_idMany2one → product.templatereadonly=Truerelated='product_id.product_tmpl_id'store=Truestring='Product template' args: 'product.template' -
profile_idMany2one → abc.classification.profileondelete='cascade'readonly=Truerequired=Truestring='Profile' args: 'abc.classification.profile' -
rankingIntegerhelp='Ranking by number of oder lines'readonly=Truerequired=True -
sum_cumulated_percentagesFloataggregator=Nonehelp='Sum cumulated % so lines and cumulated % products'readonly=Truerequired=True args: 'Sum of cummulated percentages' -
to_dateDatereadonly=True -
total_productsIntegeraggregator=Nonereadonly=Truerequired=True args: 'Total products analysed' -
total_so_linesIntegerreadonly=Truerequired=True args: 'Total of sale order lines' -
warehouse_idMany2one → stock.warehouseondelete='cascade'readonly=False args: 'stock.warehouse', 'Warehouse'
No public methods.
Loading…
Loading…