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

When I did this at v13:

raise Warning("You can't do that!")

it looked like this:



Now at v14, it looks like this:




How can I get a "user-friendly" message like at v13?


아바타
취소
베스트 답변

Change your code to:

raise UserError("You can't do that!") 

This will give you:


아바타
취소

odoo.exceptions.Warning: An error occurred Please use the copy button to report the error to your support service

관련 게시물 답글 화면 활동
1
3월 21
3106
5
5월 25
7635
1
10월 24
22563
1
8월 21
3333
0
6월 21
6550