Sale Product Classification
sale_product_classification · OCA/sale-workflow
Renamed to product_abc_classification_sale in 13.0
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 63 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
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.06 MB
Module directory on disk
Code analysis
2 migration notes
4 models
4 views
0 HTTP endpoints
Migration considerations
ir_cron_product_classification— Migrating to 18.0: `ir.cron` lost `numbercall`/`doall`: remove them from the record, data loading fails on unknown fields. migration-cron-numbercall · sourceproduct_template_only_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 · 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
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 | form | Inherits product.product_normal_form_view | |
product_template_only_form_view |
product.template | form | Inherits product.product_template_only_form_view | |
product_template_search_view |
product.template | search | Inherits product.product_template_search_view | |
res_config_settings_view_form_sale |
res.config.settings | form | Inherits sale.res_config_settings_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (2)
-
sale_classificationSelectioncompany_dependent=Truedefault='d'help='How the product performs according to sales'selection=[('a', 'A'), ('b', 'B'), ('c', 'C'), ('d', 'D')]string='Sales classification' -
seasonality_classificationSelectioncompany_dependent=Truedefault='low'help='Whether this product is selled during very short periods of time or steadily across the whole year'selection=[('very high', 'Very high'), ('high', 'High'), ('medium', 'Medium'), ('low', 'Low')]string='Seasonility'
-
action_get_sales_classification(self)Compute every product classifications according to each company rules and sales -
cron_sales_classification(self)@api.modelEvaluate according company rules
New fields (2)
-
sale_classificationSelectioncompute='_compute_sale_classification'inverse='_inverse_sale_classification'readonly=Falsesearch='_search_sale_classification'selection=[('a', 'A'), ('b', 'B'), ('c', 'C'), ('d', 'D')] -
seasonality_classificationSelectioncompute='_compute_seasonality_classification'inverse='_inverse_seasonality_classification'readonly=Falsesearch='_search_seasonality_classification'selection=[('very high', 'Very high'), ('high', 'High'), ('medium', 'Medium'), ('low', 'Low')]
-
create(self, vals_list)@api.model_create_multiSet given values to first variant after creation
New fields (5)
-
sale_classification_aMonetarydefault=10000string='Sales equal or above this amount' -
sale_classification_bMonetarydefault=5000string='Sales equal or above this amount and below A' -
sale_classification_cMonetarydefault=2500string='Sales equal or above this amount and below B' -
sale_classification_days_to_evaluateIntegerdefault=365string='From the date the action is run, evalute these days' -
sale_classification_days_to_ignoreIntegerdefault=0help='If set, the products created in these date ranges will be ignored in the classification compute'string='Ignore products newer than these days'
No public methods.
New fields (5)
-
sale_classification_aMonetaryreadonly=Falserelated='company_id.sale_classification_a' -
sale_classification_bMonetaryreadonly=Falserelated='company_id.sale_classification_b' -
sale_classification_cMonetaryreadonly=Falserelated='company_id.sale_classification_c' -
sale_classification_days_to_evaluateIntegerreadonly=Falserelated='company_id.sale_classification_days_to_evaluate' -
sale_classification_days_to_ignoreIntegerreadonly=Falserelated='company_id.sale_classification_days_to_ignore'
No public methods.