Metadata-Version: 2.1
Name: odoo-addon-purchase_split_wizard
Version: 16.0.1.1.0
Requires-Python: >=3.10
Requires-Dist: odoo-addon-account_payment_purchase>=16.0dev,<16.1dev
Requires-Dist: odoo-addon-purchase_order_archive_draft>=16.0dev,<16.1dev
Requires-Dist: odoo>=16.0a,<16.1dev
Summary: Wizard to split purchase orders into multiple ones
Home-page: https://github.com/sygel-technology/sy-purchase-workflow
License: AGPL-3
Author: Sygel, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 16.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3

=====================
Purchase Split Wizard
=====================

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

.. |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-sygel--technology%2Fsy--purchase--workflow-lightgray.png?logo=github
    :target: https://github.com/sygel-technology/sy-purchase-workflow/tree/16.0/purchase_split_wizard
    :alt: sygel-technology/sy-purchase-workflow

|badge1| |badge2| |badge3|

This module adds a wizard that allows you to split a purchase into
multiple ones.

The splitting method has one particularity, when you split a purchase
the original purchase quantities are not going to be edited, this is
done to keep record of the original state of the purchase.

In counterpart, the original purchase will be archived and cancelled to
not alter the forecasted stock. Users should split that original
purchase the equivalent number of new split purchases you want to have.

For example, if you have a purchase of 10 product units and you want to
split it into one purchase of 6 and another of 4, you have to split the
original purchase into one of 6, go back to the original purchase and
split it again into one of 4. As a result you will have 3 purchases, the
purchase of 6, the purchase of 4, and the original purchase of 10 which
will be archived and cancelled.

**Table of contents**

.. contents::
   :local:

Usage
=====

To use this module, you need to:

1. Go to purchases and create a new purchase order in draft state with
   some purchase order lines.
2. Click the "Split Purchase" button. The split wizard will be opened
3. Edit the values that the new purchase order will have.
4. Edit the lines the new purchase order will have. The most important
   is the quantity to split, but you can also edit the name, the order,
   or even delete some lines. You can edit the product price of the
   lines with the "Product Price Option" field of the above purchase
   order values
5. Click the "Accept" button. You will be redirected to the created
   purchase.
6. If the original purchase is still not completely splitted you should
   go back with the breadcrumbs or the "Original Purchase" smartbutton
   and continue splitting.

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

- Users should not let a split process of a purchase half done. Example:
  splitting a purchase of 10 units into a purchase of 3 units, 7 are
  pending. The expected future stock of that product won't count the 7
  pending units and the automatic reordering rules can generate new
  purchase orders.

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

Bugs are tracked on `GitHub Issues <https://github.com/sygel-technology/sy-purchase-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/sygel-technology/sy-purchase-workflow/issues/new?body=module:%20purchase_split_wizard%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
-------

* Sygel

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

- Alberto Martínez alberto.martinez@sygel.es
- Valentin Vinagre valentin.vinagre@sygel.es
- Harald Panten harald.panten@sygel.es

Maintainers
-----------

This module is part of the `sygel-technology/sy-purchase-workflow <https://github.com/sygel-technology/sy-purchase-workflow/tree/16.0/purchase_split_wizard>`_ project on GitHub.

You are welcome to contribute.
