Metadata-Version: 2.1
Name: odoo-addon-stock_reception_discrepancy_distribution
Version: 18.0.1.0.0.1
Requires-Python: >=3.10
Requires-Dist: odoo==18.0.*
Summary: Change demand in stock moves linked to reception one
Home-page: https://github.com/OCA/stock-logistics-workflow
License: AGPL-3
Author: Tecnativa, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 18.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Development Status :: 4 - Beta
Description-Content-Type: text/x-rst

========================================
Stock Reception Discrepancy Distribution
========================================

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

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

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

When a single reception move feeds several destination moves (typical
case: two MTO sale orders consolidated into the same purchase order) and
the received quantity exceeds the demand, this module adds a wizard on
the receipt that lets you decide how to share the surplus between those
destination moves before validating the transfer, so no extra outgoing
picking is generated.

**Table of contents**

.. contents::
   :local:

Usage
=====

One-time setup
--------------

1. *Inventory > Configuration > Settings*: tick **Multi-Step Routes**
   and save.
2. *Inventory > Configuration > Warehouse Management > Routes*: in the
   search bar open **Filters** and tick **Archived**, then open
   **Replenish on Order (MTO)** and unarchive it.
3. Open a storable product (*Inventory > Products > Products*):

   - **Product Type**: *Goods*, with **Track Inventory** ticked.
   - **Inventory** tab → *Operations*: tick **Buy** and **Replenish on
     Order (MTO)**.
   - **Purchase** tab: add a vendor with a price.

Flow
----

1. *Sales > Orders > Quotations*: create one quotation for **Customer
   A** with the product, quantity 10, and confirm it.
2. Create a second quotation for **Customer B**, quantity 15, and
   confirm it.
3. *Purchase > Orders > Requests for Quotation*: open the RFQ that has
   been auto-created (one line, 25 units) and click **Confirm Order**.
4. On the purchase order, click **Receive Products**.
5. In the **Operations** tab of the receipt, raise **Quantity** to
   ``30`` and tick **Picked**.
6. Next to **Quantity**, click the small fork icon (tooltip *Change qty
   on dest moves*). The wizard opens.
7. In the wizard the header shows *Quantity = 30*, *Move Dest Demand =
   25*, *Over Quantity = 5*. Under **Destination stock moves** edit
   **Demand** on each line so the total matches 30 (e.g. ``12`` and
   ``18``). The header turns green when both numbers are equal.
8. Click **Confirm**, then **Validate** the receipt.

Expected result
~~~~~~~~~~~~~~~

- The receipt is *Done* and **no backorder** is created.
- Each customer's outgoing transfer has the redistributed demand (12 and
  18 in the example).

The button stays hidden on transfers that are *Done* / *Cancelled*, on
non-incoming transfers, and on return moves.

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

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

* Tecnativa

Contributors
------------

- `Tecnativa <https://www.tecnativa.com>`__:

  - Sergio Teruel
  - Carlos Dauden
  - Juan Carlos Oñate

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-workflow <https://github.com/OCA/stock-logistics-workflow/tree/18.0/stock_reception_discrepancy_distribution>`_ project on GitHub.

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