invalid attribute 'imported' magento response

Bug #881728 reported by Kyle Waid
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magento OpenERP Connector
Fix Released
Undecided
Sébastien BEAU - http://www.akretion.com

Bug Description

When installing the newer api module on magento it can give this error,

I have seen it on two completely separate installations. For some reason in some installs, the module fails to properly install without reason.

[2011-10-25 18:14:23,163][midwestsupplies] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/usr/local/openerp/openerp-server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/openerp/openerp-server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/openerp/openerp-server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/openerp/addons/base_sale_multichannels/sale.py", line 200, in import_orders
    self.import_shop_orders(cr, uid, shop, defaults, context)
  File "/usr/local/openerp/addons/magentoerpconnect/sale.py", line 144, in import_shop_orders
    context={'ids_or_filter':ids_or_filter})
  File "/usr/local/openerp/addons/magentoerpconnect/sale.py", line 665, in mage_import_base
    data = conn.call('sales_order.retrieve', [order_retrieve_params])
  File "/usr/local/openerp/addons/magentoerpconnect/magerp_osv.py", line 52, in call
    res = self.ser.call(self.session, method, arguments)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1575, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
    return self.parse_response(response)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
    return u.close()
  File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
    raise Fault(**self._stack[0])
Fault: <Fault 1: 'Invalid attribute name: imported'>

Revision history for this message
Kyle Waid (midwest) wrote :

The column imported is created correctly. It accepts the api call, but it does not recognize the attribute imported. The problems I had were with magento versions before 1.4. Is this module not compatible with 1324?

Changed in magentoerpconnect:
assignee: nobody → Sébastien BEAU - http://www.akretion.com (sebastien.beau)
Kyle Waid (midwest)
Changed in magentoerpconnect:
status: New → Fix Released
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Hello Kyle,

I noticed that you've put your bug request as "Fix Released", but I doesn't see any fix on the branch.

Do you have any solution for this please ?

Thanks

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :
Changed in magentoerpconnect:
status: Fix Released → Confirmed
Revision history for this message
Kyle Waid (midwest) wrote :

Yes thats correct

Revision history for this message
Kyle Waid (midwest) wrote :

I dont understand you put confirmed? I have this confirmed fixed on 3 different installs.

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Because we still have the issue on a 1.4.0.0 version. That's why I inquiry you if it works for you.

Revision history for this message
Kyle Waid (midwest) wrote :

On your 1.4 I am assuming you had originally the connector before the release of the fix in which case the init script will not run again. Try removing the module entry in core_resource, drop cache and session data. Let me know if it fixes it. It shouldnt matter which version of magento it is. As you are aware in version > 1.4 it uses sales_flat_order to store the attribute.

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Thanks Kyle, we'll try.

Revision history for this message
Kyle Waid (midwest) wrote :

Are you still having the problem?

Kyle Waid (midwest)
Changed in magentoerpconnect:
status: Confirmed → Fix Released
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.