=========================================
BOM Attribute Match Semifinished Products
=========================================

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

.. |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%2Fmanufacture-lightgray.png?logo=github
    :target: https://github.com/OCA/manufacture/tree/14.0/mrp_bom_attribute_match_semifinished_product
    :alt: OCA/manufacture
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/manufacture-14-0/manufacture-14-0-mrp_bom_attribute_match_semifinished_product
    :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=14.0
    :alt: Try me on Runboat

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

This module makes use of the features provided by module mrp_bom_attribute_match to create, for a finished product:

* Semi-finished products with relevant attributes and settings
* Structure of BoMs to manufacture them.

**Table of contents**

.. contents::
   :local:

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

In industries like textile and apparel it’s common to have finished products with many variants for color and size, as well as several semi-finished products for various stages of manufacturing - often subcontracted.

This module leaves to the user only the following manual steps:

* creation of finished product
* creation of BoM for first semi-finished product

automating the steps in the middle.



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

To allow a user to use features of this module, enable technical access right "Create finished product structure".

Usage
=====

In a product template > inventory tab, enable field “Finished product” (note: it can only be enabled for products with variants).

From product template form, use server action “Create finished product structure”: a wizard is displayed with the following fields:

* **Stage name**: this field is used to provide a name to the semi-finished product; the name will be set as *product template name* - *stage name* eg: “Customizable desk (CONFIG) - Wood polishing”

* **Template product**: he semi-finished product will be created as a copy of the product template set in this field, with all the related settings (eg: routes, supplierinfo, product type…).

  Note: only product templates without attributes and values can be set in this field.

* **Attribute(s)**: this field is used to set which attributes and values to copy from finished product to semi-finished product of this stage.

  Note: each semi-finished product cannot have more attributes than the semi-finished product in previous stage.

* **BoM type**: the type of Bom to manufacture the previous product in the semi-finished product chain. If Bom Type = Subcontracting, it’s possible to set subcontractors.

  Note: in first stage, set type of BoM to manufacture finished product; in second stage, set type of BoM to manufacture first stage semi-finished product, and so on.


On creation, a BOM for finished product will be created, with:

* BoM type (and subcontractors) from first line of wizard

* semi-finished product from first line of wizard as “Component (product template)” in BoM lines

* attribute match on semi-finished product attributes.

If a second line was present in wizard, the same will happen for semi-finished product from first line, and so on.

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_bom_attribute_match_semifinished_product%0Aversion:%2014.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
~~~~~~~

* Cetmix
* Ooops

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-geomer198| image:: https://github.com/geomer198.png?size=40px
    :target: https://github.com/geomer198
    :alt: geomer198
.. |maintainer-CetmixGitDrone| image:: https://github.com/CetmixGitDrone.png?size=40px
    :target: https://github.com/CetmixGitDrone
    :alt: CetmixGitDrone

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

|maintainer-geomer198| |maintainer-CetmixGitDrone| 

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

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