devendrapathi / sneldev-magento-openerp

Automatically exported from code.google.com/p/sneldev-magento-openerp
0 stars 1 forks source link

Import sales orders fails #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start openerp server and client
2. Import orders from Magento
3.

What is the expected output? What do you see instead?
List of orders in OpenERP, instead the server crashes

What version of the product are you using? On what operating system?
OpenERP: 5.0.15
Python : 2.6.5
Magento : 1.4.0.1
Connector : 0.7.6 in OpenERP and 0.75 in Magento

Please provide any additional information below.
Seems to be related to the call server.call(session, 'sales_order.list'), this 
is where the error is thrown.

I have added a little code to check the function:
 try:
                        listorders = server.call(session, 'sales_order.list')
                except:
                        log.append("Error in listing orders")
                else:
                        log.append("Found " + str(len(listorder)) + " new order(s) in Magento")

This passes without a problem, but logs an errorr message indicating that the 
result from the server.call was not what was expected. 

The error I get is:
[2011-01-03 23:42:41,850][raptobike] ERROR:web-services:[13]: Python Version : 
2.6.5
[2011-01-03 23:42:41,850][raptobike] ERROR:web-services:[14]: OpenERP-Server 
Version : 5.0.15
[2011-01-03 23:42:41,851][raptobike] ERROR:web-services:[15]: Last revision No. 
& ID :
[2011-01-03 23:42:41,851][raptobike] ERROR:web-services:[16]: Exception in 
call: Traceback (most recent call last):
[2011-01-03 23:42:41,851][raptobike] ERROR:web-services:[17]:   File 
"/usr/local/lib/python2.6/dist-packages/openerp-server/wizard/__init__.py", 
line 153, in execute_cr
[2011-01-03 23:42:41,851][raptobike] ERROR:web-services:[18]:     next_state = 
result_def['next_state'](self, cr, uid, data, context)
[2011-01-03 23:42:41,851][raptobike] ERROR:web-services:[19]:   File 
"/usr/local/lib/python2.6/dist-packages/openerp-server/addons/sneldev_magento/wi
zard/sneldev_magento_orders_import.py", line 38, in do_orders_import
[2011-01-03 23:42:41,851][raptobike] ERROR:web-services:[20]:     if 
(self.pool.get('sneldev.magento').import_orders(cr, uid) < 0):
[2011-01-03 23:42:41,852][raptobike] ERROR:web-services:[21]:   File 
"/usr/local/lib/python2.6/dist-packages/openerp-server/addons/sneldev_magento/sn
eldev_magento.py", line 598, in import_orders
[2011-01-03 23:42:41,852][raptobike] ERROR:web-services:[22]:     info_order = 
server.call(session, 'sales_order.list')
[2011-01-03 23:42:41,852][raptobike] ERROR:web-services:[23]:   File 
"/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
[2011-01-03 23:42:41,852][raptobike] ERROR:web-services:[24]:     return 
self.__send(self.__name, args)
[2011-01-03 23:42:41,852][raptobike] ERROR:web-services:[25]:   File 
"/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
[2011-01-03 23:42:41,852][raptobike] ERROR:web-services:[26]:     
verbose=self.__verbose
[2011-01-03 23:42:41,853][raptobike] ERROR:web-services:[27]:   File 
"/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
[2011-01-03 23:42:41,853][raptobike] ERROR:web-services:[28]:     return 
self._parse_response(h.getfile(), sock)
[2011-01-03 23:42:41,853][raptobike] ERROR:web-services:[29]:   File 
"/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
[2011-01-03 23:42:41,853][raptobike] ERROR:web-services:[30]:     return 
u.close()
[2011-01-03 23:42:41,853][raptobike] ERROR:web-services:[31]:   File 
"/usr/lib/python2.6/xmlrpclib.py", line 838, in close
[2011-01-03 23:42:41,853][raptobike] ERROR:web-services:[32]:     raise 
Fault(**self._stack[0])
[2011-01-03 23:42:41,853][raptobike] ERROR:web-services:[33]: Fault: <Fault 4: 
'Resource path is not callable.'>

Original issue reported on code.google.com by raptob...@gmail.com on 3 Jan 2011 at 10:43

GoogleCodeExporter commented 8 years ago
I think this is perhaps something specific to my install of Magento. Any calls 
to sales_order would fail in the Magento API. I created a new path in the 
Magento API and am now able to import sales orders.

Original comment by raptob...@gmail.com on 5 Jan 2011 at 10:01

GoogleCodeExporter commented 8 years ago
I'm having a similar problem. What do you mean you created a new path in the 
Magento API? I don't see a path option.

Original comment by dave...@gmail.com on 12 Jan 2011 at 9:53

GoogleCodeExporter commented 8 years ago
Still not sure where this is coming from. Could be an issue with Magento.
Workaround is described here :

http://www.magentocommerce.com/boards/viewthread/216071/http://www.magentocommer
ce.com/boards/viewthread/216071/

Original comment by sneldev@gmail.com on 18 Jan 2011 at 9:11