← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 708146] [NEW] "Merge Purchase orders" causes a traceback

 

Public bug reported:

Steps to reproduce:
 1) Create a draft Purchase Order with at least one line.
 2) Duplicate it.
 3) Navigate to the Request for Quotation list view
 4) Select both draft POs and click "Merge Purchase orders"
 5) Click "Merge orders" on the presented dialog.

Expected behaviour:
 Merged POs.

Actual behaviour:

Traceback (most recent call last):
  File "/usr/share/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/share/openerp-server/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/share/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/share/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/share/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/share/openerp-server/addons/purchase/wizard/purchase_order_group.py", line 71, in merge_orders
    allorders = order_obj.do_merge(cr, uid, context.get('active_ids',[]), context)
  File "/usr/share/openerp-server/addons/purchase/purchase.py", line 531, in do_merge
    for porder in [order for order in self.browse(cr, uid, ids, context=context) if order.state == 'draft']:
  File "/usr/share/openerp-server/osv/orm.py", line 287, in __getattr__
    raise AttributeError(e)
AttributeError: 'Field state not found in browse_record(purchase.order, 282)'


This is using the web interface.  Both server and web interface are v6.0.1.

** 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/708146

Title:
  "Merge Purchase orders" causes a traceback

Status in OpenERP Modules (addons):
  New

Bug description:
  Steps to reproduce:
   1) Create a draft Purchase Order with at least one line.
   2) Duplicate it.
   3) Navigate to the Request for Quotation list view
   4) Select both draft POs and click "Merge Purchase orders"
   5) Click "Merge orders" on the presented dialog.

  Expected behaviour:
   Merged POs.

  Actual behaviour:

  Traceback (most recent call last):
    File "/usr/share/openerp-server/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/usr/share/openerp-server/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/usr/share/openerp-server/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/share/openerp-server/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/share/openerp-server/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/usr/share/openerp-server/addons/purchase/wizard/purchase_order_group.py", line 71, in merge_orders
      allorders = order_obj.do_merge(cr, uid, context.get('active_ids',[]), context)
    File "/usr/share/openerp-server/addons/purchase/purchase.py", line 531, in do_merge
      for porder in [order for order in self.browse(cr, uid, ids, context=context) if order.state == 'draft']:
    File "/usr/share/openerp-server/osv/orm.py", line 287, in __getattr__
      raise AttributeError(e)
  AttributeError: 'Field state not found in browse_record(purchase.order, 282)'

  
  This is using the web interface.  Both server and web interface are v6.0.1.





Follow ups

References