Issue 11334

Title
Problem Creating Price List
Priority
bug
Status
need-eg
Nosy list
Toni, ced, pokoli
Assigned to
Keywords

Created on 2022-03-24.00:48:25 by Toni, last changed 4 months ago by Toni.

Files

File name Uploaded Type Details
tryton-versions.txt Toni, 2022-03-24.12:10:31 text/plain view

Messages

Author: [hidden] (Toni)
Date: 2022-03-24.12:10:31

This traceback is a bit difficult to copy. I initially missed the scroll bar in the pop-up window.

File "/usr/lib/python3/dist-packages/tryton/gui/window/form.py", line 477, in sig_new
self.screen.new()
File "/usr/lib/python3/dist-packages/tryton/gui/window/view_form/screen/screen.py", line 626, in new
record = group.new(default, rec_name=rec_name)
File "/usr/lib/python3/dist-packages/tryton/gui/window/view_form/model/group.py", line 405, in new
record.default_get(rec_name=rec_name)
File "/usr/lib/python3/dist-packages/tryton/gui/window/view_form/model/record.py", line 378, in default_get
self.set_default(vals)
File "/usr/lib/python3/dist-packages/tryton/gui/window/view_form/model/record.py", line 438, in set_default
self.validate(softvalidation=True)
File "/usr/lib/python3/dist-packages/tryton/gui/window/view_form/model/record.py", line 401, in validate
if not field.validate(self, softvalidation, pre_validate):
File "/usr/lib/python3/dist-packages/tryton/gui/window/view_form/model/field.py", line 135, in validate
self.set_client(record, value)
File "/usr/lib/python3/dist-packages/tryton/gui/window/view_form/model/field.py", line 490, in set_client
super(M2OField, self).set_client(record, value,
File "/usr/lib/python3/dist-packages/tryton/gui/window/view_form/model/field.py", line 157, in set_client
self.set(record, value)
File "/usr/lib/python3/dist-packages/tryton/gui/window/view_form/model/field.py", line 495, in set
if not rec_name and value is not None and value >= 0:

TypeError: '>=' not supported between instances of 'str' and 'int'

@pokoli: I have attached a list of installed packages matching 'tryton'.

Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2022-03-24.09:56:23

I can not reproduce on demo server using tryton 6.0.14 (which is the last bug fix release of this series).

Which minor version are you using?

This can be found by running on your comandline :

tryton --version

Or opening the About dialog in the menu.

If you are using an older version, could you please upgrade to see if the error persist?

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-03-24.09:23:28

Could you provide the full traceback?

Author: [hidden] (Toni)
Date: 2022-03-24.00:48:25

I clicked on Article -> Price List (I think so, it's "Preislisten" in German), and got a traceback:

Application Error

TypeError: '>=' not supported between instances of 'str' and 'int'

File "/usr/lib/python3/dist-packages/tryton/gui/window/form.py", line 477, in sig_new
self.screen.new()
File "/usr/lib/python3/dist-packages/tryton/gui/window/view_form/screen/screen.py", line 626, in new
record = group.new(default, rec_name=rec_name)
File "/usr/lib/python3/dist-packages/tryton/gui/window/view_form/model/group.py", line 405, in new
record.default_get(rec_name=rec_name)
File "/usr/lib/python3/dist-packages/tryton/gui/window/view_form/model/record.py", line 378, in default_get
self.set_default(vals)
File "/usr/lib/python3/dist-packages/tryton/gui/window/view_form/model/record.py", line 438, in set_default
self.validate(softvalidation=True)
File "/usr/lib/python3/dist-packages/tryton/gui/window/view_form/model/record.py", line 401, in validate
if not field.validate(self, softvalidation, pre_validate):
File "/usr/lib/python3/dist-packages/tryton/gui/window/view_form/model/field.py", line 135, in validate
self.set_client(record, value)

I am using Tryton from the bullseye-6.0 archive.

History
Date User Action Args
2022-03-24 12:10:31Tonisetfiles: + tryton-versions.txt
messages: + msg74713
2022-03-24 09:56:23pokolisetmessages: + msg74706
nosy: + pokoli
2022-03-24 09:23:28cedsetmessages: + msg74704
nosy: + ced
status: unread -> need-eg
2022-03-24 00:48:25Tonicreate

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