Metadata-Version: 2.1
Name: odoo-addon-mrp_bom_component_mass_change
Version: 17.0.1.1.0.1
Requires-Python: >=3.10
Requires-Dist: odoo>=17.0a,<17.1dev
Summary: 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 :: 17.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:2eafdb76a3508175c3ff95d93d0df979530b8bc906f67ee1dad0f7a562e82c5c
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/17.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-17-0/manufacture-17-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=17.0
    :alt: Try me on Runboat

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

This module allows you to 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.

**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 button is only shown when the
   component is used in more than one bill of materials. The component
   to change is fixed to the one of the line.
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, or
   choose *Remove* to delete the component from the selected bills of
   materials.
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.

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:%2017.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/17.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.
