Stock Average Daily Sale
stock_average_daily_sale · OCA/stock-logistics-reporting
Health
77/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by15/251 module depends on it
-
Maturity12/25In 2 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
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.11 MB
Module directory on disk
Code analysis
4 migration notes
3 models
5 views
0 HTTP endpoints
Migration considerations
StockAverageDailySaleConfig— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourcerefresh_materialized_view— Migrating to 18.0: `ir.cron` lost `numbercall`/`doall`: remove them from the record, data loading fails on unknown fields. migration-cron-numbercall · sourcestock_average_daily_sale_config_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourcestockdaily_sale_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · 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
- Odoo dependencies
- Python dependencies
- freezegun
- System dependencies
- None
- Required by
- stock_location_orderpoint_average_daily_sale
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
stock_average_daily_sale_config_form_view |
stock.average.daily.sale.config.form | stock.average.daily.sale.config | form | New |
stock_average_daily_sale_config_tree_view |
stock.average.daily.sale.config.tree | stock.average.daily.sale.config | tree | New |
stock_daily_sale_search_view |
stock.daily.sale.search (in stock_average_daily_sale) | stock.average.daily.sale | search | New |
stockdaily_sale_form_view |
stock.daily.sale.form (in stock_average_daily_sale) | stock.average.daily.sale | form | New |
stockdaily_sale_tree_view |
stock.daily.sale.tree (in stock_average_daily_sale) | stock.average.daily.sale | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (17)
-
abc_classification_levelSelectionindex=Truereadonly=Truerequired=Trueselection=ABC_SELECTIONstring='ABC' -
average_daily_qtyFloatdigits='Product Unit of Measure'help='The quantity delivered on average on one day for this product on the period.'required=True -
average_daily_sales_countFloatdigits='Product Unit of Measure'help='How much deliveries on average for this product on the period.'required=True -
average_qty_by_saleFloatdigits='Product Unit of Measure'help='The quantity delivered on average for one delivery of this product on the period.'required=True -
config_idMany2one → stock.average.daily.sale.configcomodel_name='stock.average.daily.sale.config'required=Truestring='Stock Average Daily Sale Configuration' -
daily_standard_deviationFloatrequired=Truestring='Daily Qty Standard Deviation' -
date_fromDaterequired=Truestring='From' -
date_toDaterequired=Truestring='To' -
is_mtoBooleanindex=Truereadonly=Truestore=Truestring='On Order' -
location_idMany2one → stock.locationcomodel_name='stock.location'required=True -
max_daily_qtyFloatdigits='Product Unit of Measure'help='The max quantity delivered on one day for this product on the period.'required=True -
nbr_salesIntegerhelp='The total amount of deliveries for this product over the complete period'required=Truestring='Number of Sales' -
product_idMany2one → product.productcomodel_name='product.product'index=Truerequired=Truestring='Product' -
recommended_qtyFloatcompute='_compute_recommended_qty'digits='Product Unit of Measure'help='Minimal recommended quantity in stock. Formula: average daily qty * number days in stock + safety'required=True -
safetyFloatcompute='_compute_safety'help='Safety stock to cover the variability of the quantity delivered each day. Formula: daily standard deviation * safety factor * sqrt(nbr days in the period)'required=True -
sale_okBooleanhelp='Specify if the product can be selected in a sales order line.'index=Truereadonly=Truestring='Can be Sold' -
warehouse_idMany2one → stock.warehousecomodel_name='stock.warehouse'required=True
-
get_refresh_date(self)@api.model -
init(self) -
refresh_view(self)@api.model -
search(self, domain, offset=0, limit=None, order=None, count=False)@api.model -
set_refresh_date(self, date=None)@api.model
New fields (11)
-
abc_classification_levelSelectiondefault='b'required=Trueselection=ABC_SELECTION -
activeBooleandefault=True -
company_idMany2one → res.companycomodel_name='res.company'default=<expr>required=Truestring='Company' -
exclude_weekendsBooleanhelp="Set to True only if you do not expect any orders/deliveries during the weekends. If set to True, stock moves done on weekends won't be taken into account to calculate the average daily usage" -
location_idMany2one → stock.locationcheck_company=Truecomodel_name='stock.location'compute='_compute_average_daily_sale_root_location_id'precompute=Truereadonly=Falserequired=Truestore=Truestring='Location' -
number_days_qty_in_stockIntegerdefault=2required=Truestring='Number of days of quantities in stock' -
number_sales_qty_in_stockIntegerdefault=2required=Truestring='Number of sales quantities in stock' -
period_nameSelectionrequired=Trueselection=[('year', 'Years'), ('month', 'Months'), ('week', 'Weeks'), ('day', 'Days')]string='Period analyzed unit' -
period_valueIntegerrequired=True args: 'Period analyzed value' -
safety_factorFloatdigits=(2, 2)required=True -
warehouse_idMany2one → stock.warehousecheck_company=Truecomodel_name='stock.warehouse'default=<expr>ondelete='cascade'required=Truestring='Warehouse'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…