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

Hi

I am traying to add warning when customer have a balance i have  used  

raise UserError("Customer has balance!")

it is working but it will block it to create SO i need some thing just a simple warning not blocking any one can help?

아바타
취소

Is it based on a button action or at the time of save or on changing any field value?

It is based on a button action 

 

From: K Ch Kumar Jagabattula <notifications@mail.odoo.com>
Sent: Monday, June 6, 2022 4:21 PM
To: sales@gyeongcc.com
Subject: Re: Raise Warning

 

Is it based on a button action or at the time of save or on changing any field value?

--
K Ch Kumar Jagabattula

Sent by Odoo S.A. using Odoo.

베스트 답변

If you want to create a SO and after open a message with warning, you can use a simple wizard object with a form, in a field called "message" you can setup the default text to show and a button for close it. I create a module but not converted in new version, but if you need I can migrate.

아바타
취소
베스트 답변

Hi,

Try use the following 

raise Warning(_("Customer has balance!"))

Regards 

아바타
취소
작성자

Hi
when i using the code i will get server error
RPC_ERROR
Odoo Server Error

관련 게시물 답글 화면 활동
3
1월 25
4824
1
12월 24
3116
1
10월 22
3020
0
12월 21
2602
2
3월 24
5182