← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 716211] [NEW] merging of quotations / purchase order fail

 

Public bug reported:

during testing of 6.01 i found the problem when i want to merge purchase
orders which was generated by a sales order. i have 4 products from the
same supplier and i want them on the same purchase orders but if i
select them i get the this error and i cant merge them:

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/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/local/lib/python2.6/dist-packages/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/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 287, in __getattr__
    raise AttributeError(e)
AttributeError: 'Field state not found in browse_record(purchase.order, 348)'

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

Title:
  merging of quotations / purchase order fail

Status in OpenERP Modules (addons):
  New

Bug description:
  during testing of 6.01 i found the problem when i want to merge
  purchase orders which was generated by a sales order. i have 4
  products from the same supplier and i want them on the same purchase
  orders but if i select them i get the this error and i cant merge
  them:

  Traceback (most recent call last):
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/usr/local/lib/python2.6/dist-packages/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/local/lib/python2.6/dist-packages/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/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 287, in __getattr__
      raise AttributeError(e)
  AttributeError: 'Field state not found in browse_record(purchase.order, 348)'





Follow ups

References