Metadata-Version: 2.1
Name: odoo-addon-stock_location_orderpoint_cleanup
Version: 16.0.1.0.0.10
Summary: This module allows to clean moves generated by orderpoint
Home-page: https://github.com/OCA/stock-logistics-orderpoint
Author: ACSONE SA/NV,Odoo Community Association (OCA)
Author-email: support@odoo-community.org
License: AGPL-3
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 16.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Requires-Python: >=3.10
Requires-Dist: odoo-addon-base-partition<16.1dev,>=16.0dev
Requires-Dist: odoo-addon-queue-job<16.1dev,>=16.0dev
Requires-Dist: odoo-addon-stock-location-orderpoint<16.1dev,>=16.0dev
Requires-Dist: odoo<16.1dev,>=16.0a

=================================
Stock Location Orderpoint Cleanup
=================================

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

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

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

This module will help to clean generated moves from stock location
orderpoints.

**Table of contents**

.. contents::
   :local:

Use Cases / Context
===================

Location orderpoints module was designed (first) to generate
replenishment moves for particular stock locations. e.g.: we have a
reserve stock and a preparation stock.

As warehouse life is not static, moves for a product can be canceled,
preparation stock could have been refilled with another move, ...

So, generated moves from location orderpoints can become obsolete.

This module should help to clean orderpoint moves and regenerate moves.

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

-  There is a security group 'Location Orderpoint Cleanup Group'. Users
   that can have access to cleanup action should be in that group. By
   default, all users that are in 'Inventory/Administrator' are in that
   group.
-  You can configure crons to execute cleanup actions.

   -  Enable debug mode, go to Settings > Technical > Scheduled Actions
   -  Add a cron with:

      -  base model 'Stock Location Orderpoint'
      -  In python code, add a line 'model.run_cleanup(orderpoints,
         run_after)' where 'orderpoints' is a list of orderpoint ids and
         'run_after' is True if you want to run the orderpoint(s) after
         cleanup.
      -  If you want to cleanup ordepoints by replenish method, add a
         line 'model.run_cleanup_method(replenish_method, run_after)'
         where 'replenish_method' is 'fill_up' by default (depending on
         extension modules you have installed)

Usage
=====

-  You can have cron jobs to execute the cleanup actions (see
   Configuration section).
-  If you are in the 'Location Orderpoint Cleanup Group', you can launch
   manually the cleanup on the orderpoint form level:

   -  Click on 'Cleanup replenishments'.
   -  In the wizard, check the 'Run After' box if you want the
      orderpoint to be run after cleanup.

-  You can also select several orderpoints from the list view and select
   the action 'Cleanup Stock Location Orderpoints' that will launch the
   wizard.

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

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

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

-  Denis Roussel denis.roussel@acsone.eu

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-orderpoint <https://github.com/OCA/stock-logistics-orderpoint/tree/16.0/stock_location_orderpoint_cleanup>`_ project on GitHub.

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