← Back to team overview

openerp-connector-community team mailing list archive

Re: About sinch magento backend with 2 different website with 2 store views each

 

On 11/18/2013 11:20 AM, Graziano Mazzucco wrote:
Hi Guys,

I got a problem with getting the sales order for the one website from magento...

My structure is :

Magento Backend

WEBSITES

Admin
website A
website B

STORES

Admin
website A
website B

STOREVIEWS

Admin
website A en
website A fr
website B en
website B fr

It works OK importing all data from website A.
Instead it can't import any data from website B.. especially sales orders...
I get the following error:

Traceback (most recent call last): File "/opt/openerp/v7/newconnector/openerp-connector/connector/queue/worker.py", line 122, in run_job job.perform(session) File "/opt/openerp/v7/newconnector/openerp-connector/connector/queue/job.py", line 460, in perform self.result = self.func(session, *self.args, **self.kwargs) File "/opt/openerp/v7/newconnector/akretion_addons/magentoerpconnect/unit/import_synchronizer.py", line 311, in import_record importer.run(magento_id, force=force) File "/opt/openerp/v7/newconnector/akretion_addons/magentoerpconnect/unit/import_synchronizer.py", line 145, in run self.magento_record = self._get_magento_data() File "/opt/openerp/v7/newconnector/akretion_addons/magentoerpconnect/sale.py", line 433, in _get_magento_data oe_website_id = store.website_id.id AttributeError: 'NoneType' object has no attribute 'id'


Got problems as well importing attributes....

Traceback (most recent call last): File "/opt/openerp/v7/newconnector/openerp-connector/connector/queue/worker.py", line 122, in run_job job.perform(session) File "/opt/openerp/v7/newconnector/openerp-connector/connector/queue/job.py", line 460, in perform self.result = self.func(session, *self.args, **self.kwargs) File "/opt/openerp/v7/newconnector/akretion_addons/magentoerpconnect/unit/import_synchronizer.py", line 303, in import_batch importer.run(filters=filters) File "/opt/openerp/v7/newconnector/akretion_addons/magentoerpconnect/unit/import_synchronizer.py", line 183, in run record_ids = self.backend_adapter.search(filters) File "/opt/openerp/v7/newconnector/akretion_addons/magentoerpconnect_catalog/product_attribute.py", line 155, in search return self._call('%s.search' % self._magento_model, []) File "/opt/openerp/v7/newconnector/akretion_addons/magentoerpconnect/unit/backend_adapter.py", line 129, in _call result = api.call(method, arguments) File "/usr/local/lib/python2.7/
dist-packages/magento-0.4-py2.7.egg/magento/api.py", line 161, in call return self.client.call(self.session, resource_path, arguments) File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__ return self.__send(self.__name, args) File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request verbose=self.__verbose File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request return self.single_request(host, handler, request_body, verbose) File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request return self.parse_response(response) File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response return u.close() File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close raise Fault(**self._stack[0]) Fault: <Fault 3: 'Invalid api path.'>


Any idea ?


Thanks for your help!

Best,
Graziano


Hi,

Can you file a bug report on https://bugs.launchpad.net/openerp-connector-magento please?

Thanks

--
Guewen Baconnier
Business Solutions Software Developer

Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 39
Office: +41 21 619 10 10
http://www.camptocamp.com/


References