Skip to main content

Allows to gather consumed products on daily basis

Project description

Beta License: AGPL-3 OCA/stock-logistics-reporting Translate me on Weblate Try me on Runboat

This module allows to gather stock consumptions and build reporting for average daily consumptions. Technically, this has been done through a materialized postgresql view in order to be as fast as possible (some other flow modules can depend on this).

You can add several configurations depending on the location from which consumptions are counted.

For each product ABC classification, you can define the computation horizon, i.e. the amount of time to look backward (in days or weeks or months or years).

You can exclude some days of the week like saturday and sunday from the computation. However, if moves occurs on those excluded days, they are still counted. If your warehouse is open usualy on week days, the averages will be on 5 days a week. If the warehouse had some activity during the week-end, this will be considered in the total and average as if it happened during weekdays.

The report also provides a recommended quantity. That recommended quantity is the biggest between: - a coverage in days * the average daily consumption + a safety - a coverage in days * the average consumption

The second part tries to better recommend a quantity for C products. The safety is computed as: daily standard deviation * sqrt(coverage) * a safety factor It is up to you to configure the safety factor.

Table of contents

Configuration

  • To configure data analysis, you should go to Inventory > Configuration > Average daily sales computation parameters

  • You need to fill in the following informations:

    • The product ABC classification you want - see product_abc_classification module

    • The concerned warehouse

    • The stock location for which you want to compute the usage

    • The period of time to analyze back (in days/weeks/months/years)

    • A safety factor

  • Go to Configuration > Technical > Scheduled Actions > Refresh average daily sales materialized view

    By default, the scheduled action is set to refresh data each day. Note that the current day is not take into consideration in the computations, so you better run the scheduled action on the early morning.

    WARNING: The current query is not TZ compliant. So the cron must run after midnight UTC time.

  • By default, the root location where analysis is done is the Warehouse stock location, but you can change it and you can compute usage for multiple locations of the warehouse. Ensure to set a location that is used by the stock moves or a parent one.

Known issues / Roadmap

  • Allow to exclude specific days

  • An extensible data gathering query

  • Make it timezone compliant

Changelog

16.0.1.0.0 (2023-01-13)

  • [16.0][ADD] stock_average_daily_sale

16.0.2.0.0 (2025-04-05)

  • [16.0][REF] refactor formulas for proper metrics

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • ACSONE SA/NV

  • BCIM

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

jbaudoux

This module is part of the OCA/stock-logistics-reporting project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_stock_average_daily_sale-16.0.3.0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_stock_average_daily_sale-16.0.3.0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 84f0a9d9ad32252412f895fde79651edf48b799ab15b622e9a47e67e37459c95
MD5 f3f3c02d9d64fbc1cca84ab859c7a773
BLAKE2b-256 7f81fe8e0e7531165dfabf653e67fc0893009673a3d33036047d226d4c6798d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page