UnboundLocalError: local variable 'value' referenced before assignment
I am using tryton 5.2.2. The problem is only with desktop client (not reproductible with sao).
When adding a line on an invoice, if I enter an negative amount, when the '-' is enter I have the following error which popup:
File "/usr/local/lib/python3.7/site-packages/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
If I write the number first, and next add the '-' sign, it is fine. I think the value "-" is considered as invalid at some point.