Comment 3 for bug 495381

Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote : Re: [Bug 495381] Re: Issue when categories are ordered

Hello Salvador,

I think we fixed the previous bug you mentioned indeed.
For that one, you have to reload the mapping (button in Magento instance
management) before importing again. As you can read in the commit messages,
we indeed changed the name of the field 'exportable' to 'magento_exportable'
to prevent possible future incompatibilities when other ecommerce connectors
might be installed on the same OpenERP instance.

Basically it will update the mapping of the field "name" in
product.category.

Please tell us how it goes.

Raphaël Valyi

On Fri, Dec 11, 2009 at 11:22 AM, ssierra <email address hidden> wrote:

> Hi,
>
> I updated the module and now I do not get the same error, but this is
> what I get:
>
>
> Environment Information :
> System : Darwin-9.8.0-i386-32bit
> OS Name : posix
> Your System is not lsb compliant
> Operating System Release : 9.8.0
> Operating System Version : Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01
> PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386
> Operating System Architecture : 32bit
> Operating System Locale : NOT SET
> Python Version : 2.5.1
> OpenERP-Client Version : 5.0.6
> Last revision No. & ID :Bazaar Package not Found !Traceback (most recent
> call last):
> File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line
> 244, in dispatch
> result = LocalService(service_name)(method, *params)
> File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 73,
> in __call__
> return getattr(self, method)(*params)
> File
> "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py",
> line 583, in execute
> res = service.execute(db, uid, object, method, *args)
> File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line
> 61, in wrapper
> return f(self, dbname, *args, **kwargs)
> File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line
> 120, in execute
> res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
> File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line
> 112, in execute_cr
> return getattr(object, method)(cr, uid, *args, **kw)
> File
> "/usr/lib/python2.5/site-packages/openerp-server/addons/magentoerpconnect/magerp_core.py",
> line 70, in sync_categs
> self.pool.get('product.category').record_entire_tree(cr, uid, inst.id,
> pro_cat_conn, categ_tree, DEBUG)
> File
> "/usr/lib/python2.5/site-packages/openerp-server/addons/magentoerpconnect/product.py",
> line 107, in record_entire_tree
> def record_entire_tree(self, cr, uid, id, conn, categ_tree,
> DEBUG=False):
> File
> "/usr/lib/python2.5/site-packages/openerp-server/addons/magentoerpconnect/product.py",
> line 116, in record_category
> imp_vals = conn.call('category.info', [category_id])
> File
> "/usr/lib/python2.5/site-packages/openerp-server/addons/base_external_referentials/external_osv.py",
> line 162, in ext_import
> if self.write(cr, uid, existing_rec_id, vals, context):
> File
> "/usr/lib/python2.5/site-packages/openerp-server/addons/magentoerpconnect/product.py",
> line 104, in write
> vals['magerp_stamp'] = time.strftime('%Y-%m-%d %H:%M:%S')
> File "/usr/lib/python2.5/site-packages/openerp-server/osv/orm.py", line
> 2427, in write
> fobj = self._inherit_fields[field][2]
> KeyError: 'magento_exportable'
>
> Also after the update I can't access the products, so I guess this could
> be another issue with the last revision.
>
> This is the error message I get when I try to access to products:
>
> Can't find field 'magento_exportable' in the following view parts composing
> the view of object model 'product.product':
> * product.normal.form_magerp
>
> Either you wrongly customised this view, or some modules bringing those
> views are not compatible with your current data model
>
> --
> Issue when categories are ordered
> https://bugs.launchpad.net/bugs/495381
> You received this bug notification because you are subscribed to Magento
> Open ERP Connector.
>
> Status in Magento Open ERP Connector: Confirmed
>
> Bug description:
> Hi,
>
> We have detected the flowing issue. If a category is sorted in Magento it
> gives the following error in OpenERP
>
> ValidateError
>
> The value "['name']" for the field "available_sort_by" is not in the
> selection
>
>
>