Metadata-Version: 2.1
Name: odoo-addon-stock_checkout_sync
Version: 18.0.1.0.0.2
Requires-Python: >=3.10
Requires-Dist: odoo-addon-stock_move_common_dest==18.0.*
Requires-Dist: odoo==18.0.*
Summary: Sync location for Checkout operations
Home-page: https://github.com/OCA/stock-logistics-workflow
License: AGPL-3
Author: Camptocamp, 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

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

==============================
Stock Checkout Synchronization
==============================

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

.. |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/license-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_checkout_sync
    :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_checkout_sync
    :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|

Regroup moves at the same location when they reach an operation type.

Example of use case:

- We use several operation types for Picking Transfers (Pick Shelves,
  Pick Reserve)
- We use several operation types for Packing (Pack, Pack Post)
- The "Checkout Synchronization" flag is activated on the 2 Packing
  operation types
- The Packing can occur in several areas (Packing/PACK1, Packing/PACK2,
  Packing/PACK3)

Based on these assumptions, we have these pickings, all for the same
order:

- SHELF001, pick 2 goods in the shelves
- RESER001, pick 2 goods in the reserve
- PACK001, pack 3 of the goods (2 from SHELF001, 1 from RESER001)
- PPOST001, pack the remaining good of the reserve

The operator uses the button "Checkout Sync" on a pick transfer, for
instance SHELF001, and select Packing/PACK2 as destination. We want all
the lines that reach PACK001 to be updated with:

- The move lines (except the one that goes to PPOST001) must now reach
  Packing/PACK2
- The same moves' destination must reach Packing/PACK2 as well: we
  constrain the user to move the goods there as we want to move all the
  goods at the same place for the packing.
- As the moves' destinations are updated to the same packing location,
  new move lines will have the correct destination as well

|image1|

Notes:

Works best when used with ``stock_available_to_promise_release``:

- When using the mentioned module, we assume that we release moves
  (which creates the whole chain of moves) only when we know that we
  have the quantities in stock (otherwise the module splits the
  delivery). Any exception (which is now rare when you release this
  ways) that would lead to a backorder is handled by canceling the
  remaining line.
- When the module is not used, then the destination of the backorders
  may be changed at the same time

Compatible with ``stock_dynamic_routing``.

.. |image1| image:: https://raw.githubusercontent.com/OCA/stock-logistics-workflow/18.0/stock_checkout_sync/static/description/sync-assistant.png

**Table of contents**

.. contents::
   :local:

Configuration
=============

Activate syncing on the picking type form view (Inventory > Settings >
Operations Types) by marking ``Checkout Synchronization``.

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_checkout_sync%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
-------

* Camptocamp

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

- Akim Juillerat <akim.juillerat@camptocamp.com>
- Guewen Baconnier <guewen.baconnier@camptocamp.com>
- `Trobz <https://trobz.com>`__:

Other credits
-------------

The migration of this module from 13.0 to 14.0 was financially supported
by Camptocamp

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_checkout_sync>`_ project on GitHub.

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