콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3565 화면

Hi,

I noticed some unexpected behavior in the onchange function when I append some leading or trailing spaces in a char field using Odoo 13.0.

To reproduce this issue:

- For any char field, create onchange function which simply applies strip() to the field in order to remove those white spaces.

I noticed that:

1- the onchange function will not be triggered if we only added some leading and/or trailing spaces to the original string.

2- if we removed those leading and trailing spaces using the onchange function (for example using .strip()), simply they will not be removed.

I know that I can remove them when I save the record, but I want the user to notice this change on-the-fly in addition to that this is a weird behavior.

I am not sure if this is a bug or not, or if it was already fixed in the latest updates.

아바타
취소
관련 게시물 답글 화면 활동
1
4월 25
1106
Odoo Server Error 해결 완료
1
4월 25
1219
0
11월 24
1483
0
10월 24
1510
1
5월 24
4764