[trunk] Issue on right bar wizard on purchase

Bug #702927 reported by Quentin THEURET @Amaris
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Medium
OpenERP R&D Web Team

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

summary: - [trunk] Big issue on right bar wizard
+ [trunk] Issue on right bar wizard on purchase
Revision history for this message
Quentin THEURET @Amaris (qtheuret) wrote :

I test this issue on res.partner and product.product object and it's ok. Obviously, it's only on purchase.order

Changed in openobject-client-web:
assignee: nobody → OpenERP SA's Web Client R&D (openerp-dev-web)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-client-web:
status: Confirmed → In Progress
Revision history for this message
Kunal Chavda (kunal-chavda) wrote :

Hello Quentin THEURET ,

It's fixed in web-client. Please update your code.
Revision Info: 4476 <email address hidden>

Thanks.

Changed in openobject-client-web:
status: In Progress → Fix Released
milestone: none → 6.0.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.