Tryton - Issues

 

Issue8532

Title Error value before reference when add negative number
Priority bug Status unread
Superseder UnboundLocalError: local variable 'value' referenced before assignment
View: 8533
Nosy List resteve, semarie
Type Components tryton
Assigned To Keywords
Reviews

Created on 2019-07-25.16:11:18 by resteve, last changed by semarie.

Messages
msg50885 (view) Author: [hidden] (resteve) Date: 2019-07-25.16:11:17
GTK client:

When try to add negative quantity in Numeric field, I get:

  File "/home/resteve/projectes/nandev/tryton/tryton/common/number_entry.py", line 59, in do_insert_text
    if self.__digits is not None and round(value, self.__digits) != value:

UnboundLocalError: local variable 'value' referenced before assignment

Example:

1- Add new invoice line.
2- In qty field, add "-10" (negative)
History
Date User Action Args
2019-07-25 17:27:59semariesetnosy: + semarie
2019-07-25 17:05:07pokolisetsuperseder: + UnboundLocalError: local variable 'value' referenced before assignment
2019-07-25 16:11:18restevecreate

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