narigao / magento-openerp-smile-synchro

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

Import sale orders #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
i'm trying to import sale orders through TinyERP, and I'm getting the
following error msg.:

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

Could you please tell me, how to solve the connection problem? 
Thx.

Original issue reported on code.google.com by agul...@gmail.com on 13 Jan 2009 at 11:57

GoogleCodeExporter commented 9 years ago
I can confirm this error is present for me as well, running OpenERP 5 RC3(on 
windows 
server 2003) and magento 1.2.0.1

All other import options work. I haven't been able to use the Magento order 
push as 
my server does not have access to the internet.

There seems to be nothing about it in openerp server logs.

Original comment by reneluc...@gmail.com on 15 Jan 2009 at 11:22

GoogleCodeExporter commented 9 years ago
I think it's fixed on trunk, can you check with trunk version of the OpenERP 
module?
No need to update anything on Magento side, could you confirm?

Original comment by rva...@gmail.com on 16 Jan 2009 at 1:16

GoogleCodeExporter commented 9 years ago
sorry could you exactly tell me which files and where should I replace? i'm 
working
on linux

Original comment by agul...@gmail.com on 18 Jan 2009 at 2:38

GoogleCodeExporter commented 9 years ago
I uninstalled the module, downloaded trunk and tried to install but it won't 
install 
and this is what the openerp log tells me:

[Mon Jan 19 2009 09:09:14] INFO:init:module magento_openerp: registering objects
[Mon Jan 19 2009 09:09:14] INFO:init:module magento_openerp loading objects
[Mon Jan 19 2009 09:09:14] INFO:init:module magento_openerp: creating or 
updating 
database tables
[Mon Jan 19 2009 09:09:15] INFO:init:module magento_openerp: loading 
magento_view.xml
[Mon Jan 19 2009 09:09:15] WARNING:init:The tag <terp/> is deprecated, use 
<openerp/>
[Mon Jan 19 2009 09:09:15] WARNING:init:Warning no ID for submenu Magento of 
menu 
['Magento', 'Magento Web'] !
[Mon Jan 19 2009 09:09:15] INFO:init:module magento_openerp: loading 
magento_wizard.xml
[Mon Jan 19 2009 09:09:15] WARNING:init:The tag <terp/> is deprecated, use 
<openerp/>
[Mon Jan 19 2009 09:09:15] WARNING:init:Warning no ID for submenu 
Synchronization of 
menu ['Magento', 'Synchronization', 'Synchronize Products And Stocks'] !
[Mon Jan 19 2009 09:09:15] INFO:init:module magento_openerp: loading 
magento_data.xml
[Mon Jan 19 2009 09:09:15] WARNING:init:The tag <terp/> is deprecated, use 
<openerp/>
[Mon Jan 19 2009 09:09:15] ERROR:init:[01]: <record id="cat_service" 
model="product.category">
[Mon Jan 19 2009 09:09:15] ERROR:init:[02]:             <field 
name="parent_id" ref="null"/>
[Mon Jan 19 2009 09:09:15] ERROR:init:[03]:             <field 
name="name">Services</field>
[Mon Jan 19 2009 09:09:15] ERROR:init:[04]:         </record>
[Mon Jan 19 2009 09:09:15] ERROR:web-services:[01]: Exception in call: 
Traceback 
(most recent call last):
[Mon Jan 19 2009 09:09:15] ERROR:web-services:[02]:   File 
"wizard\__init__.pyo", 
line 73, in execute_cr
[Mon Jan 19 2009 09:09:15] ERROR:web-services:[03]:   File "C:\Program 
Files\OpenERP 
AllInOne\Server\addons\base\module\wizard\wizard_module_upgrade.py", line 92, 
in 
_upgrade_module
[Mon Jan 19 2009 09:09:15] ERROR:web-services:[04]:   File "pooler.pyo", line 
55, in 
restart_pool
[Mon Jan 19 2009 09:09:15] ERROR:web-services:[05]:   File "pooler.pyo", line 
38, in 
get_db_and_pool
[Mon Jan 19 2009 09:09:15] ERROR:web-services:[06]:   File 
"addons\__init__.pyo", 
line 638, in load_modules
[Mon Jan 19 2009 09:09:15] ERROR:web-services:[07]:   File 
"addons\__init__.pyo", 
line 547, in load_module_graph
[Mon Jan 19 2009 09:09:15] ERROR:web-services:[08]:   File "tools\convert.pyo", 
line 
865, in convert_xml_import
[Mon Jan 19 2009 09:09:15] ERROR:web-services:[09]:   File "tools\convert.pyo", 
line 
759, in parse
[Mon Jan 19 2009 09:09:15] ERROR:web-services:[10]:   File "tools\convert.pyo", 
line 
727, in _tag_record
[Mon Jan 19 2009 09:09:15] ERROR:web-services:[11]:   File "C:\Program 
Files\OpenERP 
AllInOne\Server\addons\base\ir\ir_model.py", line 457, in _update
[Mon Jan 19 2009 09:09:15] ERROR:web-services:[12]:   File "C:\Program 
Files\OpenERP 
AllInOne\Server\addons\magento_openerp\magento.py", line 92, in write

Original comment by reneluc...@gmail.com on 19 Jan 2009 at 8:18

GoogleCodeExporter commented 9 years ago
I have copied files from trunk and replaced it in magento_openerp 
directory...when I
tried to synchro products error occured that there is no magento_flag column in
magento_web table. I've added this column set 'True' value.
Again I tried to sync products and follownig error occured:

Traceback (most recent call last):
  File "/usr/lib/tinyerp-server/netsvc.py", line 202, in _dispatch
    r=m(*params)
  File "/usr/lib/tinyerp-server/service/web_services.py", line 422, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/usr/lib/tinyerp-server/service/web_services.py", line 402, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/usr/lib/tinyerp-server/wizard/__init__.py", line 160, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/usr/lib/tinyerp-server/wizard/__init__.py", line 75, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File
"/usr/lib/tinyerp-server/addons/magento_openerp.zip/magento_openerp/wizard/magen
to_product_synchronize.py",
line 52, in do_export
    (server, session) = mw.connect()
TypeError: connect() takes at least 4 arguments (1 given)

Almost the same error occures when i try to import/update/correct orders and 
sync
categories ;/
I'm running tinyerp v.4.2.3.4 and Magento 1.1.8

I have replaced following files:
trunc - magento.py, magento_data.xml, __terp__.py
wizard - magento_category_synchronize.py, magento_product_synchronize.py,
magento_so_correct.py, magento_so_import.py, magento_so_update.py
Thx for any help

Original comment by agul...@gmail.com on 20 Jan 2009 at 4:04

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I noticed that I can't run Magento > Magento Web and Configuration > Shop. I'm
getting error:

Original comment by agul...@gmail.com on 20 Jan 2009 at 4:28

Attachments:

GoogleCodeExporter commented 9 years ago
Hello,

i'm getting also an error. I use Openerp 5.0 RC3 and Magento 1.2.0.2
If if try to get sales order:

Traceback (most recent call last):
  File "netsvc.pyo", line 421, in run
  File "service\web_services.pyo", line 483, in execute
  File "service\web_services.pyo", line 463, in _execute
  File "wizard\__init__.pyo", line 177, in execute
  File "wizard\__init__.pyo", line 73, in execute_cr
  File "C:\Programme\OpenERP
AllInOne\Server\addons\magento_openerp.zip\magento_openerp\wizard\magento_so_imp
ort.py",
line 224, in do_import
IndexError: list index out of range

And i i place an order in Magento i get these:

Traceback (most recent call last): File "netsvc.pyo", line 284, in _dispatch 
File
"C:\Programme\OpenERP AllInOne\Server\addons\audittrail\audittrail.py", line 
339, in
execute File "C:\Programme\OpenERP 
AllInOne\Server\addons\audittrail\audittrail.py",
line 330, in my_fct File "service\web_services.pyo", line 427, in execute File
"osv\osv.pyo", line 59, in wrapper File "osv\osv.pyo", line 120, in execute File
"osv\osv.pyo", line 112, in execute_cr File "C:\Programme\OpenERP
AllInOne\Server\addons\magento_openerp.zip\magento_openerp\magento.py", line 
157, in
createOrders File "C:\Programme\OpenERP
AllInOne\Server\addons\magento_openerp.zip\magento_openerp\magento_utils.py", 
line
28, in createOrders File "C:\Programme\OpenERP
AllInOne\Server\addons\magento_openerp.zip\magento_openerp\magento_utils.py", 
line
134, in createOrder KeyError: 'bankpayment' 

Can some help please?

Thanks a lot

Olaf

Original comment by olaf.j...@intechma.de on 22 Jan 2009 at 10:58

GoogleCodeExporter commented 9 years ago
I'm trying to get a connection between Magento ver. 1.1.8 and OpenERP - GTK 
Client -
v5.0.0_rc3. When i want to import sale orders is get the error: 

ConnectionError

Couldn't connect to Magento with URL http://xxxxxx.com/xxxx/index.php/api/xmlrpc

Original comment by daan.phenomic@gmail.com on 6 Feb 2009 at 10:44

GoogleCodeExporter commented 9 years ago
I've got the same problem, but only with one of my 2 databases.
Can't understand why the one in production won't get to import sale orders
Has anyone figured out why this error happens at first?

Original comment by bernhard...@yahoo.fr on 17 Feb 2009 at 3:34

GoogleCodeExporter commented 9 years ago
anyone find a solution to this?

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

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:35