Skip to Content
मेन्यू
This question has been flagged
1 Reply
4618 Views

I need to be able to export a csv/excel file representing a Bill of Materials for our circuit board manufature, it seems i am able to get most of the information except I have not found a way to add all of the supplier information which is critical for them.  I would expect to find "BOM Lines/Product/Supplier Product Code" and "BOM Lines/Product/Supplier Product Name" in the export dialog but they are not there. 

I have also installed the "Export Data in Excel" module to possibly add my own custom exporting features but cannot locate where in the data model that supplier information is stored.

My question is am i just missing something that is preventing me from completing this action using the normal export? it is very odd to me that this is not included.  If it is not possible normally where in the data model is this is this information stored so that I might create my own export features?

 

Avatar
Discard

I also have this requirement and so far I've had to do export the vendor pricelist and BOM and then use Xlookup function in Excel to get the manufacturer PNs.

It is rather disappointing that this feature is not available.

See my answer below

Best Answer

Odoo only supports three levels of "drill down" when exporting.

Bill of Materials --> BoM Lines [1] --> Component [2] --> Vendors [3]

This only gets you as far as the list of Vendors for each Component.


What you can do is create a Menu for BoM Lines and export those, and since you can drill up as well as down you can also get the BOM header data.

  • In Developer Mode, navigate to the Models Menu. (Settings --> Technical --> Database Structure --> Models)
  • Find and open the Bill of Material Line model (mrp.bom.line)
  • Scroll to the bottom and click Create a Menu
  • Choose a Parent location (maybe PLM / Master Data or Manufacturing / Products)
  • Refresh your browser and navigate to the new menu

Now you can Group by Parent BoM and export the Vendor Information, and BoM header information:

Avatar
Discard
Related Posts Replies Views Activity
0
जन॰ 25
1043
4
जून 20
3645
1
जून 25
4773
0
फ़र॰ 19
3971
0
नव॰ 18
3360