コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
13398 ビュー

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
4645
1
12月 24
2942
1
10月 22
2931
0
12月 21
2438
2
3月 24
4940