# Purchase Delivery Split Date

When this module is installed, each Purchase Order you confirm will generate one Incoming Shipment for each schedule date indicated in the Purchase Order Lines.

Once the Purchase Order has been confirmed, subsequent changes made to the scheduled dates in the PO lines will produce a reorganization of the corresponding stock moves in the Incoming Shipments, creating/deleting new Incoming Shipments when needed, to ensure that each Incoming Shipment contains moves to be received in the same date.

This module is also designed for extensibility, so that you can define in other modules new criteria to split deliveries.

Table of contents

- Usage
- Changelog
  - 12.0.2.1.0 (2020-04-30)
  - 12.0.2.0.0 (2020-04-10)
  - 11.0.1.0.0 (2018-09-16)
- Bug Tracker
- Credits
  - Authors
  - Contributors
  - Maintainers

# Usage

When a Purchase Order is confirmed, shipments will be grouped by same scheduled date.

# Changelog

## 12.0.2.1.0 (2020-04-30)

- [FIX] when adding a new line on a confirmed PO, split the delivery (this was done only if a date was changed on an existing line)
- [IMP] when the quantity on a line is changed, the onchange would reset the planned date -> change this to prevent setting a date earlier than the one on the line, since if we are using this module the user probably has manually set the date first

## 12.0.2.0.0 (2020-04-10)

- Improve the module: when changing the date on a purchase line, this will cause a split or a merge of the pickings, to keep 1 picking per date.

## 11.0.1.0.0 (2018-09-16)

- Migration to 11.0. (#461)
- When the scheduled date is changed in the PO after confirmation the pickings are reorganized so as to force that every picking will have only moves to be delivered on the same date.

# Bug Tracker

Bugs are tracked on GitHub 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.

Do not contact contributors directly about support or help with technical issues.

# Credits

## Authors

- Numerigraphe
- ForgeFlow
- Camptocamp

## Contributors

- Philippe Rossi <pr@numerigraphe.com> (initial patch against v6.0)
- Lionel Sausin <ls@numerigraphe.com> (modularization for v7+)
- Jordi Ballester Alomar <jordi.ballester@forgeflow.com> (modularization v8, v9)
- Lois Rilo <lois.rilo@forgeflow.com> (migration to v10)
- Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
- Pimolnat Suntian <pimolnats@ecosoft.co.th>
- Mallory Marcot <contact@mallory-marcot.com>

## Maintainers

This module is maintained by the OCA.

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/purchase-workflow project on GitHub.

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