# Purchase Only By Packaging

This module provides different configuration option to manage packagings on purchase orders.

The creation/update of purchase order line will be blocked (by constraints) if the data on the purchase.order.line does not fit with the configuration of the product’s packagings.

It’s also possible to force the quantity to purchase during creation/modification of the purchase order line if the “Force purchase quantity” is ticked on the packaging and the “Purchase only by packaging” is ticked on product.

For example, if your packaging is set to purchase by 5 units and the employee fill the quantity with 3, the quantity will be automatically replaced by 5 (it always rounds up).

Important

This is an alpha version, the data model and design can change at any time without warning. Only for development or testing purpose, do not use in production. More details on development status

Table of contents

- Configuration
- Bug Tracker
- Credits
  - Authors
  - Contributors
  - Other credits
  - Maintainers

# Configuration

Following options are available to define which packaging level can be purchased and which product can only be purchased by packaging.

- Purchase only by packaging: On product template model, this checkbox restricts purchases of these products if no packaging is selected on the purchase order line. If no packaging is selected, it will either be auto-assigned if the quantity on the purchase order line matches a packaging quantity or an error will be raised.
- Force purchase quantity (on the packaging): force rounds up the quantity during creation/modification of the purchase order line with the factor set on the packaging.

# 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

- Camptocamp
- BCIM

## Contributors

- Akim Juillerat <akim.juillerat@camptocamp.com>
- Thomas Nowicki <thomas.nowicki@camptocamp.com>
- François Honoré <francois.honore@acsone.eu>
- Hiep (Nguyen Hoang) <hiepnh@trobz.com>
- Phuc (Tran Thanh) <phuc@trobz.com>
- Duong (Tran Quoc) <duongtq@trobz.com>
- Telmo Santos <telmo.santos@camptocamp.com>
- Jacques-Etienne Baudoux (BCIM) <je@bcim.be>

## Other credits

The development of this module has been financially supported by:

- Camptocamp

This module feature was extracted from the original sale-workflow/sale_by_packaging module.

## 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.