← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 806577] [NEW] nan product pack : hazardous error

 

Public bug reported:

Hello,

Just as a note to dev :-)

I get this hazardous error importing order from magento to openerp.

 File "/opt/openerp/addons/magentoerpconnect/sale.py", line 536, in oe_create
    self.oe_status(cr, uid, order_id, paid, context)
  File "/opt/openerp/addons-extra/base_sale_multichannels/sale.py", line 360, in oe_status
    self.write(cr, uid, order.id, {'need_to_update': True})
  File "/opt/openerp/addons-extra/nan_product_pack/pack.py", line 116, in write
    self.expand_packs(cr, uid, ids, context)
  File "/opt/openerp/addons-extra/nan_product_pack/pack.py", line 123, in expand_packs
    for order in self.browse(cr, uid, ids, context):
  File "/opt/openerp/server/bin/osv/orm.py", line 189, in __getitem__
    name, self))
KeyError: "Field '0' does not exist in object 'browse_record(sale.order, 42)'"

Thanks to debug.

Thierry

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

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/806577

Title:
  nan product pack : hazardous error

Status in OpenERP Modules (addons):
  New

Bug description:
  Hello,

  Just as a note to dev :-)

  I get this hazardous error importing order from magento to openerp.

   File "/opt/openerp/addons/magentoerpconnect/sale.py", line 536, in oe_create
      self.oe_status(cr, uid, order_id, paid, context)
    File "/opt/openerp/addons-extra/base_sale_multichannels/sale.py", line 360, in oe_status
      self.write(cr, uid, order.id, {'need_to_update': True})
    File "/opt/openerp/addons-extra/nan_product_pack/pack.py", line 116, in write
      self.expand_packs(cr, uid, ids, context)
    File "/opt/openerp/addons-extra/nan_product_pack/pack.py", line 123, in expand_packs
      for order in self.browse(cr, uid, ids, context):
    File "/opt/openerp/server/bin/osv/orm.py", line 189, in __getitem__
      name, self))
  KeyError: "Field '0' does not exist in object 'browse_record(sale.order, 42)'"

  Thanks to debug.

  Thierry

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


Follow ups

References