Metadata-Version: 2.1
Name: odoo14-addon-stock_quant_history
Version: 14.0.1.2.0
Summary: Re-generate stock quants for given date
Home-page: https://github.com/OCA/stock-logistics-reporting
Author: Pierre Verkest <pierreverkest84@gmail.com>, Stéphane Mangin <stephane.mangin@foodles.com>, 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: odoo<14.1dev,>=14.0a

===================
Stock Quant History
===================

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

.. |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_quant_history
    :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_quant_history
    :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 regenerate stock.quant as it was for a given date.

All stock quant history re-generated for a given date are called snapshot.

To generate the first snapshot this module assume all `stock.move.line`
are present in the database.

Next snapshot is computed based on the previous snapshot present in the database.

Once a snapshot has been taken, every locked and done picking won't be able to unlock
to avoid incoherent stock history.

**Table of contents**

.. contents::
   :local:

Usage
=====

Generate a new stock snapshot
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Go to:  *Inventory / Reporting / History / Stock snapshot*
* choose the date you want to re-generate stock quants
* click on Generate

Consult stock quant for a given snapshot
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Go to:  *Inventory / Reporting / History / Stock snapshot*
* select the existing snapshot to open the form view
* click on smart button to display quants at that time

Compare stock over snapshots
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Go to: *Inventory / Reporting / History / Stock snapshot*
* In tree view select at least 2 snapshots
* Click on *Action / Compare stocks*
* You'll be redirected to the stock quant tree view for selected snapshots

or

* Go to: *Inventory / Reporting / History / Stock quants*
* use different filters / group and views to make your analysis

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

Short terms
~~~~~~~~~~~

* Add a companion module stock_quant_history_account
  to make the glue between stock_quant_history and stock_account adding
  the stock value

Long terms
~~~~~~~~~~

* Add filters (by locations, by product...) while generating
  tight snapshots (not reused as based snapshot)
* add owner and package fields

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_quant_history%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
~~~~~~~

* Pierre Verkest <pierreverkest84@gmail.com>
* Stéphane Mangin <stephane.mangin@foodles.com>

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.

.. |maintainer-petrus-v| image:: https://github.com/petrus-v.png?size=40px
    :target: https://github.com/petrus-v
    :alt: petrus-v
.. |maintainer-StephaneMangin| image:: https://github.com/StephaneMangin.png?size=40px
    :target: https://github.com/StephaneMangin
    :alt: StephaneMangin

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-petrus-v| |maintainer-StephaneMangin| 

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

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