Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
7398 Vistas

I have a LOT of BoM's setup in Odoo and when I have a raw material change it is time-consuming to open each BoM and swap the part.

How can I do this easily, is there some kind of find and replace function?

How can mass edits be done?


Avatar
Descartar

Bonjour,


Ne travaillant actuellement plus chez Deuse, je vous invite à transférer ce mail à Arthur De L'Arbre : a.delarbre@deuse.be


Bonne journée, 

Mejor respuesta

Version 13 and above has a new multi edit capability in List Views.  It works like this:


1. Select all the records you want to update.

2. Verify the count (if you have more than 80, you won't see all of them on the screen).

3. Edit ONE of the records.

4. Verify that the edit should apply to all records.








Result:



Note: The Bills of Materials Menu was created specifically for this situation and the Tree View was defined with multi_edit = "1"


UPDATE: Instructions to self-implement this in Odoo 16:


1.  Activate Developer Mode

2.  Settings --> Technical --> Database Structure --> Models

3.  Find and open the Bill of Material Line (mrp.bom.line) model

4.  Scroll to the bottom and click Create a Menu - name the Menu, and for the Parent Menu, search for Manufacturing / Products - then click Create

5.  Refresh your browser to see the new Menu, and navigate to it.

6.  From the Debug Menu, select Edit View: List

7.  Create your custom List View like this:

You can copy and paste the XML from HERE


This view allows you to update the Components in batch for every BoM as well as update Quantities in batch.  It allows you to search for a specific Component to see which Parent BoM it is used in.


Note: Your Odoo Consultant or Odoo Partner can help you do this if you run into any difficulties.

Avatar
Descartar

if am not wrong, the same is introduced from odoo13 right ?

Thank you for catching that - I updated the post to reflect it is available in version 13 and above.

"Note: The Bills of Materials Menu was created specifically for this situation and the Tree View was defined with multi_edit = "1""

Are you saying that you created a custom list view? Or are you saying that Odoo added this menu? If the latter, how do I get to this list?

A custom Menu was created (from the Models Menu, find the "Bill of Material Line" model, open it, scroll to the bottom and click "Create a Menu"). Then a custom List View was created.

Thank you, Ray!

Hello Ray, can you provide us with some informations on how you created the custom view?

@Julien - please review my answer again - at the bottom I have added instructions to implement this in Odoo 16

Thanks @Ray, I figured it out in the meantime. Great solution however!

Mejor respuesta

Hi  Ray Carnes (ray), How can I add import option for this custom list view in V17?


Thanks in advance,

Dhivya.N

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
dic 24
1122
0
mar 15
4288
2
dic 24
7497
1
ago 22
3554
1
ago 24
9835