Tryton - Issues

 

Issue9587

Title KeyError on order in Pyson Eval
Priority bug Status resolved
Superseder Nosy List ced, mrichez, reviewbot, roundup-bot, tbruyere
Type crash Components stock
Assigned To mrichez Keywords backport, review
Reviews 296211002
View: 296211002

Created on 2020-09-09.15:14:46 by mrichez, last changed by ced.

Messages
New changeset 34f1163bfe14 by Maxime Richez in branch 'default':
Set correct direction arrow from order with NULLS extra parameter
https://hg.tryton.org/tryton-env/rev/34f1163bfe14
New changeset 388550da810a by Maxime Richez in branch 'default':
Set correct direction arrow from order with NULLS extra parameter
https://hg.tryton.org/tryton/rev/388550da810a
New changeset f3d0a8d2b7f7 by Maxime Richez in branch 'default':
Set correct direction arrow from order with NULLS extra parameter
https://hg.tryton.org/sao/rev/f3d0a8d2b7f7
review296211002 updated at https://codereview.tryton.org/296211002/#ps292231002
review296211002 updated at https://codereview.tryton.org/296211002/#ps304251002
New review296211002 at https://codereview.tryton.org/296211002/#ps326051002
msg60031 (view) Author: [hidden] (mrichez) Date: 2020-09-09.16:12:02
Hum, i see problem, direction should be splitted to take care only of the first word.
msg60029 (view) Author: [hidden] (mrichez) Date: 2020-09-09.16:05:35
File "/home/mrichez/Workspace/tryton/tryton_dev/tryton/tryton/common/popup_menu.py", line 56, in activate
    Action.execute(action, data, context=rec.get_context())
  File "/home/mrichez/Workspace/tryton/tryton_dev/tryton/tryton/action/main.py", line 65, in execute
    Action._exec_action(action, data, context=context)
  File "/home/mrichez/Workspace/tryton/tryton_dev/tryton/tryton/action/main.py", line 142, in _exec_action
    Window.create(res_model,
  File "/home/mrichez/Workspace/tryton/tryton_dev/tryton/tryton/gui/window/window.py", line 32, in create
    win = Form(model, **attributes)
  File "/home/mrichez/Workspace/tryton/tryton_dev/tryton/tryton/gui/window/form.py", line 46, in __init__
    self.screen = Screen(self.model, **attributes)
  File "/home/mrichez/Workspace/tryton/tryton_dev/tryton/tryton/gui/window/view_form/screen/screen.py", line 139, in __init__
    self.switch_view()
  File "/home/mrichez/Workspace/tryton/tryton_dev/tryton/tryton/gui/window/view_form/screen/screen.py", line 520, in switch_view
    self.load_view_to_load()
  File "/home/mrichez/Workspace/tryton/tryton_dev/tryton/tryton/gui/window/view_form/screen/screen.py", line 547, in load_view_to_load
    self.add_view_id(view_id, view_type)
  File "/home/mrichez/Workspace/tryton/tryton_dev/tryton/tryton/gui/window/view_form/screen/screen.py", line 563, in add_view_id
    return self.add_view(view)
  File "/home/mrichez/Workspace/tryton/tryton_dev/tryton/tryton/gui/window/view_form/screen/screen.py", line 590, in add_view
    view = View.parse(
  File "/home/mrichez/Workspace/tryton/tryton_dev/tryton/tryton/gui/window/view_form/view/__init__.py", line 72, in parse
    return ViewTree(view_id, screen, root, children_field)
  File "/home/mrichez/Workspace/tryton/tryton_dev/tryton/tryton/gui/window/view_form/view/list.py", line 498, in __init__
    self.display()
  File "/home/mrichez/Workspace/tryton/tryton_dev/tryton/tryton/gui/window/view_form/view/list.py", line 1030, in display
    self.update_arrow()
  File "/home/mrichez/Workspace/tryton/tryton_dev/tryton/tryton/gui/window/view_form/view/list.py", line 539, in update_arrow
    direction = {

KeyError: 'DESC NULLS FIRST'
msg60028 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2020-09-09.16:04:19
What is the complete traceback?
msg60027 (view) Author: [hidden] (mrichez) Date: 2020-09-09.15:14:46
When doing a relate 'Stock Moves' on a variant
got KeyError : 'DESC NULLS FIRST'
Related to this line: 
http://hg.tryton.org/modules/stock/file/1f6f7178e184/move.xml#l146
History
Date User Action Args
2020-09-22 10:19:21cedsetkeyword: + backport
2020-09-22 10:19:06roundup-botsetmessages: + msg60264
2020-09-22 10:18:53roundup-botsetmessages: + msg60262
2020-09-22 10:18:48roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg60261
2020-09-14 09:23:03reviewbotsetmessages: + msg60111
2020-09-10 08:53:03reviewbotsetmessages: + msg60048
2020-09-09 16:53:30reviewbotsetnosy: + reviewbot
messages: + msg60035
2020-09-09 16:53:29reviewbotsetreviews: 296211002
keyword: + review
2020-09-09 16:42:56mrichezsetstatus: in-progress -> testing
2020-09-09 16:18:08mrichezsetstatus: need-eg -> in-progress
assignedto: mrichez

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