Connectors mailing list archives
connectors@odoo-community.org
Browse archives
Sale Order disappear after sync sale_order;
Changing core magento connector functionality for products
Import of Magento sales order fails
byHi,
I’m new to the Magento Connector and facing a problem I can’t solve.
The connector itself seems to run. Synchronizing the metadata is done and the import of the products is successfully done as well.
When I try to import sales orders from Magento I get the following Exception: TypeError: default_get() got multiple values for keyword argument 'context'
Traceback (most recent call last):
File "/opt/odoo/connector/connector/queue/worker.py", line 124, in run_job
job.perform(session)
File "/opt/odoo/connector/connector/queue/job.py", line 467, in perform
self.result = self.func(session, *self.args, **self.kwargs)
File "/opt/odoo/connector-magento/magentoerpconnect/unit/import_synchronizer.py", line 388, in import_record
importer.run(magento_id, force=force)
File "/opt/odoo/connector-magento/magentoerpconnect/unit/import_synchronizer.py", line 230, in run
binding = self._create(record)
File "/opt/odoo/connector-magento/magentoerpconnect/unit/import_synchronizer.py", line 171, in _create
binding = model.create(data)
File "/opt/odoo/odoo-server/openerp/api.py", line 254, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/connector/connector/producer.py", line 48, in create
record_id = create_original(self, vals)
File "/opt/odoo/odoo-server/openerp/api.py", line 254, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/odoo-server/openerp/models.py", line 4094, in create
record = self.browse(self._create(old_vals))
File "/opt/odoo/odoo-server/openerp/api.py", line 254, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 496, in new_api
result = method(self._model, cr, uid, *args, **old_kwargs)
File "/opt/odoo/odoo-server/openerp/models.py", line 4279, in _create
result += self._columns[field].set(cr, self, id_new, field, vals[field], user, rel_context) or []
File "/opt/odoo/odoo-server/openerp/osv/fields.py", line 801, in set
id_new = obj.create(cr, user, act[2], context=context)
File "/opt/odoo/odoo-server/openerp/api.py", line 256, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 360, in old_api
result = method(recs, *args, **kwargs)
File "/opt/odoo/connector-magento/magentoerpconnect/sale.py", line 208, in create
binding = super(MagentoSaleOrderLine, self).create(vals)
File "/opt/odoo/odoo-server/openerp/api.py", line 254, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/connector/connector/producer.py", line 48, in create
record_id = create_original(self, vals)
File "/opt/odoo/odoo-server/openerp/api.py", line 254, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/odoo-server/openerp/models.py", line 4074, in create
vals = self._add_missing_default_values(vals)
File "/opt/odoo/odoo-server/openerp/api.py", line 254, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 496, in new_api
result = method(self._model, cr, uid, *args, **old_kwargs)
File "/opt/odoo/odoo-server/openerp/models.py", line 1804, in _add_missing_default_values
defaults = self.default_get(cr, uid, list(missing_defaults), context)
File "/opt/odoo/odoo-server/openerp/api.py", line 256, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 360, in old_api
result = method(recs, *args, **kwargs)
File "/opt/odoo/odoo-server/openerp/models.py", line 1341, in default_get
defaults.update(self.env[model].default_get(names))
File "/opt/odoo/odoo-server/openerp/api.py", line 254, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 580, in new_api
result = method(self._model, cr, uid, self.ids, *args, **old_kwargs)
TypeError: default_get() got multiple values for keyword argument 'context'
Does anybody has an idea what the problem is?
Best regards!
Einen Gruss aus Pforzheim sendet Ihnen
i.A. Pascal Potrafke
Senior Software Developer
Equitania Software GmbH
Weiherstrasse 13 - 75173 Pforzheim
Telefon +49 7231 16604 122 - Telefax +49 7231 16604 200
www.equitania.de
Ein Unternehmen der www.cmc-Gruppe.de
Geschäftsführer: Martin Andreas Schmid, Paul Exler
Sitz: Pforzheim, Amtsgericht Mannheim, HRB 511803
Umsatzsteuer Ident. Nr.: DE814544688
Bitte beachten Sie auch unsere AVBs.