=====================
MRP Default Packaging
=====================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
    :target: https://odoo-community.org/page/development-status
    :alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
    :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
    :alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github
    :target: https://github.com/OCA/manufacture/tree/16.0/mrp_packaging_default
    :alt: OCA/manufacture
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_packaging_default
    :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/manufacture&target_branch=16.0
    :alt: Try me on Runboat

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

This module allows and encourages the use of packaging within MRP, both
to manufacture products or to create kits.

.. 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 <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
   :local:

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

In certain businesses, it is important to know the packaging you will
use to manufacture a product. Example: food wholesale companies.

For example, imagine you want to create a food basket that includes,
among other things, 1 kg of cheese. It is not the same to put it in
small sliced and vacuum-packed 100g packages as it is to put a whole
cheese ball. Even when the product and the total weight are the same:
1kg of cheese.

If you are interested in this module, you may also be interested in
``sale_packaging_default``.

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

To see the effects of this module, you need to:

1. Go to *Settings*.
2. Activate *Inventory > Products > Product Packagings*.
3. Optionally, activate also *Units of Measure*. This is not required,
   but if you are interested in this module, it's probably because you
   use this.
4. Save.

Usage
=====

Some component products must exist. Those components will be later
included in the manufactured or kit product. Then, you'll notice the
module effects.

To create the component products:

1. Go to *Inventory > Products > Products*.
2. Create a product.
3. Configure its unit of measure (if you enabled that option).
4. Add some line(s) in *Inventory > Packaging*.

To use this module with **a kit of products**, you need to:

1.  Go to *Inventory > Products > Products*.
2.  Create a product that will be the kit.
3.  Set *Product Type* "Consumable".
4.  Configure its unit of measure (if you enabled that option).
5.  Enable *Inventory > Operations > Routes > Manufacture*.
6.  Click on *Bill of Materials* button and create a new one.
7.  Set *BoM Type* "Kit".
8.  Configure the rest of the BoM. When you configure the component
    lines, use the new *Packaging* and *Packaging Qty* fields.
9.  Go to *Inventory > Delivery Orders (three dots) > New > Planned
    Transfer*.
10. Fill the *Delivery Address*.
11. Add one *Operations* line with the kit product you just created.
12. Click on *Mark as TODO*.
13. You will notice that the kit has been replaced by its components,
    and each component line includes the packaging and its qty, just
    like you configured them in the BoM.

To use it with **a manufactured product**, instead:

1.  Go to *Inventory > Products > Products*.
2.  Create a product; the one that will be manufactured.
3.  Set *Product Type* "Storable Product".
4.  Configure its unit of measure (if you enabled that option).
5.  Enable *Inventory > Operations > Routes > Manufacture*.
6.  Click on *Bill of Materials* button and create a new one.
7.  Set *BoM Type* "Manufacture this product".
8.  Configure the rest of the BoM. When you configure the component
    lines, use the new *Packaging* and *Packaging Qty* fields.
9.  Go back to the product form.
10. Click on *Reordering Rules* button and create a new one.
11. Set some minimal and maximal quantities.
12. Click on *Order Once*. If you don't see this button, you can also go
    to *Inventory > Operations > Run Scheduler > Run Scheduler*.
13. Go to *Manufacturing > Operations > Manufacturing Orders*. You will
    see a new MO created from the reordering rule. Open it.
14. See how the *Components* lines contain packaging information, just
    like you defined it in the BoM. The same would happen if you created
    the MO manually.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/manufacture/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/manufacture/issues/new?body=module:%20mrp_packaging_default%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
-------

* Moduon

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

- Jairo Llopis (`Moduon <https://www.moduon.team/>`__)

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.

.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px
    :target: https://github.com/rafaelbn
    :alt: rafaelbn
.. |maintainer-yajo| image:: https://github.com/yajo.png?size=40px
    :target: https://github.com/yajo
    :alt: yajo

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-rafaelbn| |maintainer-yajo| 

This module is part of the `OCA/manufacture <https://github.com/OCA/manufacture/tree/16.0/mrp_packaging_default>`_ project on GitHub.

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