Metadata-Version: 2.1
Name: odoo12-addon-stock-realign-move-and-quants
Version: 12.0.1.0.1.99.dev1
Summary: Align stock move lines and stock quants. This modules fixes the symptoms and not the root cause.
Home-page: https://github.com/OCA/stock-logistics-warehouse
Author: Camptocamp,Coop IT Easy SCRLfs,Odoo Community Association (OCA)
Author-email: support@odoo-community.org
License: AGPL-3
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 12.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Requires-Python: >=3.5
Requires-Dist: odoo <12.1dev,>=12.0a

==============================
Stock Realign Moves and Quants
==============================

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

.. |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--warehouse-lightgray.png?logo=github
    :target: https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_realign_move_and_quants
    :alt: OCA/stock-logistics-warehouse
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_realign_move_and_quants
    :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-warehouse&target_branch=12.0
    :alt: Try me on Runboat

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

A bug in Odoo 12 leads to the desynchronisation of the stock
quants and the stock move lines. The root cause has yet to be found.
This modules fixes the symptoms and not the cause. It aims to
1. Realign the stock quants and the stock move lines
2. Correct on the fly future desynchronisation

To do that, we assume the source of truth are the move lines rather than
the quants.

More information on this issue: https://github.com/odoo/odoo/issues/62139

**Table of contents**

.. contents::
   :local:

Usage
=====

This module adds a wizard in the menu

  Inventory > Configuration > Align Stock Moves and Quants

This wizard is only accessible to admin user.

In this wizard, enter the date from which you want to fix the alignement.
Good dates are the first ever move (default) or the switch to Odoo 12.

Upon validation, the wizard

- computes the stock based on the stock move lines,
- fixes the quants with that value (cf server logs),
- opens an inventory with all the fixed product.

Both columns, theoretical quantity and verified quantity display the same
value. This is normal, theoretical quantity is based on the new fixed
quants and verified quantity is set by the wizard based on the moves.

This is a good time to make an actual inventory on those product and
fix the values in the inventory.

Finally, click on validate to finish the process.

This module also adds a fix to quant to prevent blocking the pickings
in the future.

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

CAREFUL : this module has not been tested on a warehouse with multi-location or using packages.


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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/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-warehouse/issues/new?body=module:%20stock_realign_move_and_quants%0Aversion:%2012.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
~~~~~~~

* Camptocamp
* Coop IT Easy SCRLfs

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

* `Camptocamp <https://www.camptocamp.com/en>`_:

  * Alexandre Fayolle (actual fix)

* `ForgeFlow, S.L. <https://www.forgeflow.com>`_
* `Coop IT Easy SCRLfs <https://coopiteasy.be>`_:

  * Robin Keunen (wrapping)

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-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_realign_move_and_quants>`_ project on GitHub.

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


