Skip to Content
Menu
This question has been flagged
2 Replies
1557 Views

I want import bom product in mrp module.

I have an excel file that contains the final product name and the item name and product code.

for import I need to manually insert the product IDs and units of measure ID from product.product and product.uom into the Excel file that this is very time consuming.

The function must be written to read the product name, code and unit of measurement from the excel file and create it directly in the database using code so that there is no need to find any external product IDs.


I put a wizard that takes the bom file from the user and a button import.

Help me write the import function. Thanks

Avatar
Discard
Author Best Answer

Thank you very very much niyas raphy 

Avatar
Discard
Best Answer

Hi,

If you are looking how to read data from the file and perform operations inside the odoo database, you can refer this module, which helps users to import the chart of accounts from the excel file.


Here a file will can be loaded in to a wizard and code will read data from the file and create accounts in the database, so please have a look at the coding of this module: https://apps.odoo.com/apps/modules/13.0/bi_import_chart_of_accounts/


Thanks

Avatar
Discard