← Back to team overview

openerp-dev-web team mailing list archive

[Bug 702927] [NEW] [trunk] Issue on right bar wizard on purchase

 

Somesh Khare(OpenERP) (skh-openerp) has assigned this bug to you for OpenObject Web Client:

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)'

** Affects: openobject-client-web
     Importance: Medium
     Assignee: OpenERP SA's Web Client R&D (openerp-dev-web)
         Status: Confirmed

-- 
[trunk] Issue on right bar wizard on purchase
https://bugs.launchpad.net/bugs/702927
You received this bug notification because you are a member of OpenERP SA's Web Client R&D, which is a bug assignee.