thaond / magento-openerp-smile-synchro

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

Import sales orders #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi

I use  Open ERP 5.0.0 "all in one"   and  magento 1.2.1and the extension
Smile_OpenERP_Synchro  0.9.9 (beta)
and magento_openerp_smile-0.9.9.zip
I do the tests with my website wich is already on a webhosting internet and
the openerp whis is  in my localhost computer.
I have this when I try to synchronize openerp and magento for only import
sales orders...

ConnectionError
Couldn't connect to Magento with URL
http://XXXXX.com/magento/index.php/api/xmlrpc

It  works perfectly for the installation but when i want to use the
function "import sales orders", it doesn't work....
With the function "import categories" and "import products" , it works...
when I replaced all the files of  magento_openerp_smile-0.9.9.zip module
with your files trunk , it doesn't work also:
 Changelog  2.7 KB  r128    Nov 18, 2008    GrouhPamart
__init__.py 51 bytes    r128    Nov 18, 2008    GrouhPamart
__terp__.py 789 bytes   r135    Jan 15, 2009    rvalyi
magento.py  9.3 KB  r136    Jan 15, 2009    rvalyi
magento_data.xml    1.7 KB  r136    Jan 15, 2009    rvalyi
magento_utils.py    8.6 KB  r128    Nov 18, 2008    GrouhPamart
magento_view.xml    6.7 KB  r131    Dec 10, 2008    GrouhPamart
magento_wizard.xml  1.7 KB  r131    Dec 10, 2008    GrouhPamart

Filename    Size    Rev     Date    Author
__init__.py 172 bytes   r121    Nov 11, 2008    rvalyi
magento_category_synchronize.py 7.2 KB  r136    Jan 15, 2009    rvalyi
magento_product_synchronize.py  8.7 KB  r136    Jan 15, 2009    rvalyi
magento_so_correct.py   5.8 KB  r136    Jan 15, 2009    rvalyi
magento_so_import.py    12.3 KB r136    Jan 15, 2009    rvalyi
magento_so_update.py    4.0 KB  r149    Jan 31, 2009    rvalyi

Original issue reported on code.google.com by broly...@gmail.com on 18 Feb 2009 at 9:24

GoogleCodeExporter commented 9 years ago
Hi, when I try to install your last module "checkout" in openerp , I have this
"application error" below.
svn checkout http://magento-openerp-smile-synchro.googlecode.com/svn/trunk/
magento-openerp-smile-synchro-read-only

I use the openerp server below Stable version 5, downloaded version 5.0.0.-3, 
it's free!
https://etiny.stable5.sisalp.net/
http://sisalp.net/pages/documentation.html#menu
username:admin
password admin
Super admin password:admin      
New database name:admin         
Administrator password: admin   
Confirm password:admin  

please , help me!
thanks!

Traceback (most recent call last):
  File "/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/netsvc.py", line
231, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/netsvc.py", line
74, in __call__
    return getattr(self, method)(*params)
  File
"/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/service/web_service
s.py", line
552, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File
"/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/service/web_service
s.py", line
532, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File
"/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/wizard/__init__.py"
,
line 178, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File
"/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/wizard/__init__.py"
,
line 74, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File
"/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/addons/base/module/
wizard/wizard_module_upgrade.py",
line 92, in _upgrade_module
    db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/pooler.py", line
61, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/pooler.py", line
40, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File
"/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/addons/__init__.py"
,
line 715, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File
"/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/addons/__init__.py"
,
line 584, in load_module_graph
    register_class(m)
  File
"/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/addons/__init__.py"
,
line 390, in register_class
    zimp.load_module(m)
  File
"/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/addons/openerpmagen
to.zip/openerpmagento/__init__.py",
line 2, in <module>
  File
"/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/addons/openerpmagen
to.zip/openerpmagento/magento_utils.py",
line 4, in <module>
  File
"/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/addons/openerpmagen
to.zip/openerpmagento/wizard/__init__.py",
line 1, in <module>
  File
"/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/addons/openerpmagen
to.zip/openerpmagento/wizard/magento_product_synchronize.py",
line 189, in <module>
  File
"/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/wizard/__init__.py"
,
line 47, in __init__
    assert not netsvc.service_exist('wizard.'+name), 'The wizard "%s" already
exists!'%name
AssertionError: The wizard "magento.products.sync" already exists!

Original comment by broly...@gmail.com on 3 Mar 2009 at 10:18

GoogleCodeExporter commented 9 years ago
Hello the cause of the previous problem is because I have installed several 
magento
connectors in the same openerpweb...

  assert not netsvc.service_exist('wizard.'+name), 'The wizard "%s" already
exists!'%name
AssertionError: The wizard "magento.products.sync" already exists!

But I have another error now when I try "import sale orders":
ProtocolError: <ProtocolError for
XXXXXX.com/magento/app/code/local/Smile/OpenERPSync/openerp-synchro.php: 403 
Forbidden>

I have another question: what is the best trunk  revision connector for magento 
1.2.1?
is it the trunk revision 150? 140? 139?
and what is also the best openerp version for magento 1.2.1
please help me.

Traceback (most recent call last):
  File "/home/sisalpuser/openerp/dev5/server/bin/netsvc.py", line 231, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/sisalpuser/openerp/dev5/server/bin/netsvc.py", line 74, in __call__
    return getattr(self, method)(*params)
  File "/home/sisalpuser/openerp/dev5/server/bin/service/web_services.py", line 552,
in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/home/sisalpuser/openerp/dev5/server/bin/service/web_services.py", line 532,
in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/home/sisalpuser/openerp/dev5/server/bin/wizard/__init__.py", line 178, in
execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/home/sisalpuser/openerp/dev5/server/bin/wizard/__init__.py", line 74, in
execute_cr
    action_res = action(self, cr, uid, data, context)
  File
"/home/sisalpuser/openerp/dev5/server/bin/addons/exmagen.zip/exmagen/wizard/mage
nto_so_import.py",
line 75, in _do_import
    sale_order_array = server.sale_orders_sync(last_order_id)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1147, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1437, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.5/xmlrpclib.py", line 1191, in request
    headers
ProtocolError: <ProtocolError for
XXXXXX.com/magento/app/code/local/Smile/OpenERPSync/openerp-synchro.php: 403 
Forbidden>

Original comment by broly...@gmail.com on 15 Mar 2009 at 8:43

GoogleCodeExporter commented 9 years ago
ah oui , je précise que je suis français donc vous pouvez vous exprimez soit 
en
anglais ou français...

Original comment by broly...@gmail.com on 15 Mar 2009 at 9:50

GoogleCodeExporter commented 9 years ago
il y avait un problème de .htaccess pour les erreurs ci-dessous..
Mais bon , d'autres erreurs sont apparues..
Et j'utilise les derniers trunks de bazaar maintenant...
Mon problème de import sales orders n'est toujours pas réglés lol...

ConnectionError
Couldn't connect to Magento with URL
http://XXXXX.com/magento/index.php/api/xmlrpc

ProtocolError: <ProtocolError for
XXXXXX.com/magento/app/code/local/Smile/OpenERPSync/openerp-synchro.php: 403 
Forbidden>

Original comment by broly...@gmail.com on 23 Mar 2009 at 3:16

GoogleCodeExporter commented 9 years ago
Hi broly972,
Did you find a solution to the below issue?

ConnectionError

Couldn't connect to Magento with URL 
http://www.mydomain.com.au/index.php/api/xmlrpc

If so, I'd appreciate a hand trying to resolve the issue. Perhaps you can email 
me
hm.in.vegas@gmail.com

Original comment by hm.in.ve...@gmail.com on 2 May 2009 at 7:44

GoogleCodeExporter commented 9 years ago
hi 

it's was a problem with .htaccess

http://code.google.com/p/magento-openerp-smile-synchro/issues/detail?id=19

Original comment by broly...@gmail.com on 6 May 2009 at 10:33