Some bugs in import feature

Bug #496660 reported by YannickB (YOLO consulting)
This bug report is a duplicate of:  Bug #496659: Some bugs in import feature. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magento OpenERP Connector
New
Undecided
Unassigned

Bug Description

Hi,

I detected some bug in the import feature Magento -> OpenERP, with the product Attributes and Products.

Here the context : One client want to install your connector for synchronization with Magento. The OpenERP and connector will be installed by me, and the Magento by another society.
The OpenERP is the current branch stable, your connector is the current trunk.
The Magento is in 1.3.2.3, I have no access of any change they did, but I think they just work in the template.
I know your referential is for 1.3.2.4, it's for you to juge if the change are significant for explain the bugs.

When i try the import Product Attributes, I have a pop-up that say
"ValidateError
The value "boolean" for the field "frontend_input" is not in the selection"
I join two screenshots of the Attributes in Magento. There is two pages of attribute, perhaps sample of Magento.

When I try to Import the Product, at first it work Ok. But when I retry I have this error :

Environment Information :
System : Linux-2.6.31-15-generic-i686-with-Ubuntu-9.10-karmic
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic
Operating System Release : 2.6.31-15-generic
Operating System Version : #50-Ubuntu SMP Tue Nov 10 14:54:29 UTC 2009
Operating System Architecture : 32bit
Operating System Locale : fr_FR.UTF8
Python Version : 2.6.4
OpenERP-Client Version : 5.0.6
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/opt/stable-openerp/server/bin/netsvc.py", line 244, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/opt/stable-openerp/server/bin/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/opt/stable-openerp/server/bin/addons/audittrail/audittrail.py", line 346, in execute
    res = my_fct(db, uid, passwd, object, method, *args)
  File "/opt/stable-openerp/server/bin/addons/audittrail/audittrail.py", line 336, in my_fct
    return fct_src(db, uid, passwd, object, method, *args)
  File "/opt/stable-openerp/server/bin/service/web_services.py", line 579, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/opt/stable-openerp/server/bin/osv/osv.py", line 61, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/stable-openerp/server/bin/osv/osv.py", line 120, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/stable-openerp/server/bin/osv/osv.py", line 112, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/stable-openerp/server/bin/addons/magentoerpconnect/magerp_core.py", line 156, in sync_products
    self.pool.get('product.product').ext_import(cr, uid, result, inst.id, context={})
  File "/opt/stable-openerp/server/bin/addons/base_external_referentials/external_osv.py", line 162, in ext_import
    if self.oe_update(cr, uid, existing_rec_id, vals, each_row, external_referential_id, defaults, context):
  File "/opt/stable-openerp/server/bin/addons/base_external_referentials/external_osv.py", line 185, in oe_update
    return self.write(cr, uid, existing_rec_id, vals, context)
  File "/opt/stable-openerp/server/bin/addons/magentoerpconnect/product.py", line 594, in write
    stat = super(product_product, self).write(cr, uid, ids, vals, context)
  File "/opt/stable-openerp/server/bin/osv/orm.py", line 2442, in write
    fobj = self._inherit_fields[field][2]
KeyError: 'x_magerp_special_price'

I try some change with the special price, reinstall of OpenERP base, no effect.

Hope this information help you to continue your awesome work.

Revision history for this message
YannickB (YOLO consulting) (yannick-buron) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.