← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 702927] Re: [trunk] Issue on right bar wizard on purchase

 

** Changed in: openobject-client-web
       Status: Confirmed => In Progress

-- 
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/702927

Title:
  [trunk] Issue on right bar wizard on purchase

Status in OpenERP Web Client:
  Fix Released

Bug description:
  Revno 4341

  Create a new DB with demo data, with check only 'Purchase Management'.
  After the creation, go to Purchase -> Request for Quotation.

  Open PO00001 and duplicate it. 
  Save the new RfQ.
  Return to the list
  Select all with the checkbox on the title of the table
  Click on Merge Purchase Order at the right bar
  Click on 'Merge...' button and an error occurs (Traceback below).

  I investigate on this issue, and I see that the return active_id and
  active_ids values aren't correct. In fact, the web client return in
  active_ids and active_id, the id of the ir.ui.menu instead of the ids
  of the selectionned objects.

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





References