| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Manufacturing (mrp) • Discuss (mail) |
| Lines of code | 656 |
| Technical Name |
bom_excel_import |
| License | OPL-1 |
| Website | https://github.com/NextERP-Romania/odoo-community |
| Versions | 19.0 |
# BOM Excel Import Module
This Odoo 19.0 module allows importing Bills of Materials (BOMs) from Excel files using a unified wizard with a two-step process:
- Import Operations and Workcenters (automatically performed first)
- Import BOMs with routing operations (performed second)
## Excel File Structure
The Excel file should have the following columns:
## Example Excel Data
` Product Produced | Operation | Quantity | Component UOM | Component | Workcenter -------------------|------------|----------|----------------|------------------ Chair | Cutting | 4 | Unit | Wood Plank | Saw Machine Chair | Assembly | 8 | Unit | Screw | Assembly Line Chair | Assembly | 1 | Unit | Cushion | Assembly Line Table | Cutting | 1 | Unit | Wood Board | Saw Machine Table | Assembly | 4 | Unit | Table Leg | Assembly Line Table | Assembly | 12 | Unit | Screw | Assembly Line `
## Import Process
### Using the Unified Wizard
- Go to Manufacturing > Configuration > BOM Excel Import
- Upload your Excel file and configure settings
- Click "Start Import" to begin the process
- The wizard will guide you through: - Step 1: File validation and configuration - Step 2: Import operations and workcenters - Step 3: Import BOMs with components and routing - Step 4: View import summary and results
### Step-by-Step Process
- Upload File: Select your Excel file, specify sheet name and start row
- Import Operations: Creates workcenters and routing operations from the Excel data
- Import BOMs: Creates products, BOMs, and BOM lines with proper operation linking
- Complete: Review the import summary and detailed logs
## Features
- Unified Two-Step Process: Single wizard handles the complete import workflow
- Automatic Product Creation: Products are created automatically if they don't exist
- Duplicate Detection: Skips existing BOMs and workcenters
- Error Handling: Detailed import logs with error reporting for each step
- Operation Linking: Links BOM components to specific operations
- Flexible Format: Handles missing optional columns gracefully
- Progress Tracking: Clear indication of current step and progress
- Detailed Logging: Separate logs for operations and BOM import steps
## Requirements
- Odoo 19.0
- Python library: openpyxl (for Excel file processing)
## Installation
- Copy the module to your Odoo addons directory
- Install the openpyxl Python library: `bash pip install openpyxl `
- Update the module list in Odoo
- Install the "BOM Excel Import" module
## Troubleshooting
### Common Issues
- "openpyxl library is required" - Install openpyxl: pip install openpyxl
- "Could not find product" - Products are created automatically, but check the product names in your Excel file
- "BOM already exists" - The module skips existing BOMs. Delete existing BOMs if you want to reimport
- "Workcenter not found" - This shouldn't happen as workcenters are created in the first step
### Import Logs
The wizard provides detailed import logs for both steps showing:
- Number of records processed in each step
- Created workcenters, operations, BOMs, and BOM lines
- Error messages with row numbers
- Warnings and informational messages
- Import summary with totals
## Technical Details
### Models Created
- bom.excel.import.wizard: Unified wizard handling both import steps
### Dependencies
- mrp: Manufacturing module
- stock: Inventory module
- base: Base Odoo functionality
### Menu Location
Manufacturing > Configuration > BOM Excel Import
## Support
This module was created for NextERP Romania. For support, please contact the development team.
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module