← Back to team overview

openerp-india team mailing list archive

[Bug 992183] [NEW] NotImplementedError: Iteration is not allowed on browse_record(sale.order, 12)

 

Public bug reported:

Using Magentoerpconnect and nan_product_pack module, I get this error
message when trying to import an order from Magento :

2012-04-30 19:45:01,568 47126 INFO ? openerp.loglevels.deprecated.ext synchro: order 12 paid when updated from external system
2012-04-30 19:45:01,604 47126 ERROR ? openerp.addons.base.ir.ir_cron: Call of self.pool.get('sale.shop').run_import_orders_scheduler(cr, uid, *()) failed in Job 8
Traceback (most recent call last):
  File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/addons/base/ir/ir_cron.py", line 138, in _callback
    method(cr, uid, *args)
  File "/Users/openerp/openerp/magento-onchange-support/magentoerpconnect/sale.py", line 260, in run_import_orders_scheduler
    self._sale_shop(cr, uid, self.import_orders, context=context)
  File "/Users/openerp/openerp/magento-onchange-support/magentoerpconnect/sale.py", line 252, in _sale_shop
    callback(cr, uid, ids, context=context)
  File "/Users/openerp/openerp/on-change-support-extra-addons/base_sale_multichannels/sale.py", line 284, in import_orders
    self.import_shop_orders(cr, uid, shop, defaults, context)
  File "/Users/openerp/openerp/magento-onchange-support/magentoerpconnect/sale.py", line 141, in import_shop_orders
    self.check_need_to_update(cr, uid, [shop.id], context=context)
  File "/Users/openerp/openerp/magento-onchange-support/magentoerpconnect/sale.py", line 205, in check_need_to_update
    so_obj.write(cr, uid, order.id, {'need_to_update': False})
  File "/Users/openerp/openerp/on-change-support-extra-addons/nan_product_pack/pack.py", line 116, in write
    self.expand_packs(cr, uid, ids, context)
  File "/Users/openerp/openerp/on-change-support-extra-addons/nan_product_pack/pack.py", line 123, in expand_packs
    for order in self.browse(cr, uid, ids, context):
  File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/osv/orm.py", line 484, in __iter__
    raise NotImplementedError("Iteration is not allowed on %s" % self)
NotImplementedError: Iteration is not allowed on browse_record(sale.order, 12)

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/992183

Title:
  NotImplementedError: Iteration is not allowed on
  browse_record(sale.order, 12)

Status in OpenERP Addons (modules):
  New

Bug description:
  Using Magentoerpconnect and nan_product_pack module, I get this error
  message when trying to import an order from Magento :

  2012-04-30 19:45:01,568 47126 INFO ? openerp.loglevels.deprecated.ext synchro: order 12 paid when updated from external system
  2012-04-30 19:45:01,604 47126 ERROR ? openerp.addons.base.ir.ir_cron: Call of self.pool.get('sale.shop').run_import_orders_scheduler(cr, uid, *()) failed in Job 8
  Traceback (most recent call last):
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/addons/base/ir/ir_cron.py", line 138, in _callback
      method(cr, uid, *args)
    File "/Users/openerp/openerp/magento-onchange-support/magentoerpconnect/sale.py", line 260, in run_import_orders_scheduler
      self._sale_shop(cr, uid, self.import_orders, context=context)
    File "/Users/openerp/openerp/magento-onchange-support/magentoerpconnect/sale.py", line 252, in _sale_shop
      callback(cr, uid, ids, context=context)
    File "/Users/openerp/openerp/on-change-support-extra-addons/base_sale_multichannels/sale.py", line 284, in import_orders
      self.import_shop_orders(cr, uid, shop, defaults, context)
    File "/Users/openerp/openerp/magento-onchange-support/magentoerpconnect/sale.py", line 141, in import_shop_orders
      self.check_need_to_update(cr, uid, [shop.id], context=context)
    File "/Users/openerp/openerp/magento-onchange-support/magentoerpconnect/sale.py", line 205, in check_need_to_update
      so_obj.write(cr, uid, order.id, {'need_to_update': False})
    File "/Users/openerp/openerp/on-change-support-extra-addons/nan_product_pack/pack.py", line 116, in write
      self.expand_packs(cr, uid, ids, context)
    File "/Users/openerp/openerp/on-change-support-extra-addons/nan_product_pack/pack.py", line 123, in expand_packs
      for order in self.browse(cr, uid, ids, context):
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/osv/orm.py", line 484, in __iter__
      raise NotImplementedError("Iteration is not allowed on %s" % self)
  NotImplementedError: Iteration is not allowed on browse_record(sale.order, 12)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/992183/+subscriptions


Follow ups

References