Metadata-Version: 2.1
Name: odoo-addon-mrp_bom_component_mass_change
Version: 19.0.1.0.0.4
Requires-Dist: odoo==19.0.*
Summary: Add, replace or remove a component in several BoMs at once
Home-page: https://github.com/OCA/manufacture
License: AGPL-3
Author: ForgeFlow, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 19.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

=============================
MRP BoM Component Mass Change
=============================

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

.. |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/license-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/19.0/mrp_bom_component_mass_change
    :alt: OCA/manufacture
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/manufacture-19-0/manufacture-19-0-mrp_bom_component_mass_change
    :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=19.0
    :alt: Try me on Runboat

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

This module allows you to add, replace or remove a component in several
bills of materials at once.

When a component must be changed, the wizard shows the bills of
materials where it is used (excluding, when replacing, those that
already contain the new component to avoid duplicated lines), lets the
user select the ones to update, and then either removes the component or
replaces it with another product (setting the new quantity) in a single
step.

The wizard can also add the same component to several bills of materials
at once. The bills of materials can be selected freely, or filtered by
the ones already using a given component; those that already contain the
component to add are excluded, so no duplicated lines are created.

**Table of contents**

.. contents::
   :local:

Usage
=====

You can open the wizard in two ways.

From a bill of materials component line:

1. Go to *Manufacturing -> Products -> Bills of Materials* and open a
   bill of materials.
2. On the component line you want to change, click the *Mass Change
   Component* button (exchange icon). The component of the line is
   preselected.
3. In the wizard, review the bills of materials that use the component
   and keep selected only the ones you want to update.
4. Choose *Replace* and set the new component and the new quantity,
   choose *Remove* to delete the component from the selected bills of
   materials, or choose *Add* to add another component to them.
5. Click *Apply*.

From the *Manufacturing -> Operations -> Mass Change BoM Component*
menu, the wizard opens with no component preselected, so you can freely
choose any component to change and then follow steps 3 to 5 above.

When replacing, the bills of materials that already contain the new
component are automatically removed from the list, so no duplicated
component lines are created. The new quantity is mandatory and is
applied to every updated line.

When adding, set the *Component to Add* and its quantity. The bills of
materials to update can be selected freely, or you can fill in *Bills of
Materials Using* to preload every bill of materials that uses that
component. Bills of materials already containing the component to add
are excluded from the list and are never updated, so no duplicated
component lines are created.

The wizard is also available from any bill of materials components list
view (e.g. the one provided by the module *mrp_bom_component_menu*)
through the *Actions* menu.

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_component_mass_change%0Aversion:%2019.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
-------

* ForgeFlow

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

- Andreu Orensanz <andreu.orensanz@forgeflow.com>

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.

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

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