Metadata-Version: 2.1
Name: odoo14-addon-stock_average_daily_sale
Version: 14.0.1.0.1
Summary: Allows to gather delivered products average on daily basis
Home-page: https://github.com/OCA/stock-logistics-reporting
Author: ACSONE SA/NV,BCIM,Odoo Community Association (OCA)
Author-email: support@odoo-community.org
License: AGPL-3
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 14.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Requires-Python: >=3.6
Requires-Dist: freezegun
Requires-Dist: odoo14-addon-product-route-mto
Requires-Dist: odoo14-addon-stock-location-warehouse
Requires-Dist: odoo14-addon-stock-storage-type-putaway-abc
Requires-Dist: odoo<14.1dev,>=14.0a

========================
Stock Average Daily Sale
========================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:c52210edd44e776cae448307e04a9cc6a67ac2f41bcced4dadce27a98a0beb7a
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github
    :target: https://github.com/OCA/stock-logistics-reporting/tree/14.0/stock_average_daily_sale
    :alt: OCA/stock-logistics-reporting
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/stock-logistics-reporting-14-0/stock-logistics-reporting-14-0-stock_average_daily_sale
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-reporting&target_branch=14.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to gather stock consumptions and build reporting for average daily
sales (aka stock 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 window you want to analyze.
So, you can define criteria to filter data:

* The Warehouse
* The product ABC classification
* The location kind (Zone, Area, Bin)
* The amount of time to look backward (in days or weeks or months or years)

Moreover, you can define:

* A safety factor
* A standard deviation exclusion factor
* A different root location for analysis per Warehouse

**Table of contents**

.. contents::
   :local:

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 kind (Zone, Area, Bin) - see stock_location_zone module
  * The period of time to analyze back (in days/weeks/months/years)
  * A standard deviation exclusion factor
  * 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 4 hours. You can change
  that depending on your needs.

* By default, the root location where analysis is done is the Warehouse stock location,
  but you can change it.

    * Go to Inventory > Configuration > Warehouses
    * Change the 'Average Daily Sale Root Location' field according your needs

Known issues / Roadmap
======================

* Move the filter on saturday/sunday to configuration parameters
* An extensible data gathering query

Changelog
=========

16.0.1.0.0 (2023-01-13)
~~~~~~~~~~~~~~~~~~~~~~~

* [16.0][ADD] stock_average_daily_sale

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-reporting/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 <https://github.com/OCA/stock-logistics-reporting/issues/new?body=module:%20stock_average_daily_sale%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~

* ACSONE SA/NV
* BCIM

Contributors
~~~~~~~~~~~~

* Laurent Mignon <laurent.mignon@acsone.eu>
* Denis Roussel <denis.roussel@acsone.eu>
* Jacques-Etienne Baudoux (BCIM) <je@bcim.be>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

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.

This module is part of the `OCA/stock-logistics-reporting <https://github.com/OCA/stock-logistics-reporting/tree/14.0/stock_average_daily_sale>`_ project on GitHub.

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