Possible error in sales import because Magento gives wrong information : storeview_id instead of store_id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Connector - Magento |
Fix Released
|
High
|
Romain Deheele - Camptocamp |
Bug Description
Hello,
magentoerpconnect rev 908
When you import a sale order where the storeview doesn't have the same id than his parent store.
Traceback
File "/home/
job.
File "/home/
self.result = self.func(session, *self.args, **self.kwargs)
File "/home/
importer.
File "/home/
self.
File "/home/
oe_website_id = store.website_id.id
AttributeError: 'NoneType' object has no attribute 'id'
In sale import,
if we don't have the website_id, we don't have the store_id anymore, the id in record['store_id'] is the storeview_id !
This problem is a Magento bug :
http://
but as Magento doesn't resolve this bug, it's also a problem for us.
Romain
Related branches
Changed in openerp-connector: | |
status: | Confirmed → Fix Released |
information type: | Embargoed → Public |
affects: | openerp-connector → openerp-connector-magento |
This is in fact a bug in the connector:
As shown in the documentation: http:// www.magentocomm erce.com/ api/soap/ miscellaneous/ store.info. html
Despite a totally misleading name, store_id is not reference to the store but to the storeview.
So we have to change the mapping to bind it with the storeview instead of the store.