KeyError: 'prodlot_id'

Bug #905188 reported by Ajay Patel (OpenERP)
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
Unassigned

Bug Description

while update the stock value from update button i got this trace back :

Client Traceback (most recent call last):
  File "/home/amit/OpenERP/web/trunk/addons/web/common/http.py", line 175, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/amit/OpenERP/web/trunk/addons/web/controllers/main.py", line 1060, in load
    fields_view = self.fields_view_get(req, model, view_id, 'search')
  File "/home/amit/OpenERP/web/trunk/addons/web/controllers/main.py", line 878, in fields_view_get
    fvg = Model.fields_view_get(view_id, view_type, context, toolbar, submenu)
  File "/home/amit/OpenERP/web/trunk/addons/web/common/openerplib/main.py", line 430, in proxy
    *args)
  File "/home/amit/OpenERP/web/trunk/addons/web/common/openerplib/main.py", line 306, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/home/amit/OpenERP/web/trunk/addons/web/common/openerplib/main.py", line 276, in send
    raise fault

Server Traceback (most recent call last):
  File "/home/amit/OpenERP/web/trunk/addons/web/common/openerplib/main.py", line 257, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/amit/OpenERP/server/trunk/openerp/netsvc.py", line 325, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/amit/OpenERP/server/trunk/openerp/service/web_services.py", line 580, in dispatch
    res = fn(db, uid, *params)
  File "/home/amit/OpenERP/server/trunk/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/amit/OpenERP/server/trunk/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/amit/OpenERP/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/amit/OpenERP/addons/trunk/stock/wizard/stock_change_product_qty.py", line 47, in fields_view_get
    result['fields']['prodlot_id']['required'] = False
KeyError: 'prodlot_id'

I have also attach video for that

Thanks,
Amit

Related branches

Revision history for this message
Ajay Patel (OpenERP) (ajay-openerp) wrote :
affects: openerp-web → openobject-addons
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Changed in openobject-addons:
status: In Progress → Confirmed
Revision history for this message
Rucha (Open ERP) (rpa-openerp) wrote :

Hello Vishal,
We have checked for this problem, but didn't get anything that we can fix from addons side,
there must be something wrong with web-client,
Can you please check again and assign accordingly,
Thanks

Changed in openobject-addons:
status: Confirmed → Incomplete
Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 2 (openerp-dev-addons2) → nobody
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Should be fixed in addons trunk as of revision <email address hidden>

> didn't get anything that we can fix from addons side

fields_view_get override was applying a transformation meant to be done on form `fields` key even when fields_view_get was called with view_type=search. I have added a guard for that.

(also simplified code and removed conditionals which did not make any sense)

Changed in openobject-addons:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

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