I would like to create/modify/delete BOM lines by importing only. I can currently create BOMs by importing, however the External ID's are unknown (I don't want to have to export to find them). Since the BOM line External ID's are unknown, I cannot modify BOM line products, quantities, etc. by importing. Is there a way to do this? Can I import the BOM lines somewhere else by new External ID, then import the BOM with the newly created BOM lines? If so, would I be able to delete a BOM line using import? Thanks for you help
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
Hi,
I had the same problem. I used a workaround. Odoo seems no accept new one2many lines with 'external id'. I solve this problem like that:
Imagine that you want to import this file:
id | one2many_ids | one2many_ids/name |
BOM_1 | Product_1 | Product_1 |
Product_2 | Product_1 |
On first import ignore the one2many_ids field, then for the next imports, odoo use the field one2many_ids field to find the right record by his name, and it doesn't create new repeated lines.
Unfortunately mrp.bom.line model doesn't have a field 'name', but you can inherit this model to add 'name' field. May be you could try using the field _rec_name = "product_id" .
Please if you find this usefull, please post a good valoration
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
[Odoo 15] Import BOM from scratch (no variant)
Diselesaikan
|
|
1
Agu 22
|
2705 | |
How to import BOM with some shared components?
Diselesaikan
|
|
1
Mei 22
|
7485 | |
|
2
Des 24
|
7497 | ||
|
2
Mei 24
|
5430 | ||
How to update component quantity in BOM (Ver15)
Diselesaikan
|
|
4
Apr 22
|
3124 |