Products import does not match categories - Openerp6-module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magento OpenERP Connector |
Confirmed
|
High
|
Unassigned |
Bug Description
During the installation of the Openerp6-module and all it dependencies, two default product categories are created (Service and All Products).
When configuring the settings of the connector a default category is required to be set in the Core Settings. I created a new default category called "Products without category" and set up the connector.
These are the steps:
1. Reload referential map settings
2. Synchronize Referential settings
Then I use the buttons in the connector in the presented sequence.
1) import Customer Groups
2) import product categories
3) import product attributes sets
4) import attribute groups
5) import product attributes
6) import products
Everything seems to be imported without a problem.
Except I have two problems:
First issue:
Something strange occurs when the product categories from Magento are imported. The "Root Catalog" suddenly gets a new parent category called "UNDEFINED".
Magento's original categories:
Root Catalog/
Root Catalog/CategoryX
Root Catalog/CategoryY
OpenERP imported catalog
UNDEFINED/Root Catalog/
UNDEFINED/Root Catalog/CategoryX
UNDEFINED/Root Catalog/CategoryY
Second issue:
The next problem occurs when all products from magento are imported to the 'All products" category and not in the category structure that was imported from Magento.
Manual assigning product categories in the 'Extra Categories tab" and exporting the catalog to Magento doesn't work neither.
I'm using the following setup:
- Openerp-
- Openerp6-module ref. version: 381
Openerp6-module dependencies (extra-trunk ref. version:5158)
- Product_
- Base_sale_
- Base_external_
- Product_images_olbs
- Magento 1.4.2.0 with magento-module ref. version 24.
A similar question was posted here: https:/
Any help would be greatly appreciated.
H
Related branches
Changed in magentoerpconnect: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in magentoerpconnect: | |
status: | Fix Released → Confirmed |
I found solution for this problem.
Sometimes during Magento 1.4.2.0 development - Magento team renamed the "category_ids" attribute in Magento product object to just simple "categories". So we just need to change external mapping for this connector to reflect that.
This can be done very easy by editing the object mapping for product object on Magento instance configuration page. Just find the "category_ids" and and change it name to "categories", plus replace the "category_ids" with "categories" in export mapping Python code too (at the bottom in result list).
I also made the patch file for external mapping file.
This doesn't fix the "UNDEFINED" category name on initial import, but this is because Magento root category has parent = 0 and import mapping code define it is "UNDEFINED". Definitely can be better, but this doesn't create a problem really , as you can rename and reattach the "UNDEFINED" category after the import.
Dmitry