Issue 11138

Title
rendering float problem : TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
Priority
bug
Status
chatting
Nosy list
ced, semarie
Assigned to
Keywords

Created on 2022-01-14.15:49:07 by semarie, last changed 1 week ago by ced.

Messages

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-01-14.16:41:02

I guess if end_pos is None, we should not call delete_text.

Author: [hidden] (semarie)
Date: 2022-01-14.15:49:07
When recording a Move, when typing the amount, the following error occurs:

```
  File "/usr/local/tryton-tip/lib/python3.9/site-packages/tryton/common/cellrendererfloat.py", line 41, in key_press_event
    buffer_.delete_text(start_pos, end_pos - start_pos)

TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
```

The error popups when typing the '.' character. For reference, I am using french locale, and use the numpad for decimal.
History
Date User Action Args
2022-01-14 16:41:02cedsetmessages: + msg73245
nosy: + ced
status: unread -> chatting
2022-01-14 15:49:07semariecreate