Tryton - Issues

 

Issue8045

Title Invalid key 'products' with sao generated URL
Priority bug Status closed
Superseder Reloading product.product URL crash
View: 7988
Nosy List albertca, ced
Type crash Components
Assigned To Keywords
Reviews

Created on 2019-01-25.00:01:49 by albertca, last changed by ced.

Messages
msg46248 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-01-25.00:03:32
Duplicate issue7988
msg46247 (view) Author: [hidden] (albertca) (Tryton committer) Date: 2019-01-25.00:01:49
Steps to reproduce:

- Login to demo.tryton.org
- Go to menu: Products > Variants
- Copy the URL (will be this one: http://demo5.0.tryton.org/#demo5.0/model/product.product;name=%22Variants%22&views=%5B262%2C263%5D)
- Paste it in a new browser tab
- You'll get the following traceback:

Traceback (most recent call last):
  File "/usr/local/lib/python35/dist-packages/trytond/wsgipy", line 73, in dispatch_request
    return endpoint(request, **requestview_args)
  File "/usr/local/lib/python35/dist-packages/trytond/protocols/dispatcherpy", line 46, in rpc
    request, database_name, *requestrpc_params)
  File "/usr/local/lib/python35/dist-packages/trytond/wsgipy", line 44, in auth_required
    return wrapped(*args, **kwargs)
  File "/usr/local/lib/python35/dist-packages/trytond/protocols/wrapperspy", line 122, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/usr/local/lib/python35/dist-packages/trytond/protocols/dispatcherpy", line 176, in _dispatch
    result = rpcresult(meth(*c_args, **c_kwargs))
  File "/usr/local/lib/python35/dist-packages/trytond/model/modelviewpy", line 340, in fields_view_get
    result['field_childs'])
  File "/usr/local/lib/python35/dist-packages/trytond/model/modelviewpy", line 455, in _view_look_dom_arch
    fields_width=fields_width)
  File "/usr/local/lib/python35/dist-packages/trytond/model/modelviewpy", line 620, in __view_look_dom
    fields_width=fields_width, fields_attrs=fields_attrs)
  File "/usr/local/lib/python35/dist-packages/trytond/model/modelviewpy", line 620, in __view_look_dom
    fields_width=fields_width, fields_attrs=fields_attrs)
  File "/usr/local/lib/python35/dist-packages/trytond/model/modelviewpy", line 620, in __view_look_dom
    fields_width=fields_width, fields_attrs=fields_attrs)
  File "/usr/local/lib/python35/dist-packages/trytond/model/modelviewpy", line 551, in __view_look_dom
    field = cls_fields[fname]
KeyError: 'products'
History
Date User Action Args
2019-01-25 00:03:33cedsetstatus: unread -> closed
superseder: + Reloading product.product URL crash
messages: + msg46248
nosy: + ced
2019-01-25 00:01:49albertcacreate

Showing 10 items. Show all history (warning: this could be VERY long)